[greenstone-devel] CUSTOMIZING METADATA.XML FILE TO INCLUDE AUTOMATIC METADATA

From Pablo San Juan
DateThu Apr 10 18:30:39 2008
Subject [greenstone-devel] CUSTOMIZING METADATA.XML FILE TO INCLUDE AUTOMATIC METADATA
Hi Greenstone Development List,

I need your help. I□m testing Greenstone 2.80 release and I□m trying
to use MetadataXMLPlug plugin in order to include automatic metadata to
my collection files.

Here is an extract from metadata.xml file:

<DirectoryMetadata>
<FileSet>
<FileName>ABC.*</FileName>
<Description>
<Metadata mode="override" name="pren.Periodico">DIARIO ABC</Metadata>
</Description>
</FileSet>

It□s a newspaper□s collection. The filenames of my collection are
like "ABC20080327.PDF"; the three first characters indicates newspaper
abreviature, and next 8 characters indicate new date(year,month and day).
How can I extract date from filename to insert this value as new
metadata value in metadata tag?

Thank you very much for your help.

Best Regards,
Pablo
IT Manager.