Greenstone tutorial exercise
Use METS as Greenstone's Internal Representation
- In the Greenstone Librarian Interface, open up one of your existing collections, for example the Small HTML Collection collection.
To be able to substitute GreenstoneMETSPlugin for GreenstoneXMLPlugin you need to be in Expert mode.
- Click File → Preferences... → Mode and change to Expert mode.
- Switch to the Design panel and select Document Plugins. Remove GreenstoneXMLPlugin from the list of plug-ins and add GreenstoneMETSPlugin, with the default configuration options. Move this plugin to where GreenstoneXMLPlugin was (just below ZipPlugin).
- Now change to the Create panel, locate the options for the import process and set saveas to GreenstoneMETS. Import options are not available unless you are in Expert mode.
Rebuild the collection.
- In your file browser, locate the archives folder for the collection you are working with (in Greenstone3 → web → sites → localsite → collect → <collname> → archives). For each document in the collection, Greenstone has generated two files: docmets.xml, the core METS description, and doctxt.xml, a supporting file. (Note: unless you are connected to the Internet you may be unable to view doctxt.xml in your web browser, because it refers to a remote resource.) Depending on the source documents there may be additional files, such as the images used within a web page. One of METS' many features is the ability to reference information in external XML files. Greenstone uses this to tie the content of the document, which is stored in the external XML file doctxt.xml, to its hierarchical structure, which is described in the core METS file docmets.xml.