Changeset 34185
- Timestamp:
- 2020-06-16T09:53:16+12:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/cdm/CollectionConfigXMLReadWrite.java
r30691 r34185 627 627 628 628 //Handle classifiers 629 static private void doClassifier (Document to, Node browseNode)629 static private void doClassifiers(Document to, Node browseNode) 630 630 { 631 631 Element toElement = to.getDocumentElement(); … … 708 708 } 709 709 classify_element.appendChild(option_element); 710 } 710 711 } // for each option 712 711 713 //format element for this classifier 712 714 Element format = (Element) XMLTools.getChildByTagName(e, StaticStrings.FORMAT_STR); … … 715 717 classify_element.appendChild(doFormat(to, format, null)); 716 718 } 719 720 // Handling 'displayItem' element of this 'classifier' element - for now, just copy in and out so they don't get deleted 721 NodeList di_children = e.getElementsByTagName(StaticStrings.DISPLAYITEM_STR); 722 723 XMLTools.duplicateElementList(to, classify_element, di_children, true); 724 717 725 appendProperly(toElement, classify_element); 718 726 } … … 1567 1575 classifier_element.appendChild(convertFormat(to, e)); 1568 1576 } 1577 1578 // Handling 'displayItem' element of this 'classifier' element - for now, just copy in and out so they don't get deleted 1579 NodeList di_children = child.getElementsByTagName(StaticStrings.DISPLAYITEM_STR); 1580 1581 XMLTools.duplicateElementList(to, classifier_element, di_children, true); 1569 1582 browse_element.appendChild(classifier_element); 1570 1583 } … … 2682 2695 System.out.println("There is no classifier."); 2683 2696 } 2684 doClassifier (dOc, browseNode);2697 doClassifiers(dOc, browseNode); 2685 2698 } 2686 2699
Note:
See TracChangeset
for help on using the changeset viewer.