Word PDF collection

This collection demonstrates Greenstone's ability to build collections from documents provided in different formats. It contains a number of papers written by various members of the NZDL project in PDF, MSWord, RTF, and Postscript formats.

The documents in this collection have been produced by members of the Department of Computer Science, University of Waikato. The University of Waikato holds copyright. They may be distributed freely, without any restrictions.

How the collection works

This collection's configuration file, collectionConfig.xml, contains the four plugins WordPlugin, RTFPlugin, PDFPlugin and PostScriptPlugin (along with the standard four, GreenstoneXMLPlugin, MetadataXMLPlugin, ArchivesInfPlugin and DirectoryPlugin). These four plugins all extract Title and Source (i.e. filename) metadata.

Greenstone contains third-party software that is used to convert Word, RTF, PDF and PostScript files into HTML. The Greenstone team does not maintain these modules, although we do try to include the latest versions with each Greenstone release. Bugs arise with unusual Word documents (e.g. from older Macintosh systems), and sometimes the text is badly extracted. Some PDF files have no machine-readable text at all, comprising instead a sequence of page images from which text can only be extracted by optical character recognition (OCR), which Greenstone does not attempt. If you encounter these problems, you can either remove the offending documents from your collection, or try using some of the advanced plugin options to process the documents in different ways. For more information, see the Enhanced PDF and Word tutorials on the Greenstone wiki. Alternatively, a new Greenstone 3 collection will add in a pre-configured UnknownConverterPlugin that will use apache tika by default to process docx files. You can reconfigure it, or add another UnknownConverterPlugin and configure it appropriately, to process other document types, refer to The UnknownConverterPlugin page on the Greenstone wiki.

The collection configuration file, collectionConfig.xml, includes a single index, based on document text, and one classifier, an AZList based on Title metadata, shown in CL1 (the alphabetic selector is suppressed automatically because the collection contains only a few documents). However, no format statement is specified. In the absence of explicit information, Greenstone supplies sensible defaults. In this case, the default format statement for the classifier gives:


Here is a format statement that achieves exactly the same effect explicitly. It applies to all Vlists, and so controls both search results list and the alphabetic title browser.

<gsf:template match="documentNode"> 
<gsf:format-gs2><![CDATA[<td valign="top">[link][icon][/link]</td> 
<td valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td> 
<td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],<br><i>([ex.Source])</i>}</td>]]></gsf:format-gs2> 
<td valign="top"> 
<gsf:link type="document"> 
<gsf:icon type="document"/> 
<td valign="top"> 
<gsf:link type="source"> 
<gsf:metadata name="thumbicon"/> 
<gsf:metadata name="srcicon"/> 
<td valign="top"> 
<span class="highlight"> 
<gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata> 
<gsf:metadata name="Source"/> 
<gsf:when test="exists"> 
<i>(<gsf:metadata name="Source"/>)</i>