Ignore:
Timestamp:
2017-08-10T14:19:33+12:00 (7 years ago)
Author:
kjdon
Message:

setting classifier style attribute - can't remember why! Also, need to set teh class loader for the macro resolver AFTER the class loader is constructedsvn diff util/GSXML.java

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractBrowse.java

    r30634 r31867  
    7979    protected AbstractBrowse()
    8080    {
     81
    8182    }
    8283
     
    566567                    Node parentNode = current.getParentNode();
    567568
    568                     if (parentNode == null)
     569                    if (parentNode == null || !parentNode.getNodeName().equals(GSXML.CLASS_NODE_ELEM))
    569570                    {
    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);
    571574                    }
    572 
     575                    }
     576                    else {
    573577                    Element parent = (Element) parentNode;
    574578                    String childType = parent.getAttribute(GSXML.CHILD_TYPE_ATT);
     
    579583
    580584                    current.setAttribute(GSXML.CLASSIFIER_STYLE_ATT, childType);
     585                    }
    581586                }
    582587            } // if want structure
     
    775780    /** Gets the type of list a classifier is (e.g. VList or HList) */
    776781    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);
    778785    /**
    779786     * returns the document type of the doc that the specified node belongs to.
Note: See TracChangeset for help on using the changeset viewer.