mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
breadcrumbs for DSOs
This commit is contained in:
@@ -17,13 +17,14 @@ import { HALLink } from './hal-link.model';
|
||||
import { Relationship } from './item-relationships/relationship.model';
|
||||
import { RELATIONSHIP } from './item-relationships/relationship.resource-type';
|
||||
import { ITEM } from './item.resource-type';
|
||||
import { ChildHALResource } from './child-hal-resource.model';
|
||||
|
||||
/**
|
||||
* Class representing a DSpace Item
|
||||
*/
|
||||
@typedObject
|
||||
@inheritSerialization(DSpaceObject)
|
||||
export class Item extends DSpaceObject {
|
||||
export class Item extends DSpaceObject implements ChildHALResource {
|
||||
static type = ITEM;
|
||||
|
||||
/**
|
||||
@@ -100,4 +101,8 @@ export class Item extends DSpaceObject {
|
||||
}
|
||||
return [entityType, ...super.getRenderTypes()];
|
||||
}
|
||||
|
||||
getParentLinkKey(): keyof this['_links'] {
|
||||
return 'owningCollection';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user