Fixed issue with DSpaceControlledVocabulary getBestMatch

This commit is contained in:
Giuseppe Digilio
2020-07-01 21:34:09 +02:00
parent 6333fdc499
commit e4c98b4742

View File

@@ -190,7 +190,7 @@ public class DSpaceControlledVocabulary extends SelfNamedPlugin implements Hiera
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>();