Changeset 38965 for main/trunk/greenstone3/src
- Timestamp:
- 2024-04-30T19:06:58+12:00 (2 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractBrowse.java
r38964 r38965 276 276 Element cl_desc = GSXML.createDisplayTextElement(doc, GSXML.DISPLAY_TEXT_DESCRIPTION, description); 277 277 new_cl.appendChild(cl_desc); 278 279 280 // For a collage classifier, option elements were added in281 // to config_info282 // NodeList options = cl.getElementsByTagName(GSXML.PARAM_OPTION_ELEM);283 // for (int j = 0; j < options.getLength(); j++) {284 // Element option = (Element) doc.importNode(options.item(j), true);285 // String optionName = option.getAttribute(GSXML.NAME_ATT);286 // // remove hyphen at start287 // if(optionName.startsWith("-")) {288 // optionName = optionName.substring(1);289 // }290 // option.setAttribute(GSXML.NAME_ATT, optionName);291 // new_cl.appendChild(option);292 // }293 278 294 279 } … … 378 363 cl.appendChild(owner.importNode(format, true)); 379 364 } 380 381 /*382 // If a Collage classifier, add in the classifier's option subelements383 String classifierName = node_extra.getAttribute(GSXML.NAME_ATT);384 logger.error("*** classifierName: " + classifierName);385 386 if(classifierName.equals("Collage")) {387 logger.error("*** collage classifier: " + XMLConverter.getPrettyString(node_extra));388 389 NodeList options = node_extra.getElementsByTagName(GSXML.PARAM_OPTION_ELEM);390 if (options != null) {391 //Element option = owner.createElement(GSXML.PARAM_OPTION_ELEM);392 for (int j = 0; j < options.getLength(); j++) {393 //Element e = (Element) options.item(j);394 //cl.appendChild(owner.importNode(e, true));395 Element option = (Element) owner.importNode(options.item(j), true);396 String optionName = option.getAttribute(GSXML.NAME_ATT);397 // remove hyphen at start of classifier configuration option398 if(optionName.startsWith("-")) {399 optionName = optionName.substring(1);400 }401 option.setAttribute(GSXML.NAME_ATT, optionName);402 cl.appendChild(option);403 // Collage classifier option elements are actually added404 // to info=this.config_info405 }406 }407 }408 */409 365 410 366 } // for each classifier
Note:
See TracChangeset
for help on using the changeset viewer.