Changeset 2456


Ignore:
Timestamp:
2001-05-22T13:16:42+12:00 (23 years ago)
Author:
dmm9
Message:

working up query stuff to use browseactiontools

File:
1 edited

Legend:

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

    r2449 r2456  
    2626#include "browseaction.h"
    2727#include "querytools.h"
    28 #include "browsetools.h"
     28#include "browseactiontools.h"
    2929
    3030browseaction::browseaction(){
     
    159159        displayclass &disp, outconvertclass &outconvert,
    160160        ostream &textout, ostream &logout){
    161   //cout<<"in doc list"<<endl;
    162161 
    163162  text_t collection = args["c"];
    164163  comerror_t err;
     164  text_t list_type = "VList";  //result display type
    165165
    166166  //check that the protocol is alive
     
    180180    return false;
    181181  }
     182
     183  browserclass* br_ptr = browsers->getbrowser(list_type);
     184
     185  FilterRequest_t request;
     186  FilterResponse_t response;
     187
     188  //set up browser structure
     189  br_ptr->set_filter_options(request, args);
     190  br_ptr->load_metadata_defaults(request.fields);
     191
     192  //set up format information
     193  format_t* formatptr = new format_t();
     194  parse_formatstring(br_ptr->get_default_formatstring(), formatptr,
     195             request.fields, request.getParents);
     196
     197  request.filterResultOptions = FROID | FRmetadata;
     198 
     199  //set up querystring;
     200  text_t newqstring = "";
     201  format_qstring(args["bft"],newqstring,args.getintarg("bt"));
     202 
     203  //check that there is a querystring
     204  //if(!newqstring.empty()){
     205   
     206 
    182207 
    183208  return true;
    184209}
    185210
     211
     212
     213
     214
Note: See TracChangeset for help on using the changeset viewer.