Changeset 14002


Ignore:
Timestamp:
2007-04-03T14:20:39+12:00 (14 years ago)
Author:
qq6
Message:

add if-statements whencreating INDEX_LANGUAGE_PARAM, INDEX_PARAM ,INDEX_SUBCOLLECTION_PARAM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/AbstractSearch.java

    r13998 r14002  
    194194    protected void addStandardQueryParams(Element param_list, String lang)
    195195    {
    196     createParameter(INDEX_PARAM, param_list, lang);
    197         createParameter(INDEX_SUBCOLLECTION_PARAM,param_list, lang);
    198         createParameter(INDEX_LANGUAGE_PARAM,param_list, lang);
     196    if (!default_index.equals("")){
     197        createParameter(INDEX_PARAM, param_list, lang);
     198    }
     199    if (!default_index_subcollection.equals("")){
     200        createParameter(INDEX_SUBCOLLECTION_PARAM,param_list, lang);
     201    }
     202    if (!default_index_language.equals("")){
     203        createParameter(INDEX_LANGUAGE_PARAM,param_list, lang);
     204    }
    199205    if (does_chunking) {
    200206        createParameter(MAXDOCS_PARAM, param_list, lang);
Note: See TracChangeset for help on using the changeset viewer.