[greenstone-users] Modifying a plugin - or writing a new one

From I56
DateFri, 19 Sep 2003 09:12:42 -0700 (PDT)
Subject [greenstone-users] Modifying a plugin - or writing a new one
I'd like to create a new plug-in based on the PDF and
PS plugins for my own personal use. I'll have a
directory full of PDF and PS files. For each file I
will also have a metadata file containing the XML
metadata for Title, Subject, and FirstAuthor. So, for
example, I might have a file named "cowie96.pdf" and
have a metadata file named "cowie96.metadata" which
contains the text:

<Metadata name="Title">Information
<Metadata name="FirstAuthor">Cowie, Jim</Metadata>
<Metadata name="Subject">1.3</Metadata>

Question: How do I modify the plugins so that when I
add files to my library, they also look for the
corresponding "metadata" and add that information into
the XML file used for indexing.