Skip to content

Commit

Permalink
Merged in task/dspace-cris-2023_02_x/DSC-1631 (pull request DSpace#2087)
Browse files Browse the repository at this point in the history
DSC-1631 Fix
  • Loading branch information
vins01-4science committed Apr 30, 2024
2 parents ad337d0 + 651c92d commit 51f490e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;

import org.apache.solr.common.SolrDocument;
import org.dspace.content.authority.Choice;
Expand All @@ -37,7 +38,7 @@ public static Map<String, String> buildExtra(String authorityName, SolrDocument
extras.putAll(extrasTmp);
}
}
Set<String> alternativeNames = Set.copyOf(objectNames);
Set<String> alternativeNames = new TreeSet<>(objectNames);
if (alternativeNames.size() > 1) {
String alternativeNameKey = "alternative-names";
alternativeNames.forEach(alternativeName -> {
Expand Down

0 comments on commit 51f490e

Please sign in to comment.