Changeset 4770


Ignore:
Timestamp:
2003-06-23T15:20:01+12:00 (21 years ago)
Author:
kjdon
Message:

removed some stuff which wasn't supposed to be there, and made the default search type (ie whether the search page first shows plain or form) the first one in the list of search types

File:
1 edited

Legend:

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

    r4756 r4770  
    138138        } else {
    139139          unsigned int search_types = 0;
    140           cout << "search_types = "<<search_types <<endl;
    141140          text_tarray::const_iterator type_here = cinfo->searchTypes.begin();
    142141          text_tarray::const_iterator type_end = cinfo->searchTypes.end();
     
    151150          }
    152151          coll_type += search_types;
    153           cout << "new search_types = "<<search_types <<endl;
     152          if (search_types == 3) {
     153            // both were specified, now need to look at the order to see which is the default
     154            type_here = cinfo->searchTypes.begin();
     155            if (*type_here == "form") {
     156              coll_type += "&qt=1"; // set the default to form
     157            }
     158          }
    154159 
    155160        }
     
    282287        } else {
    283288          int search_types = 0;
    284           cout << "search_types = "<<search_types <<endl;
    285289          text_tarray::const_iterator type_here = cinfo->searchTypes.begin();
    286290          text_tarray::const_iterator type_end = cinfo->searchTypes.end();
     
    295299          }
    296300          coll_type += search_types;
    297           cout << "new search_types = "<<search_types <<endl;
    298301 
     302          if (search_types == 3) {
     303            // both were specified, now need to look at the order to see which is the default
     304            type_here = cinfo->searchTypes.begin();
     305            if (*type_here == "form") {
     306              coll_type += "&qt=1"; // set the default to form
     307            }
     308          }
    299309        }
    300310          }
Note: See TracChangeset for help on using the changeset viewer.