diff --git a/set-web/src/main/java/eu/europeana/set/web/service/impl/UserSetServiceImpl.java b/set-web/src/main/java/eu/europeana/set/web/service/impl/UserSetServiceImpl.java index 3167e2ed..f17914ad 100644 --- a/set-web/src/main/java/eu/europeana/set/web/service/impl/UserSetServiceImpl.java +++ b/set-web/src/main/java/eu/europeana/set/web/service/impl/UserSetServiceImpl.java @@ -477,8 +477,9 @@ private List reorderItemDescriptions(UserSet userSet, List itemD UserSetUtils.extractItemIdentifier(itemUri, getConfiguration().getItemDataEndpoint()); // escape "/" to "\/" to match json string localId = StringUtils.replace(localId, "/", "\\/"); + String idWithSpace="\"id\": \"" + localId + '"'; for (String description : itemDescriptions) { - if (description.contains(localId)) { + if (description.contains(idWithSpace)) { orderedItemDescriptions.add(description); found = true; break;