mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
fixed bitstream format/metadataschema pages
This commit is contained in:
@@ -11,7 +11,6 @@ import { Item } from '../../../core/shared/item.model';
|
|||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||||
import { of as observableOf } from 'rxjs';
|
import { of as observableOf } from 'rxjs';
|
||||||
import { RemoteData } from '../../../core/data/remote-data';
|
|
||||||
import { createSuccessfulRemoteDataObject } from '../../../shared/testing/utils';
|
import { createSuccessfulRemoteDataObject } from '../../../shared/testing/utils';
|
||||||
|
|
||||||
describe('ItemStatusComponent', () => {
|
describe('ItemStatusComponent', () => {
|
||||||
|
@@ -39,10 +39,4 @@ export class NormalizedAuthStatus extends NormalizedObject<AuthStatus> {
|
|||||||
@relationship(EPerson, false)
|
@relationship(EPerson, false)
|
||||||
@autoserialize
|
@autoserialize
|
||||||
eperson: string;
|
eperson: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* The resource object of this auth status
|
|
||||||
*/
|
|
||||||
@autoserialize
|
|
||||||
type: ResourceType;
|
|
||||||
}
|
}
|
||||||
|
@@ -8,11 +8,6 @@ export abstract class ConfigObject implements CacheableObject {
|
|||||||
*/
|
*/
|
||||||
public name: string;
|
public name: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* A string representing the kind of config object
|
|
||||||
*/
|
|
||||||
public type: ResourceType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The links to all related resources returned by the rest api.
|
* The links to all related resources returned by the rest api.
|
||||||
*/
|
*/
|
||||||
|
@@ -15,12 +15,6 @@ export abstract class NormalizedConfigObject<T extends CacheableObject> implemen
|
|||||||
@autoserialize
|
@autoserialize
|
||||||
public name: string;
|
public name: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* A string representing the kind of config object
|
|
||||||
*/
|
|
||||||
@autoserialize
|
|
||||||
public type: ResourceType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The links to all related resources returned by the rest api.
|
* The links to all related resources returned by the rest api.
|
||||||
*/
|
*/
|
||||||
|
@@ -39,11 +39,6 @@ export class MetadataField implements ListableObject {
|
|||||||
*/
|
*/
|
||||||
schema: MetadataSchema;
|
schema: MetadataSchema;
|
||||||
|
|
||||||
/**
|
|
||||||
* The resource type of this metadata field
|
|
||||||
*/
|
|
||||||
type: ResourceType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to print this metadata field as a string
|
* Method to print this metadata field as a string
|
||||||
* @param separator The separator between the schema, element and qualifier in the string
|
* @param separator The separator between the schema, element and qualifier in the string
|
||||||
|
@@ -26,9 +26,4 @@ export class MetadataSchema implements ListableObject {
|
|||||||
* The namespace of this metadata schema
|
* The namespace of this metadata schema
|
||||||
*/
|
*/
|
||||||
namespace: string;
|
namespace: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* The resource type of this metadata schema
|
|
||||||
*/
|
|
||||||
type: ResourceType;
|
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
import { autoserialize, deserialize } from 'cerialize';
|
import { autoserialize, deserialize } from 'cerialize';
|
||||||
import { mapsTo, relationship } from '../cache/builders/build-decorators';
|
import { mapsTo, relationship } from '../cache/builders/build-decorators';
|
||||||
import { ResourceType } from '../shared/resource-type';
|
|
||||||
import { MetadataField } from './metadata-field.model';
|
import { MetadataField } from './metadata-field.model';
|
||||||
import { NormalizedObject } from '../cache/models/normalized-object.model';
|
import { NormalizedObject } from '../cache/models/normalized-object.model';
|
||||||
import { ListableObject } from '../../shared/object-collection/shared/listable-object.model';
|
import { ListableObject } from '../../shared/object-collection/shared/listable-object.model';
|
||||||
@@ -48,10 +47,4 @@ export class NormalizedMetadataField extends NormalizedObject<MetadataField> imp
|
|||||||
@deserialize
|
@deserialize
|
||||||
@relationship(MetadataSchema)
|
@relationship(MetadataSchema)
|
||||||
schema: string;
|
schema: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* The resource type of this normalized metadata field
|
|
||||||
*/
|
|
||||||
@autoserialize
|
|
||||||
type: ResourceType;
|
|
||||||
}
|
}
|
||||||
|
@@ -33,10 +33,4 @@ export class NormalizedMetadataSchema extends NormalizedObject<MetadataSchema> i
|
|||||||
*/
|
*/
|
||||||
@autoserialize
|
@autoserialize
|
||||||
namespace: string;
|
namespace: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* The resource type of this metadata schema
|
|
||||||
*/
|
|
||||||
@autoserialize
|
|
||||||
type: ResourceType;
|
|
||||||
}
|
}
|
||||||
|
@@ -1,9 +1,11 @@
|
|||||||
import { autoserialize, autoserializeAs } from 'cerialize';
|
import { autoserialize, deserialize } from 'cerialize';
|
||||||
import { PageInfo } from '../shared/page-info.model';
|
import { PageInfo } from '../shared/page-info.model';
|
||||||
import { BitstreamFormat } from '../shared/bitstream-format.model';
|
import { BitstreamFormat } from '../shared/bitstream-format.model';
|
||||||
|
import { relationship } from '../cache/builders/build-decorators';
|
||||||
|
|
||||||
export class RegistryBitstreamformatsResponse {
|
export class RegistryBitstreamformatsResponse {
|
||||||
@autoserializeAs(BitstreamFormat)
|
@deserialize
|
||||||
|
@relationship(BitstreamFormat, true)
|
||||||
bitstreamformats: BitstreamFormat[];
|
bitstreamformats: BitstreamFormat[];
|
||||||
|
|
||||||
@autoserialize
|
@autoserialize
|
||||||
|
@@ -1,9 +1,11 @@
|
|||||||
import { PageInfo } from '../shared/page-info.model';
|
import { PageInfo } from '../shared/page-info.model';
|
||||||
import { autoserialize, autoserializeAs } from 'cerialize';
|
import { autoserialize, deserialize } from 'cerialize';
|
||||||
import { MetadataSchema } from '../metadata/metadata-schema.model';
|
import { MetadataSchema } from '../metadata/metadata-schema.model';
|
||||||
|
import { relationship } from '../cache/builders/build-decorators';
|
||||||
|
|
||||||
export class RegistryMetadataschemasResponse {
|
export class RegistryMetadataschemasResponse {
|
||||||
@autoserializeAs(MetadataSchema)
|
@deserialize
|
||||||
|
@relationship(MetadataSchema, true)
|
||||||
metadataschemas: MetadataSchema[];
|
metadataschemas: MetadataSchema[];
|
||||||
|
|
||||||
@autoserialize
|
@autoserialize
|
||||||
|
@@ -44,11 +44,6 @@ export class BitstreamFormat implements CacheableObject {
|
|||||||
*/
|
*/
|
||||||
self: string;
|
self: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* A ResourceType representing the kind of Object of this BitstreamFormat
|
|
||||||
*/
|
|
||||||
type: ResourceType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Universally unique identifier for this Bitstream Format
|
* Universally unique identifier for this Bitstream Format
|
||||||
*/
|
*/
|
||||||
|
@@ -16,9 +16,6 @@ export class BrowseDefinition implements TypedObject {
|
|||||||
@autoserializeAs('order')
|
@autoserializeAs('order')
|
||||||
defaultSortOrder: string;
|
defaultSortOrder: string;
|
||||||
|
|
||||||
@autoserialize
|
|
||||||
type: ResourceType;
|
|
||||||
|
|
||||||
@autoserializeAs('metadata')
|
@autoserializeAs('metadata')
|
||||||
metadataKeys: string[];
|
metadataKeys: string[];
|
||||||
|
|
||||||
|
@@ -17,11 +17,6 @@ export class ItemType implements CacheableObject {
|
|||||||
*/
|
*/
|
||||||
self: string;
|
self: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* The type of Resource this is
|
|
||||||
*/
|
|
||||||
type: ResourceType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The universally unique identifier of this ItemType
|
* The universally unique identifier of this ItemType
|
||||||
*/
|
*/
|
||||||
|
@@ -15,11 +15,6 @@ export class RelationshipType implements CacheableObject {
|
|||||||
*/
|
*/
|
||||||
self: string;
|
self: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* The type of Resource this is
|
|
||||||
*/
|
|
||||||
type: ResourceType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The label that describes this RelationshipType
|
* The label that describes this RelationshipType
|
||||||
*/
|
*/
|
||||||
|
@@ -15,11 +15,6 @@ export class Relationship implements CacheableObject {
|
|||||||
*/
|
*/
|
||||||
self: string;
|
self: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* The type of Resource this is
|
|
||||||
*/
|
|
||||||
type: ResourceType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The universally unique identifier of this Relationship
|
* The universally unique identifier of this Relationship
|
||||||
*/
|
*/
|
||||||
|
@@ -10,12 +10,6 @@ import { mapsTo } from '../cache/builders/build-decorators';
|
|||||||
*/
|
*/
|
||||||
@mapsTo(BrowseEntry)
|
@mapsTo(BrowseEntry)
|
||||||
export class NormalizedBrowseEntry extends NormalizedObject<BrowseEntry> {
|
export class NormalizedBrowseEntry extends NormalizedObject<BrowseEntry> {
|
||||||
/**
|
|
||||||
* The resource type of this browse entry
|
|
||||||
*/
|
|
||||||
@autoserialize
|
|
||||||
type: ResourceType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The authority string of this browse entry
|
* The authority string of this browse entry
|
||||||
*/
|
*/
|
||||||
|
@@ -28,11 +28,6 @@ export class ResourcePolicy implements CacheableObject {
|
|||||||
*/
|
*/
|
||||||
self: string;
|
self: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* A ResourceType representing the kind of Object of this ResourcePolicy
|
|
||||||
*/
|
|
||||||
type: ResourceType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The universally unique identifier for this Resource Policy
|
* The universally unique identifier for this Resource Policy
|
||||||
*/
|
*/
|
||||||
|
@@ -1,10 +1,4 @@
|
|||||||
export class ResourceType {
|
export class ResourceType {
|
||||||
constructor(public value: string) {
|
constructor(public value: string) {
|
||||||
}
|
}
|
||||||
// SubmissionDefinitions = 'submissiondefinitions',
|
|
||||||
// SubmissionDefinition = 'submissiondefinition',
|
|
||||||
// SubmissionForm = 'submissionform',
|
|
||||||
// SubmissionForms = 'submissionforms',
|
|
||||||
// SubmissionSections = 'submissionsections',
|
|
||||||
// SubmissionSection = 'submissionsection',
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user