mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
replaced type input by getRenderType method
This commit is contained in:
@@ -110,4 +110,11 @@ export class Item extends DSpaceObject {
|
||||
}));
|
||||
}
|
||||
|
||||
getRenderType(): string {
|
||||
const entityType = this.firstMetadataValue('relationship.type');
|
||||
if (isNotEmpty(entityType)) {
|
||||
return entityType;
|
||||
}
|
||||
return 'Publication';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user