Changeset 2464


Ignore:
Timestamp:
2001-05-23T15:08:42+12:00 (23 years ago)
Author:
dmm9
Message:

got filter terms working (sort of)

File:
1 edited

Legend:

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

    r2461 r2464  
    9898
    9999bool browseaction::init (ostream &logout){
    100   cerr<<"init"<<endl;
    101100  return true;
    102101}
     
    131130                       recptprotolistclass *protos,
    132131                       ostream &logout){
    133   //cerr<<"define_internal_macros"<<endl;
     132 
    134133}
    135134
     
    142141
    143142bool browseaction::do_action (cgiargsclass &args, recptprotolistclass *protos,
    144         browsermapclass *browsers, displayclass &disp,
    145         outconvertclass &outconvert, ostream &textout,
    146         ostream &logout){
    147  
    148  
    149   textout << outconvert << disp << "_browse:header_\n" <<"_browse:content_"
    150       << "_browse:footer_";
     143                  browsermapclass *browsers, displayclass &disp,
     144                  outconvertclass &outconvert, ostream &textout,
     145                  ostream &logout){
     146 
    151147  if(args["c"].empty()) return false;
    152148  else if(get_document_list(args, protos, browsers, disp, outconvert, textout,
     
    201197    text_t bf_string = "";
    202198    format_browsestring(args["bft"],bf_string,args.getintarg("bt"));
    203   }
    204 
    205   //check that there is a querystring
    206   //if(!newqstring.empty()){
    207199   
     200    set_browsefilter_options(request, bf_string, args);
     201
     202    colproto->filter (collection, request, response, err, logout);
     203    if (err != noError) {
     204      outconvertclass text_t2ascii;
     205      logout << text_t2ascii
     206         << "browseaction::get_document_list QueryFilter failed "
     207         << "for " << collection << " collection ("
     208         << get_comerror_string (err) << ")\n";
     209      return false;
     210    }// if (err != noError)
     211
     212  }// if(!args["bft"].empty())
     213
     214  textout << outconvert << disp << "_browse:header_\n" <<"_browse:content_";
     215
     216 
     217  bool use_table = is_table_content (formatptr);
     218  br_ptr->output_section_group (response, args, collection, 0, formatptr,
     219                  use_table, request.fields, request.getParents,
     220                  colproto, disp, outconvert, textout, logout);
     221
     222  textout << outconvert << disp << "_browse:footer_";
     223   
    208224 
    209225 
Note: See TracChangeset for help on using the changeset viewer.