Changeset 11717
- Timestamp:
- 2006-04-27T11:43:46+12:00 (18 years ago)
- Location:
- branches/gsdl-2_70-distribution-branch/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gsdl-2_70-distribution-branch/gsdl/src/recpt/historydb.cpp
r9620 r11717 31 31 32 32 #define MAX_RECORDS 20 33 #define HIST_SEP ';' 33 34 34 35 // returns true on success (in which case historyinfo will contain … … 151 152 if (entry==key) { 152 153 here=it+1; 153 it=findchar(here, end, '&');154 it=findchar(here, end, HIST_SEP); 154 155 value = substr(here, it); 155 156 return; … … 168 169 text_tarray values; 169 170 170 splitchar(here, end, '&', values);171 splitchar(here, end, HIST_SEP, values); 171 172 172 173 text_tarray::iterator start = values.begin(); … … 231 232 infodbclass argsinfo; 232 233 parse_saved_args(historyargs, argsinfo); 233 234 234 text_t collect = argsinfo["c"]; 235 235 if (collect=="") { … … 237 237 return; 238 238 } 239 239 240 240 if (collect != args["c"]) { 241 241 userinfo += collect+", "; … … 260 260 261 261 if (argsinfo["b"] != args["b"] || argsinfo["t"] != args["t"]) { 262 text_t mode;263 262 if (argsinfo["b"]=="0") { // simple mode 264 263 if (argsinfo["t"]=="0") { 265 mode = " _texthallwords_";266 } 267 else { // t=1268 mode = " _texthsomewords_";264 userinfo += " _texthallwords_, "; 265 } 266 else if (argsinfo["t"]=="1"){ 267 userinfo += " _texthsomewords_, "; 269 268 } 270 269 271 270 } 272 else { // advanced mode271 else if (argsinfo["b"] == "1") { // advanced mode 273 272 if (argsinfo["t"]=="0") { 274 mode = " _texthboolean_"; 275 } 276 else { 277 mode = " _texthranked_"; 278 } 279 } 280 userinfo += mode+", "; 281 } 282 283 if (argsinfo["k"] != args["k"]) { 273 userinfo += " _texthboolean_, "; 274 } 275 else if (argsinfo["t"]=="1") { 276 userinfo += " _texthranked_, "; 277 } 278 } 279 } 280 281 if (argsinfo["k"] != "" && argsinfo["k"] != args["k"]) { 284 282 text_t options; 285 if (argsinfo["k"]=="0") { 286 options = " _texthcaseoff_"; 287 } 288 else { 289 options = " _texthcaseon_"; 290 } 291 userinfo += options+", "; 292 } 293 294 if (argsinfo["s"] != args["s"]) { 295 text_t stem; 283 // the text translations are the wrong way round 284 if (argsinfo["k"]=="1") { 285 userinfo += " _texthcaseoff_, "; 286 } 287 else if (argsinfo["k"]=="0") { 288 userinfo += " _texthcaseon_, "; 289 } 290 } 291 292 if (argsinfo["s"] != "" && argsinfo["s"] != args["s"]) { 296 293 if (argsinfo["s"]=="0") { 297 stem = " _texthstemoff_"; 298 } 299 else { 300 stem = " _texthstemon_"; 301 } 302 userinfo += stem+", "; 303 } 304 305 } 294 userinfo += " _texthstemoff_, "; 295 } 296 else if (argsinfo["s"]=="1") { 297 userinfo += " _texthstemon_, "; 298 } 299 } 300 301 } -
branches/gsdl-2_70-distribution-branch/gsdl/src/recpt/queryaction.cpp
r11005 r11717 817 817 818 818 // defines the following macros 819 820 819 // _searchhistorylist_ 821 820 … … 1601 1600 } 1602 1601 query += "c="+args["c"]; 1603 query += " &h="+args["h"];1604 query += " &t="+args["t"];1605 query += " &b="+args["b"];1606 query += " &j="+args["j"];1607 query += " &n="+args["n"];1608 query += " &s="+args["s"];1609 query += " &k="+args["k"];1610 query += " &g="+args["g"];1602 query += ";h="+args["h"]; 1603 query += ";t="+args["t"]; 1604 query += ";b="+args["b"]; 1605 query += ";j="+args["j"]; 1606 query += ";n="+args["n"]; 1607 query += ";s="+args["s"]; 1608 query += ";k="+args["k"]; 1609 query += ";g="+args["g"]; 1611 1610 1612 1611 text_t qstring = args["q"]; 1613 1612 //text_t formattedquery =cgi_safe(qstring); 1614 1613 //query += "&q="+formattedquery; 1615 query += " &q="+qstring;1614 query += ";q="+qstring; 1616 1615 bool display=false; 1617 1616 int hd = args.getintarg("hd");
Note:
See TracChangeset
for help on using the changeset viewer.