[greenstone-devel] reformat dates in a collection?

From Belanger, Arthur
DateFri Mar 19 01:54:37 2010
Subject [greenstone-devel] reformat dates in a collection?
In-Reply-To (4BA14042-2020604-bates-edu)
Hi Jim.

Your metadata is likely to be in the file GSDLHOME/collect/collectionname/import/metadata.xml though you may have it in some other file but probably in the import directory. You can run a script against the metadata file(s) in the import directory, reimport the data and rebuild the collection.

Good luck.

--
Arthur Belanger
Medical Library System Manager
ITS Academic Media & Technology
Yale University
PO Box 208065
New Haven, CT 06520-8065

(203) 785-6928
(203) 737-2859, fax

mailto:Arthur.Belanger@Yale.Edu
http://www.yale.edu/its/about/amt
http://info.med.yale.edu/library


NOTE: Yale ITS will NEVER request passwords or other personal information via email. Messages requesting such information are fraudulent and should be deleted.

-----Original Message-----
From: greenstone-devel-bounces@list.scms.waikato.ac.nz [mailto:greenstone-devel-bounces@list.scms.waikato.ac.nz] On Behalf Of Jim Hart
Sent: Wednesday, March 17, 2010 4:49 PM
To: greenstone-devel@list.scms.waikato.ac.nz
Subject: [greenstone-devel] reformat dates in a collection?

The date stamps in our collections are incorrectly formatted for OAI.
Since there are thousands of items, changing them all by hand would be a
lot of work. In most cases, we need to change MM/DD/YYYY to YYYY-MM-DD,
regardless of the specific year, month and day.

Is there some way to export the metadata in a format that can be changed
with a script and then reloaded into the collection?

Changing the metadata directly with set_metadata.pl won't work because
it changes specific values, e.g. 01/02/1995 to 1995-01-02.

Is there some other way?


Jim Hart
Bates College


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