From | Richard Managh |
Date | Fri, 27 Apr 2007 15:49:44 +1200 |
Subject | Re: [greenstone-users] Search in dc.Date Metadata |
In-Reply-To | (615feabd0704170406h4a8fb22fj4fdf5706605eca24-mail-gmail-com) |
Hi cyberarian, Well, perhaps you have already considered this, but a date classifier already performs this function, ordering your documents by date. Heres an example: http://diglib.auburn.edu/gsdl/cgi-bin/library?e=d-000-00---0sheetmus--00-0-0--0prompt-10---4------0-1l--1-en-50---20-about---00031-001-1-0utfZz-8-00&a=d&cl=CL3&dm=Date Heres what you need to add to your collect.cfg: classifyDateList -metadata Date If however, you really want to search by date, there are a number of options that come to mind. You could: o Add Javascript which converts strings such as "February 2007" to "200702" before the search form is submitted. o Add Javascript and drop down boxes to your search page where the user selects, month, day and year, and the javascript o Add a new metadata value called maybe "TextDate" when you import your documents and alter your import plugin(s) to parse the 20070203 strings in your existing date metadata and convert them to their more natural human readable equivalents. €You could then build an index on TextDate instead of Date for your search. o If you have produced your own metadata.xml files you might add TextDate to the import documents in the metadata.xml files, this would mean you wouldnt have to play around with customising plugins. Hope this helps, Richard Managh -- DL Consulting Greenstone Digital Library and Digitisation Specialists contact@dlconsulting.com www.dlconsulting.com cyberarian wrote: Dear All |