Changeset 3865 for trunk/gsdl3/src


Ignore:
Timestamp:
2003-03-12T16:24:35+13:00 (21 years ago)
Author:
kjdon
Message:

removed content from requests and responses

File:
1 edited

Legend:

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

    r3682 r3865  
    3636    page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.CONFIGURATION_ELEM), true));
    3737
    38    
    39     // the browse type is the subaction - ignore for now
    40     //String browse_type = request.getAttribute(GSXML.SUBACTION_ATT);
    41    
    42     //if (browse_type.equals("classifier")) {
    4338    return classifierBrowse(page, request);
    44     //}
    45     //return unknownBrowse(page, request, browse_type);
    46 
    4739   
    4840    }
     
    7062       
    7163    }
    72 
    7364
    7465    // get the service info from the MR - this will probably need to be cached somehow later on.
     
    116107        mr_query_request.appendChild(paramList);
    117108       
    118        
    119         // content - contains the classifier node, may be more than one
    120         // call this document list for now
    121         Element query_content = doc_.createElement(GSXML.CONTENT_ELEM);
    122         mr_query_request.appendChild(query_content);
    123        
    124         Element document_list = doc_.createElement(GSXML.DOCUMENT_ELEM+GSXML.LIST_MODIFIER);
    125         Element document = doc_.createElement(GSXML.DOCUMENT_ELEM);
    126         document.setAttribute(GSXML.NAME_ATT, node);
     109        Element document_list = doc_.createElement(GSXML.CLASS_NODE_ELEM+GSXML.LIST_MODIFIER);
     110        Element document = doc_.createElement(GSXML.CLASS_NODE_ELEM);
     111        document.setAttribute(GSXML.CLASS_NODE_ID_ATT, node);
    127112        document_list.appendChild(document);
    128         query_content.appendChild(document_list);
     113        mr_query_request.appendChild(document_list);
    129114       
    130115        Element mr_query_response = (Element)mr_.process(mr_query_message);
     
    142127   
    143128    GSXSLT.absoluteIncludePaths(style_doc, config_);
     129
     130    //System.out.println("page=");
     131    //System.out.println(converter_.getString(page));
    144132    return (Element)transformer_.transform(style_doc, page);
    145133    }
     
    150138    }
    151139}
     140
     141
Note: See TracChangeset for help on using the changeset viewer.