Ignore:
Timestamp:
2024-04-30T19:06:58+12:00 (2 weeks ago)
Author:
anupama
Message:

Some clean up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractBrowse.java

    r38964 r38965  
    276276                Element cl_desc = GSXML.createDisplayTextElement(doc, GSXML.DISPLAY_TEXT_DESCRIPTION, description);
    277277                new_cl.appendChild(cl_desc);
    278 
    279                
    280                 // For a collage classifier, option elements were added in
    281                 // to config_info
    282                 // 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 start
    287                 //     if(optionName.startsWith("-")) {
    288                 //  optionName = optionName.substring(1);
    289                 //     }
    290                 //     option.setAttribute(GSXML.NAME_ATT, optionName);
    291                 //     new_cl.appendChild(option);
    292                 // }
    293278               
    294279            }
     
    378363                cl.appendChild(owner.importNode(format, true));
    379364            }
    380 
    381             /*
    382             // If a Collage classifier, add in the classifier's option subelements
    383             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 option
    398                     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 added
    404                     // to info=this.config_info
    405                 }
    406                 }
    407             }
    408             */
    409365               
    410366        } // for each classifier
Note: See TracChangeset for help on using the changeset viewer.