Ignore:
Timestamp:
1999-09-21T23:34:42+12:00 (25 years ago)
Author:
sjboddie
Message:

added Maxdocs queryfilter option which may be -1 for 'all'

File:
1 edited

Legend:

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

    r533 r608  
    2828/*
    2929   $Log$
     30   Revision 1.7  1999/09/21 11:32:42  sjboddie
     31   added Maxdocs queryfilter option which may be -1 for 'all'
     32
    3033   Revision 1.6  1999/09/07 04:56:58  sjboddie
    3134   added GPL notice
     
    146149    }
    147150  }
     151
     152  int arg_m = args.getintarg("m");
     153
     154  option.name = "Maxdocs";
     155  option.value = arg_m;
     156  request.filterOptions.push_back (option);
    148157 
    149158  option.name = "StartResults";
     
    152161
    153162  option.name = "EndResults";
    154   int arg_m = args.getintarg("m");
    155163  int endresults = args.getintarg("o") + (args.getintarg("r") - 1);
    156   if (endresults > arg_m) endresults = arg_m;
     164  if ((endresults > arg_m) && (arg_m != -1)) endresults = arg_m;
    157165  option.value = endresults;
    158166  request.filterOptions.push_back (option);
Note: See TracChangeset for help on using the changeset viewer.