mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
use only one extraction of the UUID
This commit is contained in:
@@ -692,11 +692,12 @@ public class MetadataImport {
|
||||
boolean left = false;
|
||||
List<RelationshipType> acceptableRelationshipTypes = new LinkedList<>();
|
||||
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;
|
||||
}
|
||||
|
||||
Entity relationEntity = entityService.findByItemId(c, UUID.fromString(values.get(0)));
|
||||
Entity relationEntity = entityService.findByItemId(c, uuid);
|
||||
|
||||
|
||||
List<RelationshipType> leftRelationshipTypesForEntity = entityService.getLeftRelationshipTypes(c, entity);
|
||||
|
Reference in New Issue
Block a user