Changeset 962

Show
Ignore:
Timestamp:
22.02.2000 10:57:50 (20 years ago)
Author:
sjboddie
Message:

actions are now configured with gsdlhome

Location:
trunk/gsdl/src/recpt
Files:
4 modified

Legend:

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

    r754 r962  
    2828/* 
    2929   $Log$ 
     30   Revision 1.19  2000/02/21 21:57:49  sjboddie 
     31   actions are now configured with gsdlhome 
     32 
    3033   Revision 1.18  1999/11/01 21:10:57  sjboddie 
    3134   chnaged arguments passed to many functions 
     
    123126 
    124127// configure should be called once for each configuration line 
    125 // the default version does nothing 
    126 void action::configure (const text_t &/*key*/, const text_tarray &/*cfgline*/) { 
     128void action::configure (const text_t &key, const text_tarray &cfgline) { 
     129  if (key == "gsdlhome") {gsdlhome = cfgline[0];} 
    127130} 
    128131 
  • trunk/gsdl/src/recpt/action.h

    r754 r962  
    4949protected: 
    5050  cgiargsinfoclass argsinfo; 
    51  
     51  text_t gsdlhome; 
    5252 
    5353public: 
  • trunk/gsdl/src/recpt/delhistoryaction.cpp

    r940 r962  
    147147    historylist += "<tr><th width=60>_textselect_</th><th width=40>#</th>\n<th width=340>_query:textquery_</th>\n"; 
    148148    historylist += "<th width=60>_query:textresults_</th></tr>\n"; 
    149     if (get_history_info (userid, entries, logout)) { 
     149    if (get_history_info (userid, entries, gsdlhome, logout)) { 
    150150      int count = 1; 
    151151      text_tarray::iterator here = entries.begin(); 
     
    207207  text_t type = args["hdh"]; 
    208208  if (type == "1") { 
    209     result = delete_all_history_info (userid); 
     209    result = delete_all_history_info (userid, gsdlhome); 
    210210  } else { 
    211211    text_t records = args["hsr"]; 
    212212    text_t deletemode = args["hmode"]; 
    213     result = delete_history_info (userid, deletemode, records); 
     213    result = delete_history_info (userid, deletemode, records, gsdlhome); 
    214214  } 
    215215 
  • trunk/gsdl/src/recpt/queryaction.cpp

    r936 r962  
    2828/* 
    2929   $Log$ 
     30   Revision 1.36  2000/02/21 21:57:48  sjboddie 
     31   actions are now configured with gsdlhome 
     32 
    3033   Revision 1.35  2000/02/17 02:35:04  sjboddie 
    3134   tidied up search history stuff a bit - replaced strings with macros 
     
    630633    text_t userid = args["z"]; 
    631634    text_tarray entries; 
    632     if (get_history_info (userid, entries, logout)) { 
     635    if (get_history_info (userid, entries, gsdlhome, logout)) { 
    633636      int count = 1; 
    634637      text_tarray::iterator here = entries.begin(); 
     
    10891092  request.filterResultOptions = FROID | FRmetadata | FRtermFreq; 
    10901093  text_t formattedstring = args["q"]; 
    1091   if (!combine_query(args["z"], formattedstring)) { 
     1094  if (!combine_query (args["z"], formattedstring, gsdlhome)) { 
    10921095    args["q"]=formattedstring; 
    10931096  } 
     
    12251228  query += "&q="+formattedquery; 
    12261229 
    1227   if (set_history_info(userid, query)) return true; 
     1230  if (set_history_info(userid, query, gsdlhome)) return true; 
    12281231  else return false; 
    12291232