RE: ZCatalog: searching by date
At 12:45 PM 11/22/99 -0800, Alice Gutman wrote:
---------- Forwarded message ---------- defines 'date'. If you do not have a ZClass defining this attribute, then you probably want to change all the occourances of 'date' in your DTML to 'bobobase_modification_time'.
-Michel
As background: we built the ZCatalog and the Search interface according to the ZCatalog HOWTO/Tutorial. Then we eliminated all the fields except "raw" and "bobobase_modification_time" Now, what we are trying to do is search by keyword and/or modification date (like on the Zope site.) How can we do this? I have attached our revised search interface below: Everytime we use only the date field, it returns no data found. The second and possibly related question is: After I have the default search interface as defined by the ZCatalog HOWTO, how do I actually search by date? Every time I enter a date in the bobobase_modification_time field, it returns no entries found. many thanks, sachin SEARCH INTERFACE: <!--#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><select name="bobobase_modification_time"> <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-->
----- Original Message ----- From: Sachin Shah <sachin@rescomp.berkeley.edu> To: <zope@zope.org> Sent: Tuesday, November 23, 1999 4:29 AM Subject: [Zope] RE: ZCatalog: searching by date
The second and possibly related question is: After I have the default search interface as defined by the ZCatalog HOWTO, how do I actually search by date? Every time I enter a date in the bobobase_modification_time field, it returns no entries found.
Maybe you need to define <input type=hidden name="bobobase_modification_time_usage" value="range:min"> ? Kevin
participants (2)
-
Kevin Dangoor -
Sachin Shah