mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
91680: Refactor: move entity type getters to itemService
This commit is contained in:

committed by
Ben Bosman

parent
a028b4130f
commit
3a5766a5d2
@@ -2753,7 +2753,7 @@ public class RelationshipServiceImplPlaceTest extends AbstractUnitTest {
|
||||
}
|
||||
|
||||
private String getRelationshipTypeStringForEntity(RelationshipType relationshipType, Item item) {
|
||||
String entityType = relationshipMetadataService.getEntityTypeStringFromMetadata(item);
|
||||
String entityType = itemService.getEntityTypeLabel(item);
|
||||
|
||||
if (StringUtils.equals(entityType, relationshipType.getLeftType().getLabel())) {
|
||||
return relationshipType.getLeftwardType();
|
||||
|
Reference in New Issue
Block a user