- Timestamp:
- 2001-07-12T14:48:18+12:00 (23 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/documentaction.cpp
r2422 r2646 582 582 comerror_t err; 583 583 OptionValue_tarray options; 584 // we need to know what the query wasfor the z3950proto584 // we need to do the query again for the z3950proto 585 585 if (collectproto->get_protocol_name(err)=="z3950proto") { 586 586 OptionValue_t opt; 587 opt.name="Query"; 588 opt.value=args["q"]; 587 opt.name="Term";opt.value=args["q"];options.push_back(opt); 588 opt.name="QueryType"; 589 opt.value=(args.getintarg("t")) ? "ranked" : "boolean"; 589 590 options.push_back(opt); 591 opt.name="Index";opt.value=args["h"];options.push_back(opt); 590 592 } 591 593 … … 757 759 758 760 // output the table of contents 759 logout << "formatinfo.RelatedDocs: " << formatinfo.RelatedDocuments.getcstr() << endl;760 761 output_toc (args, browsers, formatinfo, collectproto, 761 762 disp, outconvert, textout, logout); -
trunk/gsdl/src/recpt/z3950proto.cpp
r1900 r2646 343 343 `EndResults'=`20' 344 344 `Term'=`firstword secondword' (term is just whatever the user typed in) 345 `QueryType'=`ranked' => 'OR' (cgiarg t=1) 346 `QueryType' = `boolean' => 'AND' (cgiarg t=0) 345 `QueryType'=ranked|boolean -> OR|AND 346 //`MatchMode'=`some' => 'OR' 347 //`MatchMode' = `all' => 'AND' 347 348 `Casefold'=`true' 348 349 `Stem'=`false' … … 490 491 OptionValue_tarray::iterator opt_end=request.filterOptions.end(); 491 492 while (opthere!=opt_end) { 492 if (opthere->name==" Query") {493 if (opthere->name=="Term") { 493 494 query=opthere->value; 494 break; 495 } else if (opthere->name=="Index") { 496 field=opthere->value; 497 } else if (opthere->name=="QueryType") { 498 if (opthere->value=="ranked") querytype=1; 499 else if (opthere->value=="boolean") querytype=2; 500 else { /* error - shouldn't happen */ 501 /* currently unhandled */ 502 } 495 503 } 496 504 opthere++;
Note:
See TracChangeset
for help on using the changeset viewer.