Changeset 14378

Show
Ignore:
Timestamp:
20.08.2007 16:20:05 (12 years ago)
Author:
shaoqun
Message:

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

Files:
1 modified

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);