Show
Ignore:
Timestamp:
12.03.2013 14:45:06 (7 years ago)
Author:
kjdon
Message:

added in the so (lucene sort order) cgi arg handling

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/querytools.cpp

    r24306 r27066  
    229229    option.name = "SortField"; 
    230230    option.value = args["sf"]; 
     231    request.filterOptions.push_back (option); 
     232  } 
     233  if (!args["so"].empty()) { // sort order for lucene 
     234    option.name = "SortOrder"; 
     235    option.value = (args.getintarg("so")? "descending" : "ascending"); 
    231236    request.filterOptions.push_back (option); 
    232237  }