Changeset 14636
- Timestamp:
- 2007-10-09T13:52:45+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/branches/3.03/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java
r14522 r14636 56 56 static final private String ENCODING = "UTF-8"; 57 57 static final private String NEWLINE_ELEMENT = "NewLine"; 58 static final private String PLUGOUT_ELEMENT = "plugout";//used by building flax collections 58 59 59 60 static private Document document; … … 2887 2888 2888 2889 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 2889 2898 to.getDocumentElement ().appendChild (import_element); 2890 2899 } 2900 2891 2901 //Handle 'searchType' of collectionConfig.xml. In the internal structure, its also called 'searchType', eg. plain, form 2892 2902 private void convertSearchType (Document from, Document to) { … … 3608 3618 } 3609 3619 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); 3612 3622 if (pluginListNode == null) { 3613 System.out.println ("There is no plugin set.");3623 System.out.println ("There is no pluginlist set."); 3614 3624 } 3615 3625 if (pluginListNode != null) { 3616 3626 3617 3627 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); 3618 3635 } 3619 3636 } … … 3856 3873 convertBuildType (dOc, skeleton); 3857 3874 convertIndex (dOc, skeleton); 3858 convertPlugin (dOc, skeleton); 3875 convertPlugin (dOc, skeleton);//also do the plugout element 3859 3876 convertClassifier (dOc, skeleton); 3860 3877 convertSubcollectionIndexes (dOc, skeleton); … … 3866 3883 convertReplaceListRef (dOc, skeleton); 3867 3884 convertOAIElement(dOc, skeleton); 3868 3885 3869 3886 return skeleton; 3870 3887 }
Note:
See TracChangeset
for help on using the changeset viewer.