Changeset 14634
- Timestamp:
- 2007-10-08T21:23:20+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java
r14522 r14634 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; … … 2535 2536 toElement.appendChild (to_element); 2536 2537 } 2538 private void doPlugoutElement (Document to, Element from) { 2539 Element toElement = to.getDocumentElement (); 2540 2541 Node plugout_element = XMLTools.getChildByTagName (from, PLUGOUT_ELEMENT); 2542 if (plugout_element == null) { 2543 return; // such an element not found 2544 } 2545 2546 Element to_element = XMLTools.duplicateElement (to, (Element)plugout_element, true); 2547 toElement.appendChild (to_element); 2548 } 2549 private void convertPlugoutElement (Document from, Document to) { 2550 Element toElement = to.getDocumentElement (); 2551 2552 Node plugout_element = XMLTools.getChildByTagName (from.getDocumentElement (), PLUGOUT_ELEMENT); 2553 if (plugout_element == null) { 2554 return; // such an element not found 2555 } 2556 2557 Element to_element = XMLTools.duplicateElement (to, (Element)plugout_element, true); 2558 toElement.appendChild (to_element); 2559 } 2537 2560 private void doDefaultIndexLanguage (Document to, Node searchNode) { 2538 2561 Element toElement = to.getDocumentElement (); … … 3665 3688 doReplaceListRef (dOc, fromElement); 3666 3689 doOAIElement (dOc, fromElement); 3690 doPlugoutElement (dOc, fromElement); 3667 3691 3668 3692 } … … 3866 3890 convertReplaceListRef (dOc, skeleton); 3867 3891 convertOAIElement(dOc, skeleton); 3892 convertPlugoutElement(dOc, skeleton); 3868 3893 3869 3894 return skeleton;
Note:
See TracChangeset
for help on using the changeset viewer.