Changeset 1328 for trunk/gsdl/src/recpt/queryaction.cpp
- Timestamp:
- 2000-08-02T14:07:22+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/queryaction.cpp
r1285 r1328 267 267 268 268 269 // new arg for granularity, for mgpp collections 270 arg_ainfo.shortname = "g"; 271 arg_ainfo.longname = "granularity"; 272 arg_ainfo.multiplechar = true; 273 arg_ainfo.defaultstatus = cgiarginfo::weak; 274 arg_ainfo.argdefault = "Document"; 275 arg_ainfo.savedarginfo = cgiarginfo::must; 276 argsinfo.addarginfo (NULL, arg_ainfo); 277 278 269 279 270 280 } … … 481 491 it = response.filterOptions.find ("CombineQuery"); 482 492 if (it != end) set_option_macro ("cq2", args["cq2"], (*it).second, disp); 493 494 // _gselection_ (Level) // for mgpp collections 495 it = response.filterOptions.find("Level"); 496 if (it!=end) set_option_macro("g", args["g"], (*it).second, disp); 483 497 484 498 // define_history_macros(disp, args, protos, logout); … … 980 994 text_t formattedstring = args["q"]; 981 995 if (!combine_query (args["z"], formattedstring, gsdlhome)) { 982 args["q"]=formattedstring; 996 args["q"]=formattedstring; 983 997 } 984 998 format_querystring (formattedstring, args.getintarg("b")); … … 1025 1039 void queryaction::define_query_macros (cgiargsclass &args, displayclass &disp, 1026 1040 const FilterResponse_t &response) { 1027 1028 1041 // set up _freqmsg_ and _quotedquery_ macros 1029 1042 text_t freqmsg = "_textfreqmsg1_"; … … 1036 1049 this_term ++; 1037 1050 } 1038 1039 1051 disp.setmacro ("freqmsg", "query", freqmsg); 1040 1052 … … 1089 1101 bool queryaction::save_search_history (cgiargsclass &args, const FilterResponse_t &response) 1090 1102 { 1103 1091 1104 if (args["q"]=="") return true; // null query, dont save 1092 1105 if (args["hs"]=="0") return true; // only save when submit query
Note:
See TracChangeset
for help on using the changeset viewer.