mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Bugfix indirect relationship discovery updates
This commit is contained in:
@@ -437,6 +437,9 @@ public class RelationshipServiceImpl implements RelationshipService {
|
||||
foundRelationship, itemsToUpdate, max, currentDepth + 1, maxDepth);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
log.debug("skipping " + relationshipType.getID() + " in getRelatedItemsForRightItem for item "
|
||||
+ item.getID());
|
||||
}
|
||||
}
|
||||
return itemsToUpdate;
|
||||
@@ -448,6 +451,9 @@ public class RelationshipServiceImpl implements RelationshipService {
|
||||
if (itemsToUpdate.size() >= max) {
|
||||
return itemsToUpdate;
|
||||
}
|
||||
if (currentDepth == maxDepth) {
|
||||
return itemsToUpdate;
|
||||
}
|
||||
List<RelationshipType> relationshipTypes = new LinkedList<>();
|
||||
EntityType rightType = relationship.getRelationshipType().getRightType();
|
||||
String entityTypeStringFromMetadata = relationshipMetadataService.getEntityTypeStringFromMetadata(item);
|
||||
@@ -474,6 +480,9 @@ public class RelationshipServiceImpl implements RelationshipService {
|
||||
foundRelationship, itemsToUpdate, max, currentDepth + 1, maxDepth));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
log.debug("skipping " + relationshipType.getID() + " in getRelatedItemsForLeftItem for item "
|
||||
+ item.getID());
|
||||
}
|
||||
}
|
||||
return itemsToUpdate;
|
||||
|
Reference in New Issue
Block a user