Ignore:
Timestamp:
2003-09-01T15:44:22+12:00 (21 years ago)
Author:
kjdon
Message:

tidying up println stuff

Location:
trunk/gsdl3/src/java/org/greenstone/gsdl3/action
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/action/Action.java

    r5155 r5401  
    7272        for (int i=0; i<nodes.getLength(); i++) {
    7373        String name = ((Element)nodes.item(i)).getAttribute("name");
    74         System.out.println("found a metadata name="+name);
    7574        String select = ((Element)nodes.item(i)).getAttribute("select");
    7675        if (select.equals("parent")) {
     
    9897   
    9998    }
    100     System.out.println("metadata list = "+this.converter.getString(param_list));
    10199    return param_list;
    102100    }
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/action/BrowseAction.java

    r5155 r5401  
    276276       
    277277
    278     System.out.println("(BrowseAction) Page:\n" + this.converter.getPrettyString(page_response));
     278    ///ystem.out.println("(BrowseAction) Page:\n" + this.converter.getPrettyString(page_response));
    279279    return page_response;
    280280    }
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/action/DocumentAction.java

    r5155 r5401  
    301301        // now we can modifiy the response doc if needed
    302302        String enrich_service = (String)params.get(GSParams.SERVICE);
    303         System.out.println("enrich service is "+enrich_service);
    304303        // send a message to the service
    305304        Element enrich_message = this.doc.createElement(GSXML.MESSAGE_ELEM);
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/action/GS2BrowseAction.java

    r5155 r5401  
    1818   
    1919    public static final String CLASSIFIER_ARG = "cl";
    20     //public static final String SIBLING_ARG = "sib";
    21     // public static final String HORIZ_AT_TOP_ARG = "hat";
    2220   
    2321    /** process the request */
     
    5149    }
    5250   
    53 //      boolean horizontal_at_top = false;
    54 //      String hat = (String) params.get(HORIZ_AT_TOP_ARG);
    55 //      if (hat != null && hat.equals("1")) {
    56 //          horizontal_at_top = true;
    57 //      }
    58     //whether to retrieve siblings or not
    59 //      boolean get_siblings = false;
    60 //      String sibs = (String) params.get(SIBLING_ARG);
    61 //      if (sibs != null && sibs.equals("1")) {
    62 //          get_siblings = true;
    63 //      }
    64 
    6551    String lang = request.getAttribute(GSXML.LANG_ATT);
    6652    String to = GSPath.appendLink(collection, service_name);
     
    122108        Element new_format = GSXML.duplicateWithNewName(this.doc, this_format, GSXML.FORMAT_ELEM, false);
    123109        extractMetadataNames(new_format, doc_meta_names, class_meta_names);
    124         // set teh format type
     110        // set the format type
    125111        new_format.setAttribute(GSXML.TYPE_ATT, "browse");
    126112
     
    159145    param.setAttribute(GSXML.NAME_ATT, "structure");
    160146    param.setAttribute(GSXML.VALUE_ATT, "children");
    161 //      if (get_siblings) {
    162 //          param = this.doc.createElement(GSXML.PARAM_ELEM);
    163 //          param_list.appendChild(param);
    164 //          param.setAttribute(GSXML.NAME_ATT, "structure");
    165 //          param.setAttribute(GSXML.VALUE_ATT, "siblings");
    166 //      }
    167147
    168148    // put the classifier node into a classifier node list
     
    174154       
    175155    if (horizontal_at_top && !classifier_node.equals(top_id)) {
    176         // also put the top id in, to get teh persistant horizontal info
     156        // also put the top id in, to get the persistant horizontal info
    177157        classifier = this.doc.createElement(GSXML.CLASS_NODE_ELEM);
    178158        classifier.setAttribute(GSXML.NODE_ID_ATT, top_id);
    179159        classifier_list.appendChild(classifier);
    180         System.out.println("GS2Browse:adding in the top node");
    181160    }
    182161    // process the request
    183162    Element classify_response = (Element)this.mr.process(classify_message);
    184     System.out.println("GS2Browse: classify response***********");
    185     System.out.println(this.converter.getPrettyString(classify_response));
    186     // get the structure element
    187     //String [] links = {GSXML.MESSAGE_ELEM, GSXML.RESPONSE_ELEM, GSXML.CLASS_NODE_ELEM+GSXML.LIST_MODIFIER};
    188     //String path = GSPath.createPath(links);
    189163    String path = GSPath.appendLink(GSXML.RESPONSE_ELEM, GSXML.CLASS_NODE_ELEM+GSXML.LIST_MODIFIER);
    190164    Element class_node_list = (Element)GSXML.getNodeByPath(classify_response, path);
    191165   
    192     //path = GSPath.appendLink(path, GSXML.CLASS_NODE_ELEM);
    193166    path = GSPath.appendLink(GSXML.CLASS_NODE_ELEM, GSXML.NODE_STRUCTURE_ELEM);
    194167    // assume that we always get back the top level CL1 node - this becomes the page_classifier node
     
    204177    if (horizontal_at_top && !classifier_node.equals(top_id)) {
    205178        // get the info for the top node
    206         //NodeList class_nodes = class_node_list.getElementsByTagName(GSXML.CLASSIFIER_ELEM);
    207        
    208179        Element top_node = GSXML.getNamedElement(class_node_list, GSXML.CLASS_NODE_ELEM, GSXML.NODE_ID_ATT, top_id);
    209180        if (top_node !=null) {
     
    332303       
    333304
    334     System.out.println("(GS2BrowseAction) Page:\n" + this.converter.getPrettyString(page_response));
     305    ///ystem.out.println("(GS2BrowseAction) Page:\n" + this.converter.getPrettyString(page_response));
    335306    return page_response;
    336307    }
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/action/QueryAction.java

    r5191 r5401  
    177177    }
    178178
    179     // System.out.println("Query page:\n" + converter_.getPrettyString(page_response));
     179    ///ystem.out.println("Query page:\n" + converter_.getPrettyString(page_response));
    180180    return page_response;
    181181    }
Note: See TracChangeset for help on using the changeset viewer.