mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
68405: separate resource types, missing @link paras/followLinks, start test fix
This commit is contained in:

committed by
Art Lowel

parent
b2f966eb83
commit
f17e204712
@@ -1,10 +1,11 @@
|
||||
import { autoserialize, autoserializeAs } from 'cerialize';
|
||||
import { SortOption } from './sort-option.model';
|
||||
import { ResourceType } from './resource-type';
|
||||
import { TypedObject } from '../cache/object-cache.reducer';
|
||||
import { BROWSE_DEFINITION } from './browse-definition.resource-type';
|
||||
import { HALLink } from './hal-link.model';
|
||||
import { SortOption } from './sort-option.model';
|
||||
|
||||
export class BrowseDefinition implements TypedObject {
|
||||
static type = new ResourceType('browse');
|
||||
static type = BROWSE_DEFINITION;
|
||||
|
||||
@autoserialize
|
||||
id: string;
|
||||
@@ -21,8 +22,14 @@ export class BrowseDefinition implements TypedObject {
|
||||
@autoserializeAs('metadata')
|
||||
metadataKeys: string[];
|
||||
|
||||
get self(): string {
|
||||
return this._links.self.href;
|
||||
}
|
||||
|
||||
@autoserialize
|
||||
_links: {
|
||||
[name: string]: string
|
||||
}
|
||||
self: HALLink;
|
||||
entries: HALLink;
|
||||
items: HALLink;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user