Changeset 765 for trunk/gsdl


Ignore:
Timestamp:
1999-11-02T11:04:12+13:00 (25 years ago)
Author:
sjboddie
Message:

just a few small changes (that means I can't remember ;)

Location:
trunk/gsdl/src/recpt
Files:
5 edited

Legend:

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

    r752 r765  
    2828/*
    2929   $Log$
     30   Revision 1.5  1999/11/01 22:04:11  sjboddie
     31   just a few small changes (that means I can't remember ;)
     32
    3033   Revision 1.4  1999/10/30 23:02:46  sjboddie
    3134   tidied things up slightly
     
    7982text_t browserclass::get_default_formatstring () {
    8083  return "<td>[link][icon][/link]</td><td>[highlight]{Or}{[Title],Untitled}[/highlight]</td>";
     84}
     85
     86void browserclass::set_filter_options (FilterRequest_t &request, cgiargsclass &args) {
     87 
     88  OptionValue_t option;
     89
     90  if (args["a"] == "q") {
     91    int arg_m = args.getintarg("m");
     92   
     93    option.name = "StartResults";
     94    option.value = args["r"];
     95    request.filterOptions.push_back (option);
     96   
     97    option.name = "EndResults";
     98    int endresults = args.getintarg("o") + (args.getintarg("r") - 1);
     99    //    int endresults = (args.getintarg("o")*3) + (args.getintarg("r") - 1);
     100    if ((endresults > arg_m) && (arg_m != -1)) endresults = arg_m;
     101    option.value = endresults;
     102    request.filterOptions.push_back (option);
     103
     104  } else {
     105    option.name = "StartResults";
     106    option.value = args["r"];
     107    request.filterOptions.push_back (option);
     108   
     109    option.name = "EndResults";
     110    int endresults = 20 + (args.getintarg("r") - 1);
     111    option.value = endresults;
     112    request.filterOptions.push_back (option);
     113  }
    81114}
    82115
  • trunk/gsdl/src/recpt/browserclass.h

    r752 r765  
    7373
    7474  virtual text_t get_default_formatstring ();
     75
     76  void set_filter_options (FilterRequest_t &request, cgiargsclass &args);
    7577 
    7678  // returns the number of tabs to add before displaying the
  • trunk/gsdl/src/recpt/datelistbrowserclass.cpp

    r727 r765  
    2828/*
    2929   $Log$
     30   Revision 1.4  1999/11/01 22:04:11  sjboddie
     31   just a few small changes (that means I can't remember ;)
     32
    3033   Revision 1.3  1999/10/19 08:40:11  sjboddie
    3134   fixed some stupid compiler warnings on windows
     
    6770
    6871int datelistbrowserclass::output_section_group (FilterResponse_t &sections, cgiargsclass &args,
    69                         int colnumber, format_t *formatlistptr,
     72                        const text_t &/*collection*/, int colnumber, format_t *formatlistptr,
    7073                        bool use_table, text_tset &/*metadata*/, bool &/*getParents*/,
    7174                        recptproto * /*collectproto*/, displayclass &disp,
  • trunk/gsdl/src/recpt/datelistbrowserclass.h

    r668 r765  
    4646 
    4747  int output_section_group (FilterResponse_t &sections, cgiargsclass &args,
    48                 int colnumber, format_t *formatlistptr,
     48                const text_t &collection, int colnumber, format_t *formatlistptr,
    4949                bool use_table, text_tset &metadata, bool &getParents,
    5050                recptproto *collectproto, displayclass &disp,
  • trunk/gsdl/src/recpt/hlistbrowserclass.cpp

    r751 r765  
    2828/*
    2929   $Log$
     30   Revision 1.6  1999/11/01 22:04:12  sjboddie
     31   just a few small changes (that means I can't remember ;)
     32
    3033   Revision 1.5  1999/10/30 23:02:01  sjboddie
    3134   tidied up, fixed a small bug
     
    119122  // get all siblings
    120123  FilterResponse_t response;
    121   text_t &arg_d = args["d"];
    122124  text_t &arg_cl = args["cl"];
    123125  get_children (section.OID + ".pr", args["c"], metadata, getParents,
Note: See TracChangeset for help on using the changeset viewer.