Ignore:
Timestamp:
1999-07-09T14:17:55+12:00 (25 years ago)
Author:
rjmcnab
Message:

Setting macros needed for a second query.

File:
1 edited

Legend:

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

    r349 r356  
    1212/*
    1313   $Log$
     14   Revision 1.12  1999/07/09 02:17:55  rjmcnab
     15   Setting macros needed for a second query.
     16
    1417   Revision 1.11  1999/07/07 06:13:10  rjmcnab
    1518   Added ability to combine two independant queries.
     
    147150  argsinfo.addarginfo (NULL, arg_ainfo);
    148151
    149   // "cq2"
     152  // "cq2" ""=don't combine, "and", "or", "not"
    150153  arg_ainfo.shortname = "cq2";
    151154  arg_ainfo.longname = "combine queries";
     
    333336
    334337  // 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 
    339343 
    340344  // can't do anything if collectproto is null (i.e. no collection was specified)
     
    348352  collectproto->get_filteroptions (args["c"], request, response, err, logout);
    349353  if (err == noError) {
    350 
     354   
    351355    FilterOption_tmap::const_iterator it;
    352356    FilterOption_tmap::const_iterator end = response.filterOptions.end();
    353 
    354     // _hselection_ (Index)
     357   
     358    // _hselection_ and _h2selection_ (Index)
    355359    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)
    359364    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)
    363369    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);
    365376  }
    366377}
Note: See TracChangeset for help on using the changeset viewer.