mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
Correct some assumptions about what should be quoted.
(cherry picked from commit dac494191c
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
01c533ae0b
commit
068eb40e62
@@ -67,7 +67,7 @@ public class DSpaceControlledVocabulary extends SelfNamedPlugin implements Hiera
|
||||
protected static String idTemplate = "//node[@id = %s]";
|
||||
protected static String idTemplateQuoted = "//node[@id = '%s']";
|
||||
protected static String labelTemplate = "//node[@label = %s]";
|
||||
protected static String idParentTemplate = "//node[@id = %s]/parent::isComposedBy/parent::node";
|
||||
protected static String idParentTemplate = "//node[@id = '%s']/parent::isComposedBy/parent::node";
|
||||
protected static String rootTemplate = "/node";
|
||||
protected static String idAttribute = "id";
|
||||
protected static String labelAttribute = "label";
|
||||
@@ -277,7 +277,7 @@ public class DSpaceControlledVocabulary extends SelfNamedPlugin implements Hiera
|
||||
@Override
|
||||
public Choices getChoicesByParent(String authorityName, String parentId, int start, int limit, String locale) {
|
||||
init(locale);
|
||||
String xpathExpression = String.format(idTemplate, parentId);
|
||||
String xpathExpression = String.format(idTemplateQuoted, parentId);
|
||||
return getChoicesByXpath(xpathExpression, start, limit);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user