mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-16 14:33:09 +00:00
Merge pull request #2418 from atmire/entities-feedback-2019-04
Configurable entities feedback
This commit is contained in:
@@ -1501,17 +1501,16 @@ prevent the generation of resource policy entry values with null dspace_object a
|
||||
}
|
||||
|
||||
private String getEntityTypeStringFromMetadata(List<MetadataValue> list) {
|
||||
String entityType = null;
|
||||
for (MetadataValue mdv : list) {
|
||||
if (StringUtils.equals(mdv.getMetadataField().getMetadataSchema().getName(),
|
||||
"relationship")
|
||||
&& StringUtils.equals(mdv.getMetadataField().getElement(),
|
||||
"type")) {
|
||||
|
||||
entityType = mdv.getValue();
|
||||
return mdv.getValue();
|
||||
}
|
||||
}
|
||||
return entityType;
|
||||
return null;
|
||||
}
|
||||
|
||||
private RelationshipMetadataValue constructResultingMetadataValue(Item item, String value,
|
||||
|
Reference in New Issue
Block a user