Changeset 1328

Show
Ignore:
Timestamp:
02.08.2000 14:07:22 (19 years ago)
Author:
kjm18
Message:

added new cgiarg - g for granularity - for mgpp collections. also defines
_gselection_ macro.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/queryaction.cpp

    r1285 r1328  
    267267 
    268268 
     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 
    269279 
    270280} 
     
    481491    it = response.filterOptions.find ("CombineQuery"); 
    482492    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); 
    483497 
    484498    // define_history_macros(disp, args, protos, logout); 
     
    980994  text_t formattedstring = args["q"]; 
    981995  if (!combine_query (args["z"], formattedstring, gsdlhome)) { 
    982     args["q"]=formattedstring; 
     996    args["q"]=formattedstring;  
    983997  } 
    984998  format_querystring (formattedstring, args.getintarg("b")); 
     
    10251039void queryaction::define_query_macros (cgiargsclass &args, displayclass &disp,  
    10261040                       const FilterResponse_t &response) {  
    1027  
    10281041  // set up _freqmsg_ and _quotedquery_ macros 
    10291042  text_t freqmsg = "_textfreqmsg1_"; 
     
    10361049    this_term ++; 
    10371050  } 
    1038    
    10391051  disp.setmacro ("freqmsg", "query", freqmsg); 
    10401052 
     
    10891101bool queryaction::save_search_history (cgiargsclass &args, const FilterResponse_t &response)  
    10901102{ 
     1103 
    10911104  if (args["q"]=="") return true; // null query, dont save 
    10921105  if (args["hs"]=="0") return true; // only save when submit query