Changeset 356 for trunk/gsdl/src/recpt/queryaction.cpp
- Timestamp:
- 1999-07-09T14:17:55+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/queryaction.cpp
r349 r356 12 12 /* 13 13 $Log$ 14 Revision 1.12 1999/07/09 02:17:55 rjmcnab 15 Setting macros needed for a second query. 16 14 17 Revision 1.11 1999/07/07 06:13:10 rjmcnab 15 18 Added ability to combine two independant queries. … … 147 150 argsinfo.addarginfo (NULL, arg_ainfo); 148 151 149 // "cq2" 152 // "cq2" ""=don't combine, "and", "or", "not" 150 153 arg_ainfo.shortname = "cq2"; 151 154 arg_ainfo.longname = "combine queries"; … … 333 336 334 337 // some or all of these may not be required to be set 335 // _hselection_ the selection box for the main part of the index 336 // _jselection_ the selection box for the subcollection part of the index 337 // _nselection_ the selection box for the language part of the index 338 338 // _hselection_, _h2selection_ the selection box for the main part of the index 339 // _jselection_, _j2selection_ the selection box for the subcollection part of the index 340 // _nselection_, _n2selection_ the selection box for the language part of the index 341 // _cq2selection the selection box for combining two queries 342 339 343 340 344 // can't do anything if collectproto is null (i.e. no collection was specified) … … 348 352 collectproto->get_filteroptions (args["c"], request, response, err, logout); 349 353 if (err == noError) { 350 354 351 355 FilterOption_tmap::const_iterator it; 352 356 FilterOption_tmap::const_iterator end = response.filterOptions.end(); 353 354 // _hselection_ (Index)357 358 // _hselection_ and _h2selection_ (Index) 355 359 it = response.filterOptions.find ("Index"); 356 if (it != end) set_option_macro ("h", args["h"], (*it).second, disp); 357 358 // _jselection_ (Subcollection) 360 if (it != end) set_option_macro ("h", args["h"], (*it).second, disp); 361 if (it != end) set_option_macro ("h2", args["h2"], (*it).second, disp); 362 363 // _jselection_ and _j2selection_ (Subcollection) 359 364 it = response.filterOptions.find ("Subcollection"); 360 if (it != end) set_option_macro ("j", args["j"], (*it).second, disp); 361 362 // _nselection_ (Language) 365 if (it != end) set_option_macro ("j", args["j"], (*it).second, disp); 366 if (it != end) set_option_macro ("j2", args["j2"], (*it).second, disp); 367 368 // _nselection_ and _n2selection_ (Language) 363 369 it = response.filterOptions.find ("Language"); 364 if (it != end) set_option_macro ("n", args["n"], (*it).second, disp); 370 if (it != end) set_option_macro ("n", args["n"], (*it).second, disp); 371 if (it != end) set_option_macro ("n2", args["n2"], (*it).second, disp); 372 373 // _cq2selection_ (CombineQuery) 374 it = response.filterOptions.find ("CombineQuery"); 375 if (it != end) set_option_macro ("cq2", args["cq2"], (*it).second, disp); 365 376 } 366 377 }
Note:
See TracChangeset
for help on using the changeset viewer.