Changeset 14001


Ignore:
Timestamp:
2007-04-02T12:33:11+12:00 (15 years ago)
Author:
qq6
Message:

add index_subcollection_param and index_language_param

File:
1 edited

Legend:

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

    r13911 r14001  
    7373
    7474    this.mg_src.setMaxNumeric(this.maxnumeric);             
    75 
    7675           
    7776    return true;
     
    111110    }
    112111
     112    // If a subcollection index has been specified, use it
     113    String indexSub = (String) params.get(INDEX_SUBCOLLECTION_PARAM);
     114    if (indexSub != null) {
     115        index += indexSub;
     116    }
     117    else{
     118        if (!this.default_index_subcollection.equals("")){
     119        index += this.default_index_subcollection;
     120        }
     121    }
     122
     123    // If a subcollection index has been specified, use it
     124    String indexLang = (String) params.get(INDEX_LANGUAGE_PARAM);
     125    if (indexLang != null) {
     126        index += indexLang;
     127    }
     128    else{
     129        if (!this.default_index_language.equals("")){
     130        index += this.default_index_language;
     131        }
     132    }
     133   
    113134    // The location of the MG index and text files
    114135    String basedir = GSFile.collectionBaseDir(this.site_home, this.cluster_name) +  File.separatorChar;  // Needed for MG
Note: See TracChangeset for help on using the changeset viewer.