In Greenstone we use METS in a very specific way - as an alternative
archive format to Greenstone Archive format. If the option '-saveas
METS' is used with import.pl, then source documents will be converted to
the Greenstone METS profile, which uses Dublin_Core as its metadata.
This divides documents into sections, stores metadata at the section or
document level and uses XML xpointer syntax to locate the content of the
source documents stored in a temporary XML file. Then when building
(indexing) the collection, the METS plugin is used to read in the METS
files. It is therefore only designed to process METS documents that
match the Greenstone METS profile. Since we only use dublin core at this
stage, the current METS plugin is not really applicable to your
If you want to see our METS format, you can simply import a collection
and save as the "METS" format by typing the command below:
import.pl -saveas "METS" collection_name
Then, in your archives directory, you will see two files: docmets.xml
which stores all the metadata either in the document or section level
and the associated file pointers and doctxt.xml which stores the content
of the source documents in an XML format.
Our suggestion would be for you to write a MODS plugin. To develop a
MODS plugin, you may want to use XML plugin as a base class. In XML
plugin, all the basic handlers are defined. Once your MODS plugin
inherits from the XML plugin, you can program your own handlers to match
MODS 's requirements. The most suitable example of the source code you
can look at probably is the METS plugin.
Hope this is useful!
> -------- Original Message --------
> Subject: [greenstone-users] MODS Plugin?
> Date: Tue, 05 Apr 2005 14:45:18 +0930
> From: Steve Thomas <firstname.lastname@example.org>
> Organization: University of Adelaide Library
> To: email@example.com
> Hi. Resending this from last weekend:
> Is anyone working on, or aware of, a MODS plugin?
> I've been using BibTex to import bibliographic data, but would rather
> work with XML. I've looked at various DC implementations (RDF, OAI)
> and these are not quite adequate -- DC soesn't provide all the fields
> that BibTex does. MODS seems to be a more comprehensive format for my
> needs, and also looks likely to eventually replace BibTex for such
> So, before I go away and (attempt to) write my own, does anyone know
> of a MODS plugin?
> [Note that further information from the MODS list suggests that one
> possible answer is to wrap the MODS record in a METS record. I see
> that there is METS Plugin. However, that being the case, I'm not sure
> whether I need a separate XML file for each bibliographic record, or
> can use one XML file containing multiple records. If the latter, I'm
> not clear on how to encode the METS. Any pointers welcomed.]