replaced type input by getRenderType method

This commit is contained in:
lotte
2019-10-04 16:06:59 +02:00
parent 9badabade6
commit a1f144aa0b
102 changed files with 452 additions and 755 deletions

View File

@@ -110,4 +110,11 @@ export class Item extends DSpaceObject {
}));
}
getRenderType(): string {
const entityType = this.firstMetadataValue('relationship.type');
if (isNotEmpty(entityType)) {
return entityType;
}
return 'Publication';
}
}