Skip to content

Commit

Permalink
Fixed issue with DSpaceControlledVocabulary getBestMatch
Browse files Browse the repository at this point in the history
  • Loading branch information
atarix83 committed Jul 1, 2020
1 parent 6333fdc commit e4c98b4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -190,7 +190,7 @@ public Choices getBestMatch(String field, String text, Collection collection, St
String xpathExpression = "";
String[] textHierarchy = text.split(hierarchyDelimiter, -1);
for (int i = 0; i < textHierarchy.length; i++) {
xpathExpression += String.format(labelTemplate, textHierarchy[i].replaceAll("'", "&apos;").toLowerCase());
xpathExpression += String.format(labelTemplate, textHierarchy[i].replaceAll("'", "&apos;"));
}
XPath xpath = XPathFactory.newInstance().newXPath();
List<Choice> choices = new ArrayList<Choice>();
Expand Down

0 comments on commit e4c98b4

Please sign in to comment.