Changeset 31867 for main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractBrowse.java
- Timestamp:
- 2017-08-10T14:19:33+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractBrowse.java
r30634 r31867 79 79 protected AbstractBrowse() 80 80 { 81 81 82 } 82 83 … … 566 567 Node parentNode = current.getParentNode(); 567 568 568 if (parentNode == null )569 if (parentNode == null || !parentNode.getNodeName().equals(GSXML.CLASS_NODE_ELEM)) 569 570 { 570 continue; 571 String this_style = getThisType(current.getAttribute(GSXML.NODE_ID_ATT)); 572 if (this_style != null) { 573 current.setAttribute(GSXML.CLASSIFIER_STYLE_ATT, this_style); 571 574 } 572 575 } 576 else { 573 577 Element parent = (Element) parentNode; 574 578 String childType = parent.getAttribute(GSXML.CHILD_TYPE_ATT); … … 579 583 580 584 current.setAttribute(GSXML.CLASSIFIER_STYLE_ATT, childType); 585 } 581 586 } 582 587 } // if want structure … … 775 780 /** Gets the type of list a classifier is (e.g. VList or HList) */ 776 781 abstract protected String getChildType(String node_id); 777 782 783 /** Gets the type of list this current node is part of */ 784 abstract protected String getThisType(String node_id); 778 785 /** 779 786 * returns the document type of the doc that the specified node belongs to.
Note:
See TracChangeset
for help on using the changeset viewer.