mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Fixed issue with DSpaceControlledVocabulary getBestMatch
This commit is contained in:
@@ -190,7 +190,7 @@ public class DSpaceControlledVocabulary extends SelfNamedPlugin implements Hiera
|
|||||||
String xpathExpression = "";
|
String xpathExpression = "";
|
||||||
String[] textHierarchy = text.split(hierarchyDelimiter, -1);
|
String[] textHierarchy = text.split(hierarchyDelimiter, -1);
|
||||||
for (int i = 0; i < textHierarchy.length; i++) {
|
for (int i = 0; i < textHierarchy.length; i++) {
|
||||||
xpathExpression += String.format(labelTemplate, textHierarchy[i].replaceAll("'", "'").toLowerCase());
|
xpathExpression += String.format(labelTemplate, textHierarchy[i].replaceAll("'", "'"));
|
||||||
}
|
}
|
||||||
XPath xpath = XPathFactory.newInstance().newXPath();
|
XPath xpath = XPathFactory.newInstance().newXPath();
|
||||||
List<Choice> choices = new ArrayList<Choice>();
|
List<Choice> choices = new ArrayList<Choice>();
|
||||||
|
Reference in New Issue
Block a user