Changeset 14378


Ignore:
Timestamp:
08/20/07 16:20:05 (13 years ago)
Author:
shaoqun
Message:

set case and stem only if they are supported by this collection

File:
1 edited

Legend:

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

    r14001 r14378  
    228228        String value = (String)m.getValue();
    229229
    230         if (name.equals(CASE_PARAM)) {
     230        if (name.equals(CASE_PARAM) && this.does_case) {
    231231        boolean val = (value.equals(BOOLEAN_PARAM_ON) ? true : false);
    232232        this.mg_src.setCase(val);
    233233        }
    234         else if (name.equals(STEM_PARAM)) {
     234        else if (name.equals(STEM_PARAM) && this.does_stem) {
    235235        boolean val = (value.equals(BOOLEAN_PARAM_ON) ? true : false);
    236236        this.mg_src.setStem(val);
Note: See TracChangeset for help on using the changeset viewer.