Ignore:
Timestamp:
2003-01-06T15:23:47+13:00 (21 years ago)
Author:
kjdon
Message:

actions tidied up a bit, ResourceAction changed to DocumentAction, BuildAction removed, more general ProcessAction added

File:
1 edited

Legend:

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

    r3604 r3645  
    5151
    5252    // extract the params from the cgi-request, and check that we have a coll specified
    53     // first convert short to long names
    5453    Element cgi_paramList = (Element)GSXML.getChildByTagName(request, GSXML.PARAM_ELEM+GSXML.LIST_MODIFIER);
    55     cgi_.toLong(cgi_paramList);
    5654    HashMap params = GSXML.extractParams(cgi_paramList);
    5755
    58     String collection = (String)params.get("collection");
     56    String collection = (String)params.get(GSCGI.COLLECTION_ARG);
    5957    if (collection == null || collection.equals("")) {
    6058        System.err.println("BrowseAction Error:classifierbrowse, need to specify a collection!");
     
    9088   
    9189    // if there is a cl field in the cgi params, get the classifier info
    92     String node = (String)params.get("classifier");
     90    String node = (String)params.get("cl");
    9391   
    9492    if (node!=null && !node.equals("")) {
     
    110108       
    111109        // content - contains the classifier node, may be more than one
    112         // call this resource list for now
     110        // call this document list for now
    113111        Element query_content = doc_.createElement(GSXML.CONTENT_ELEM);
    114112        mr_query_request.appendChild(query_content);
    115113       
    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);
    121119       
    122120        Element mr_query_response = (Element)mr_.process(mr_query_message);
Note: See TracChangeset for help on using the changeset viewer.