modified to display an Other option in the select list

This commit is contained in:
tworrall 2012-05-10 19:02:56 +00:00
parent 39590ec936
commit 7560e66cf8

View file

@ -48,6 +48,8 @@ public class ChildVClassesWithParent implements FieldOptions {
optionsMap.put(LEFT_BLANK, defaultOptionLabel); optionsMap.put(LEFT_BLANK, defaultOptionLabel);
} }
optionsMap.put(classUri, "Other");
VClassDao vclassDao = wDaoFact.getVClassDao(); VClassDao vclassDao = wDaoFact.getVClassDao();
List<String> subClassList = vclassDao.getAllSubClassURIs(classUri); List<String> subClassList = vclassDao.getAllSubClassURIs(classUri);
if (subClassList != null && subClassList.size() > 0) { if (subClassList != null && subClassList.size() > 0) {