Ignore:
Timestamp:
2005-05-05T11:09:07+12:00 (19 years ago)
Author:
kjdon
Message:

added in a hack to stop getting the collection details for a system request, in addExtraInfo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ant-install-branch/gsdl3/src/java/org/greenstone/gsdl3/core/DefaultReceptionist.java

    r7825 r9819  
    2424   
    2525    Element page_request = (Element)GSXML.getChildByTagName(page, GSXML.PAGE_REQUEST_ELEM);
     26    // if it is a system request, then we don't bother with this.
     27    String action = page_request.getAttribute(GSXML.ACTION_ATT);
     28    if (action.equals("s")) {
     29        System.err.println("HACK: don't ask for coll info if system action");
     30        return;
     31    }
    2632    ///ystem.out.println("add extra info, page request="+this.converter.getString(page_request));
    2733    // is a collection defined?
     
    6066        Element coll_about_response_message = this.mr.process(coll_about_message);
    6167        Element coll_about_response = (Element)GSXML.getChildByTagName(coll_about_response_message, GSXML.RESPONSE_ELEM);
     68        if (coll_about_response == null) {
     69        return;
     70        }
    6271        coll_description = (Element)GSXML.getChildByTagName(coll_about_response, GSXML.COLLECTION_ELEM);
    6372        if (coll_description==null) { // may be a cluster
Note: See TracChangeset for help on using the changeset viewer.