Re: [greenstone-users] Search in dc.Date Metadata

From PaingThu Chit
DateFri, 27 Apr 2007 13:22:53 +0800
Subject Re: [greenstone-users] Search in dc.Date Metadata
In-Reply-To (463172D8-5020000-dlconsulting-co-nz)
HI all..
 How to do the javascript in greenstone? Develop in Extra.dm and use it in greenstone document format? Is there anyone can explain me how to implement and how to use? Thanks in advance.
Because of Im thinking of implementing the map navigation to the list results like if I click on the one location and then go to the item related. And I want to apply onclick event to bookselve lvl. Is it possible? Thanks in Advance.
 
Regards,
  Paing

 
On 4/27/07, Richard Managh <richard@dlconsulting.co.nz> wrote:
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
   would convert the users selection to 20070203 for the search when the form is submitted. (A better solution than the above)

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.
   So for a document, "Date" might be "20070203" and TextDate might be something like "February  3 2007 Feb 07 third", you could have other language versions of the months too.
 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

I have a search index on dc.Date.  The dates are in the following formats:

1- 2007, 2006, 2005, etc
2- 200701, 200702, 200703, etc
3- 20070101, 20070102, 20070103, etc

All the dates are being displayed using Format Statement [format: dc.Date]

and the result is as under:

1- 2007, 2006, 2005
2- January 2007, February 2007, etc
3- 01 January 2007, 02 January 2007, etc.

Now my users visits the documents by natural way like "February 2007" but they got 0 results because i have entered the date in the above format. 

Is there any way to search these dates in simple way

Regards,

Ata ur Rehman

Librarian
AHK Resource Center
Islamabad

http://www.ahkrc.net.pk



_______________________________________________ greenstone-users mailing list greenstone-users@list.scms.waikato.ac.nz https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users



_______________________________________________
greenstone-users mailing list
greenstone-users@list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users