- Timestamp:
- 2003-01-06T15:23:47+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/BrowseAction.java
r3604 r3645 51 51 52 52 // extract the params from the cgi-request, and check that we have a coll specified 53 // first convert short to long names54 53 Element cgi_paramList = (Element)GSXML.getChildByTagName(request, GSXML.PARAM_ELEM+GSXML.LIST_MODIFIER); 55 cgi_.toLong(cgi_paramList);56 54 HashMap params = GSXML.extractParams(cgi_paramList); 57 55 58 String collection = (String)params.get( "collection");56 String collection = (String)params.get(GSCGI.COLLECTION_ARG); 59 57 if (collection == null || collection.equals("")) { 60 58 System.err.println("BrowseAction Error:classifierbrowse, need to specify a collection!"); … … 90 88 91 89 // if there is a cl field in the cgi params, get the classifier info 92 String node = (String)params.get("cl assifier");90 String node = (String)params.get("cl"); 93 91 94 92 if (node!=null && !node.equals("")) { … … 110 108 111 109 // content - contains the classifier node, may be more than one 112 // call this resourcelist for now110 // call this document list for now 113 111 Element query_content = doc_.createElement(GSXML.CONTENT_ELEM); 114 112 mr_query_request.appendChild(query_content); 115 113 116 Element resource_list = doc_.createElement(GSXML.RESOURCE_ELEM+GSXML.LIST_MODIFIER);117 Element resource = doc_.createElement(GSXML.RESOURCE_ELEM);118 resource.setAttribute(GSXML.NAME_ATT, node);119 resource_list.appendChild(resource);120 query_content.appendChild( resource_list);114 Element document_list = doc_.createElement(GSXML.DOCUMENT_ELEM+GSXML.LIST_MODIFIER); 115 Element document = doc_.createElement(GSXML.DOCUMENT_ELEM); 116 document.setAttribute(GSXML.NAME_ATT, node); 117 document_list.appendChild(document); 118 query_content.appendChild(document_list); 121 119 122 120 Element mr_query_response = (Element)mr_.process(mr_query_message);
Note:
See TracChangeset
for help on using the changeset viewer.