Changeset 14636 for gli/branches


Ignore:
Timestamp:
2007-10-09T13:52:45+13:00 (17 years ago)
Author:
qq6
Message:

updated by Xiao

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/branches/3.03/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java

    r14522 r14636  
    5656    static final private String ENCODING = "UTF-8";
    5757    static final private String NEWLINE_ELEMENT = "NewLine";
     58    static final private String PLUGOUT_ELEMENT = "plugout";//used by building flax collections
    5859   
    5960    static private Document document;
     
    28872888       
    28882889        import_element.appendChild (plugin_list_element);
     2890       
     2891        //do the plugout element (used by building flax collections)
     2892        Node plugout = XMLTools.getChildByTagNameIndexed (from.getDocumentElement (), PLUGOUT_ELEMENT, 0);
     2893        if (plugout != null) {
     2894            Element to_element = XMLTools.duplicateElement (to, (Element)plugout, true);
     2895            import_element.appendChild (to_element);
     2896        }
     2897       
    28892898        to.getDocumentElement ().appendChild (import_element);
    28902899    }
     2900
    28912901    //Handle 'searchType' of collectionConfig.xml. In the internal structure, its also called 'searchType', eg. plain, form
    28922902    private void convertSearchType (Document from, Document to) {
     
    36083618        }
    36093619        if (importNode != null) {
    3610             Node pluginListNode = XMLTools.getChildByTagNameIndexed ((Element)importNode, StaticStrings.PLUGINLIST_STR, 0);
    3611            
     3620            //do plugin list nodes
     3621            Node pluginListNode = XMLTools.getChildByTagNameIndexed ((Element)importNode, StaticStrings.PLUGINLIST_STR, 0);           
    36123622            if (pluginListNode == null) {
    3613                 System.out.println ("There is no plugin set.");
     3623                System.out.println ("There is no pluginlist set.");
    36143624            }
    36153625            if (pluginListNode != null) {
    36163626               
    36173627                doPlugin (dOc, pluginListNode);
     3628            }
     3629           
     3630            //do the plugout element (used by building flax collections)
     3631            Node plugout = XMLTools.getChildByTagNameIndexed ((Element)importNode, PLUGOUT_ELEMENT, 0);
     3632            if (plugout != null) {
     3633                Element to_element = XMLTools.duplicateElement (dOc, (Element)plugout, true);
     3634                toElement.appendChild (to_element);
    36183635            }
    36193636        }
     
    38563873        convertBuildType (dOc, skeleton);
    38573874        convertIndex (dOc, skeleton);
    3858         convertPlugin (dOc, skeleton);
     3875        convertPlugin (dOc, skeleton);//also do the plugout element
    38593876        convertClassifier (dOc, skeleton);
    38603877        convertSubcollectionIndexes (dOc, skeleton);
     
    38663883        convertReplaceListRef (dOc, skeleton);
    38673884        convertOAIElement(dOc, skeleton);
    3868        
     3885
    38693886        return skeleton;
    38703887    }
Note: See TracChangeset for help on using the changeset viewer.