mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[CST-12748] fix for item lookup
This commit is contained in:
@@ -137,12 +137,14 @@ public class LDNMetadataProcessor implements LDNProcessor {
|
||||
*/
|
||||
private Item lookupItem(Context context, Notification notification) throws SQLException {
|
||||
Item item = null;
|
||||
|
||||
String url = null;
|
||||
if (notification.getObject() != null) {
|
||||
url = notification.getObject().getId();
|
||||
} else if (notification.getContext() != null) {
|
||||
if (notification.getContext() != null) {
|
||||
url = notification.getContext().getId();
|
||||
} else {
|
||||
url = notification.getObject().getId();
|
||||
}
|
||||
|
||||
log.info("Looking up item {}", url);
|
||||
|
||||
if (LDNUtils.hasUUIDInURL(url)) {
|
||||
|
Reference in New Issue
Block a user