Changeset 11010 for trunk/gsdl3


Ignore:
Timestamp:
2005-12-20T16:27:46+13:00 (18 years ago)
Author:
kjdon
Message:

no longer save the collection param - so cross collection services work. also don't save params that start with 'p.'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSParams.java

    r8672 r11010  
    88    public static final String ACTION = "a"; // the major type of action- eg query or browse or process
    99    public static final String SUBACTION = "sa"; // subtype of action if we want different processing than the default
    10     public static final String REQUEST_TYPE = "rt"; // whether the request is just to display the service form, or to actually do a request to teh service
     10    public static final String REQUEST_TYPE = "rt"; // whether the request is just to display the service form, or to actually do a request to the service
    1111    public static final String RESPONSE_ONLY = "ro"; // if == 1 do the request and pass back the response xml - no page formatting
    1212    public static final String OUTPUT = "o"; // if processing is to be done, what type of output - html/xml/other??
     
    3939    addParameter(REQUEST_TYPE,  false);
    4040    addParameter(RESPONSE_ONLY,  false);
    41     addParameter(CLUSTER,  true);
     41    addParameter(CLUSTER,  false); // we don't want to save collection
    4242    //addParameter(COLLECTION);
    4343    addParameter(LANGUAGE,  true);
     
    8282   
    8383    public boolean shouldSave(String name) {
     84    if (name.startsWith("p.")) return false;
    8485    Param p = (Param)this.param_map.get(name);
    8586    if (p== null) return true; // if things are not in here, always save.
Note: See TracChangeset for help on using the changeset viewer.