Ignore:
Timestamp:
2007-03-28T16:16:49+12:00 (17 years ago)
Author:
lh92
Message:

Added code to read the pluginList from the collectConfig.xml. If tidy_html option is set then the tidy_option metadata is true

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/collection/XMLCollection.java

    r13270 r13994  
    4646    }
    4747
     48    //plugin stuff
     49    Element import_list = (Element)GSXML.getChildByTagName(coll_config_xml, GSXML.IMPORT_ELEM);
     50    if (import_list != null)
     51    {
     52        Element plugin_list = (Element)GSXML.getChildByTagName(import_list, GSXML.PLUGIN_ELEM+GSXML.LIST_MODIFIER);
     53        addPlugins(plugin_list);
     54    }
     55   
    4856    Element config_doc_list = (Element)GSXML.getChildByTagName(coll_config_xml, GSXML.DOCUMENT_ELEM+GSXML.LIST_MODIFIER);
    4957    if (config_doc_list != null) {
     
    7987        description.appendChild(this.service_list);
    8088        description.appendChild(this.metadata_list);
     89        description.appendChild(this.plugin_item_list);
    8190        description.appendChild(this.document_list);
    8291        return response;
     
    100109            } else if (info.equals(GSXML.DOCUMENT_ELEM+GSXML.LIST_MODIFIER)) {
    101110            description.appendChild(this.document_list);
     111            } else if (info.equals(GSXML.PLUGIN_ELEM+GSXML.LIST_MODIFIER)) {
     112                description.appendChild(this.plugin_item_list);
    102113            }
    103114           
Note: See TracChangeset for help on using the changeset viewer.