mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 10:34:25 +00:00
use only one extraction of the UUID
This commit is contained in:
@@ -692,11 +692,12 @@ public class MetadataImport {
|
|||||||
boolean left = false;
|
boolean left = false;
|
||||||
List<RelationshipType> acceptableRelationshipTypes = new LinkedList<>();
|
List<RelationshipType> acceptableRelationshipTypes = new LinkedList<>();
|
||||||
String url = handleService.resolveToURL(c, values.get(0));
|
String url = handleService.resolveToURL(c, values.get(0));
|
||||||
if (UUIDUtils.fromString(values.get(0)) == null && StringUtils.isNotBlank(url)) {
|
UUID uuid = UUIDUtils.fromString(values.get(0));
|
||||||
|
if (uuid == null && StringUtils.isNotBlank(url)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Entity relationEntity = entityService.findByItemId(c, UUID.fromString(values.get(0)));
|
Entity relationEntity = entityService.findByItemId(c, uuid);
|
||||||
|
|
||||||
|
|
||||||
List<RelationshipType> leftRelationshipTypesForEntity = entityService.getLeftRelationshipTypes(c, entity);
|
List<RelationshipType> leftRelationshipTypesForEntity = entityService.getLeftRelationshipTypes(c, entity);
|
||||||
|
Reference in New Issue
Block a user