mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-16 06:23:10 +00:00
Implemented feedback
This commit is contained in:
@@ -1500,17 +1500,16 @@ prevent the generation of resource policy entry values with null dspace_object a
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getEntityTypeStringFromMetadata(List<MetadataValue> list) {
|
private String getEntityTypeStringFromMetadata(List<MetadataValue> list) {
|
||||||
String entityType = null;
|
|
||||||
for (MetadataValue mdv : list) {
|
for (MetadataValue mdv : list) {
|
||||||
if (StringUtils.equals(mdv.getMetadataField().getMetadataSchema().getName(),
|
if (StringUtils.equals(mdv.getMetadataField().getMetadataSchema().getName(),
|
||||||
"relationship")
|
"relationship")
|
||||||
&& StringUtils.equals(mdv.getMetadataField().getElement(),
|
&& StringUtils.equals(mdv.getMetadataField().getElement(),
|
||||||
"type")) {
|
"type")) {
|
||||||
|
|
||||||
entityType = mdv.getValue();
|
return mdv.getValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return entityType;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private RelationshipMetadataValue constructResultingMetadataValue(Item item, String value,
|
private RelationshipMetadataValue constructResultingMetadataValue(Item item, String value,
|
||||||
|
@@ -248,10 +248,7 @@ public class RelationshipServiceImpl implements RelationshipService {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String leftEntityType = list.get(0).getValue();
|
String leftEntityType = list.get(0).getValue();
|
||||||
if (!StringUtils.equals(leftEntityType, entityTypeToProcess.getLabel())) {
|
return StringUtils.equals(leftEntityType, entityTypeToProcess.getLabel());
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Relationship find(Context context, int id) throws SQLException {
|
public Relationship find(Context context, int id) throws SQLException {
|
||||||
|
Reference in New Issue
Block a user