Changeset 5401 for trunk/gsdl3/src/java/org/greenstone/gsdl3/action
- Timestamp:
- 2003-09-01T15:44:22+12:00 (21 years ago)
- 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 72 72 for (int i=0; i<nodes.getLength(); i++) { 73 73 String name = ((Element)nodes.item(i)).getAttribute("name"); 74 System.out.println("found a metadata name="+name);75 74 String select = ((Element)nodes.item(i)).getAttribute("select"); 76 75 if (select.equals("parent")) { … … 98 97 99 98 } 100 System.out.println("metadata list = "+this.converter.getString(param_list));101 99 return param_list; 102 100 } -
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/BrowseAction.java
r5155 r5401 276 276 277 277 278 System.out.println("(BrowseAction) Page:\n" + this.converter.getPrettyString(page_response));278 ///ystem.out.println("(BrowseAction) Page:\n" + this.converter.getPrettyString(page_response)); 279 279 return page_response; 280 280 } -
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/DocumentAction.java
r5155 r5401 301 301 // now we can modifiy the response doc if needed 302 302 String enrich_service = (String)params.get(GSParams.SERVICE); 303 System.out.println("enrich service is "+enrich_service);304 303 // send a message to the service 305 304 Element enrich_message = this.doc.createElement(GSXML.MESSAGE_ELEM); -
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/GS2BrowseAction.java
r5155 r5401 18 18 19 19 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";22 20 23 21 /** process the request */ … … 51 49 } 52 50 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 not59 // 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 65 51 String lang = request.getAttribute(GSXML.LANG_ATT); 66 52 String to = GSPath.appendLink(collection, service_name); … … 122 108 Element new_format = GSXML.duplicateWithNewName(this.doc, this_format, GSXML.FORMAT_ELEM, false); 123 109 extractMetadataNames(new_format, doc_meta_names, class_meta_names); 124 // set t ehformat type110 // set the format type 125 111 new_format.setAttribute(GSXML.TYPE_ATT, "browse"); 126 112 … … 159 145 param.setAttribute(GSXML.NAME_ATT, "structure"); 160 146 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 // }167 147 168 148 // put the classifier node into a classifier node list … … 174 154 175 155 if (horizontal_at_top && !classifier_node.equals(top_id)) { 176 // also put the top id in, to get t ehpersistant horizontal info156 // also put the top id in, to get the persistant horizontal info 177 157 classifier = this.doc.createElement(GSXML.CLASS_NODE_ELEM); 178 158 classifier.setAttribute(GSXML.NODE_ID_ATT, top_id); 179 159 classifier_list.appendChild(classifier); 180 System.out.println("GS2Browse:adding in the top node");181 160 } 182 161 // process the request 183 162 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 element187 //String [] links = {GSXML.MESSAGE_ELEM, GSXML.RESPONSE_ELEM, GSXML.CLASS_NODE_ELEM+GSXML.LIST_MODIFIER};188 //String path = GSPath.createPath(links);189 163 String path = GSPath.appendLink(GSXML.RESPONSE_ELEM, GSXML.CLASS_NODE_ELEM+GSXML.LIST_MODIFIER); 190 164 Element class_node_list = (Element)GSXML.getNodeByPath(classify_response, path); 191 165 192 //path = GSPath.appendLink(path, GSXML.CLASS_NODE_ELEM);193 166 path = GSPath.appendLink(GSXML.CLASS_NODE_ELEM, GSXML.NODE_STRUCTURE_ELEM); 194 167 // assume that we always get back the top level CL1 node - this becomes the page_classifier node … … 204 177 if (horizontal_at_top && !classifier_node.equals(top_id)) { 205 178 // get the info for the top node 206 //NodeList class_nodes = class_node_list.getElementsByTagName(GSXML.CLASSIFIER_ELEM);207 208 179 Element top_node = GSXML.getNamedElement(class_node_list, GSXML.CLASS_NODE_ELEM, GSXML.NODE_ID_ATT, top_id); 209 180 if (top_node !=null) { … … 332 303 333 304 334 System.out.println("(GS2BrowseAction) Page:\n" + this.converter.getPrettyString(page_response));305 ///ystem.out.println("(GS2BrowseAction) Page:\n" + this.converter.getPrettyString(page_response)); 335 306 return page_response; 336 307 } -
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/QueryAction.java
r5191 r5401 177 177 } 178 178 179 // System.out.println("Query page:\n" + converter_.getPrettyString(page_response));179 ///ystem.out.println("Query page:\n" + converter_.getPrettyString(page_response)); 180 180 return page_response; 181 181 }
Note:
See TracChangeset
for help on using the changeset viewer.