Changeset 634


Ignore:
Timestamp:
1999-09-24T16:49:39+12:00 (25 years ago)
Author:
sjboddie
Message:

fixed up the query selection boxes to display properly if there's only
a single index/sub-collection

File:
1 edited

Legend:

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

    r622 r634  
    2828/*
    2929   $Log$
     30   Revision 1.25  1999/09/24 04:49:39  sjboddie
     31   fixed up the query selection boxes to display properly if there's only
     32   a single index/sub-collection
     33
    3034   Revision 1.24  1999/09/22 03:44:31  sjboddie
    3135   EndResults query filter option may now take '-1' for 'all'
     
    402406                    const FilterOption_t &option, displayclass &disp) {
    403407 
     408  if (option.validValues.empty()) return;
     409  else if (option.validValues.size() == 1) {
     410    disp.setmacro (macroname + "selection", "Global", "_" + option.defaultValue + "_");
     411    return;
     412  }
    404413  if (option.validValues.size() < 2) return;
    405 
     414 
    406415  text_t macrovalue = "<select name=\"" + macroname + "\">\n";
    407 
     416 
    408417  if (current_value.empty()) current_value = option.defaultValue;
    409 
     418 
    410419  text_tarray::const_iterator thisvalue = option.validValues.begin();
    411420  text_tarray::const_iterator endvalue = option.validValues.end();
Note: See TracChangeset for help on using the changeset viewer.