Changeset 26262 for other-projects


Ignore:
Timestamp:
2012-09-27T12:06:16+12:00 (12 years ago)
Author:
ak19
Message:

GS3 XSLT statements for new skin now expect classNodes in nodeStructure to specify childType as attribute (set to VList or HList).

Location:
other-projects/gs3-webservices-java-client/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • other-projects/gs3-webservices-java-client/trunk/src/GS3Fedora/org/greenstone/fedora/services/FedoraGS3Connection.java

    r26171 r26262  
    18111811    attribute.setValue(classifierID);
    18121812    classNode.setAttributeNode(attribute);
     1813    Attr typeAttribute = doc.createAttribute(GSXML.CHILD_TYPE_ATT);
     1814    typeAttribute.setValue(GSXML.VLIST);
     1815    classNode.setAttributeNode(typeAttribute);
    18131816
    18141817    if(firstLevel == -1) { // CL1 - toplevel node     
     
    18361839        attribute.setValue(toplevelID);
    18371840        toplevelNode.setAttributeNode(attribute);
     1841        typeAttribute = doc.createAttribute(GSXML.CHILD_TYPE_ATT);
     1842        typeAttribute.setValue(GSXML.VLIST);
     1843        toplevelNode.setAttributeNode(typeAttribute);
    18381844        Element node = (Element)toplevelNode.cloneNode(true); // clone nodes before appending children
    18391845
     
    19641970            subClassifier = wantedSibling;
    19651971        } else {
    1966             // <classifierNode nodeID="CL1.x">
     1972            // <classifierNode childType="VList" nodeID="CL1.x">
    19671973            subClassifier = doc.createElement(GSXML.CLASS_NODE_ELEM);
     1974            Attr typeAttribute = doc.createAttribute(GSXML.CHILD_TYPE_ATT);
     1975            typeAttribute.setValue(GSXML.VLIST);
     1976            subClassifier.setAttributeNode(typeAttribute);
    19681977            Attr attribute = doc.createAttribute(GSXML.NODE_ID_ATT);
    19691978            attribute.setValue(classifierID+"."+count);
Note: See TracChangeset for help on using the changeset viewer.