mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
101127: Remove invalid links in BrowseDefinition models
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { inheritSerialization } from 'cerialize';
|
||||
import { inheritSerialization, deserialize } from 'cerialize';
|
||||
import { typedObject } from '../cache/builders/build-decorators';
|
||||
import { excludeFromEquals } from '../utilities/equals.decorators';
|
||||
import { FLAT_BROWSE_DEFINITION } from './flat-browse-definition.resource-type';
|
||||
import { ResourceType } from './resource-type';
|
||||
import { NonHierarchicalBrowseDefinition } from './non-hierarchical-browse-definition';
|
||||
import { HALLink } from './hal-link.model';
|
||||
|
||||
/**
|
||||
* BrowseDefinition model for browses of type 'flatBrowse'
|
||||
@@ -26,4 +27,10 @@ export class FlatBrowseDefinition extends NonHierarchicalBrowseDefinition {
|
||||
getRenderType(): string {
|
||||
return this.dataType;
|
||||
}
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
self: HALLink;
|
||||
items: HALLink;
|
||||
};
|
||||
}
|
||||
|
@@ -36,8 +36,6 @@ export class HierarchicalBrowseDefinition extends BrowseDefinition {
|
||||
@deserialize
|
||||
_links: {
|
||||
self: HALLink;
|
||||
entries: HALLink;
|
||||
items: HALLink;
|
||||
vocabulary: HALLink;
|
||||
};
|
||||
|
||||
|
@@ -22,11 +22,4 @@ export abstract class NonHierarchicalBrowseDefinition extends BrowseDefinition {
|
||||
|
||||
@autoserialize
|
||||
dataType: BrowseByDataType;
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
self: HALLink;
|
||||
entries: HALLink;
|
||||
items: HALLink;
|
||||
};
|
||||
}
|
||||
|
@@ -1,9 +1,10 @@
|
||||
import { inheritSerialization } from 'cerialize';
|
||||
import { inheritSerialization, deserialize } from 'cerialize';
|
||||
import { typedObject } from '../cache/builders/build-decorators';
|
||||
import { excludeFromEquals } from '../utilities/equals.decorators';
|
||||
import { VALUE_LIST_BROWSE_DEFINITION } from './value-list-browse-definition.resource-type';
|
||||
import { ResourceType } from './resource-type';
|
||||
import { NonHierarchicalBrowseDefinition } from './non-hierarchical-browse-definition';
|
||||
import { HALLink } from './hal-link.model';
|
||||
|
||||
/**
|
||||
* BrowseDefinition model for browses of type 'valueList'
|
||||
@@ -26,4 +27,10 @@ export class ValueListBrowseDefinition extends NonHierarchicalBrowseDefinition {
|
||||
getRenderType(): string {
|
||||
return this.dataType;
|
||||
}
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
self: HALLink;
|
||||
entries: HALLink;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user