[Zope] ZCatalog: searching by date

Alice Gutman aliceg@rescomp.berkeley.edu
Sun, 21 Nov 1999 16:59:27 -0800 (PST)


Hi,

I'm part of a student group at UC Berkeley, and I'm trying to use ZCatalog
to allow users to search our site by keyword and date modified.  But for
some reason, the date field seems to be ignored when a search is
conducted.  Since the keyword part works just fine and I can't find
anything wrong with my code, I am stumped.  Does anyone have any
suggestions?  Here is my search_form method, in case that is the problem
after all:

<!--#var standard_html_header-->

<form action="report" method="get">
<h2><!--#var document_title--></h2>
Enter query parameters:<br><table>

<tr><th>Search for text:</th>
    <td><input name="raw"
               width=30 value=""></td></tr>
<tr><th>Modified since: </th>
    <td><input type="hidden" name="date_usage" value="range:min">
                <select name="date:date">
           	    <option value="<!--#var "ZopeTime(0)"-->">Ever</option>
                    <option value="<!--#var "ZopeTime() - 1"-->">Yesterday</option>
              	    <option value="<!--#var "ZopeTime() - 7" -->">Last Week</option>
            	    <option value="<!--#var "ZopeTime() - 30" -->">Last Month</option>
             	    <option value="<!--#var "ZopeTime() - 365" -->">Last Year</option>
		</select></td></tr>
<tr><td colspan=2 align=center>
<input type="SUBMIT" name="SUBMIT" value="Submit Query">
</td></tr>
</table>
</form>
<!--#var standard_html_footer-->


Thanks in advance,
Alice