Skip to content

Commit

Permalink
Merge pull request #260 from europeana/EA-3925-issue-itemDescriptions…
Browse files Browse the repository at this point in the history
…-profile

bug fix in reorderItemDescriptions
  • Loading branch information
gsergiu authored Sep 11, 2024
2 parents 7c2e9be + 9410be2 commit df4b300
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,9 @@ private List<String> reorderItemDescriptions(UserSet userSet, List<String> 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;
Expand Down

0 comments on commit df4b300

Please sign in to comment.