Skip to main content.
home | support | download

Back to List Archive

Re: date range in swish.cgi search html

From: Bill Moseley <moseley(at)>
Date: Thu May 27 2004 - 21:48:40 GMT
On Thu, May 27, 2004 at 10:07:20AM -0700, David MacDougall wrote:
> Hello,
>  I am trying to increase the date ranges available in the HTML select
> boxes for "Select Date Range" in swish.cgi. I have documents that go back
> to January 1994 but the select boxes go back only to 1996. I am having
> trouble figuring out where to put the parameters to alter this default
> configuration.

ACK!  That poor DateRanges module was never suppose to be let out into
the wild.

Just edit the module:

            -name       => "${name}_year",
            -default    => $year,
            -values     => [reverse ($cur_year-8..$cur_year) ],

That -8 is likely what you want to mess with.

Bill Moseley
Received on Thu May 27 14:48:44 2004