Greenstone is one of the most widely used open-source tools for building digital libraries, and Indian institutions like IIM Kozhikode and many university departments rely on it to digitise and share their holdings. The real work in Greenstone happens in something called a collection, a self-contained set of documents with its own searching and browsing features. If you have ever wondered how a folder of scanned PDFs and Word files turns into a searchable online library, the answer lies in the process of collection building. This post walks through exactly how that works, from defining a fresh collection to previewing the finished result.
Table of Contents
What a collection is and where you build it
A collection in Greenstone is a group of documents that are organised, indexed, and presented together. Each collection has its own metadata, its own search indexes, and its own browsing structure. You can have many collections running on a single Greenstone installation, and each can be updated independently.
Collections are built using the Greenstone Librarian Interface, usually shortened to GLI. This is a Java-based graphical interface that makes it easy to gather material, enrich it with metadata, design searching and browsing facilities, and then build and serve the collection. Greenstone itself is developed by the New Zealand Digital Library Project at the University of Waikato in cooperation with UNESCO, which is one reason it has become popular in developing countries where library budgets are tight.
The GLI organises the whole workflow into a row of panels: Gather, Enrich, Design, Create, and Format. You move from left to right as your collection takes shape, and the panels map almost perfectly onto the four stages we will cover.
Creating a new collection
The first step is to define the collection itself. Inside the GLI you open the File menu and choose to create a new collection. Greenstone asks you for a few basic details: the collection title that readers will see, a short description of what the collection contains, and an email address for the contact person.
At this point Greenstone offers an important choice. You can build the new collection on top of an existing one, which copies its structure and settings, or you can start from a blank slate using the “New Collection” option. Starting fresh gives you full control over how the collection is configured.
Choosing your metadata standard
Before you add any documents, it helps to decide how you will describe them. In Greenstone, one or more metadata sets are associated with each collection, and Dublin Core is one of the pre-prepared sets. Dublin Core is an international standard built around fifteen core elements such as Title, Creator, Subject, and Date. Because it is widely understood and used across libraries worldwide, it is the sensible default for most collections.
Greenstone supports several other predefined sets too. Users define metadata interactively within the Librarian interface, and the predefined sets include qualified and unqualified Dublin Core, RFC 1807, and the New Zealand and Australian government locator standards. There is also a special extracted metadata set, which holds information Greenstone pulls out of documents automatically, such as the title from a Word file or the language of a text. Greenstone keeps these sets apart using namespaces, so a manually entered Dublin Core title is stored as dc.Title while an automatically extracted one is stored as ex.Title. If your project needs a custom set, you can build one using the Greenstone Editor for Metadata Sets.
Adding documents
Once the collection exists, you populate it in the Gather panel. The screen is split in two: the left side shows your computer’s file system, the right side shows the collection you are building. The Gather panel is where you determine which files will be in your collection, and any files you add are copied into it, so your originals stay untouched. You simply drag files and folders from the left and drop them on the right.
Greenstone is comfortable with a wide range of formats. For textual documents there are plug-ins for PDF, PostScript, Word, RTF, HTML, plain text, Excel, PowerPoint, and more, so the Word, PDF, and PostScript files mentioned in most coursework are all handled natively. When you drop in a file type that the collection does not yet know how to process, Greenstone notices and prompts you to add the appropriate plugin on the spot.
Assigning metadata in the Enrich panel
After gathering the files, you describe them in the Enrich panel. Here you can add metadata to a single document, to several documents at once, or to a whole folder. You select a document, find the relevant Dublin Core field such as dc.Title or dc.Creator, and type in the value.
One practical detail worth knowing is that you can add more than one value for the same field; when you press Enter in a metadata value box, a fresh empty field of the same type appears. This makes it easy to list several authors as separate dc.Creator entries. If you open a document to copy its real title or author, remember to close that external program before building, otherwise errors can occur. Enriching metadata is optional in the sense that Greenstone will still build a collection without it, but good metadata is what makes browsing and searching genuinely useful.
Designing the collection
The Design panel is where you decide how the collection behaves. It dictates how your documents are handled, through document plugins, and how users will interact with the collection, through search indexes and browsing classifiers. This single panel has several sections listed down its left edge.
Configuring document plugins
Plugins are the engines that read your files. Every document must be processed by a plugin, and a new collection comes with a default list of commonly used ones such as HTMLPlugin, WordPlugin, and the PDF plugin. In the Document Plugins section you can add, configure, or remove these. If your collection contains only Word and PDF material, you can safely remove the plugins you do not need to keep the build clean, though GreenstoneXMLPlugin should always stay in place because the system depends on it.
Plugins can also be tuned. For example, you can select WordPlugin, open its configure window, and set the associate option so that each Word file is linked to a matching PDF of the same name, letting readers download a polished version alongside the searchable text.
Setting up search indexes and browsing classifiers
Search indexes determine what readers can search across. You might index the full text of every document, or build separate indexes for specific fields like titles or subjects. Browsing is handled separately. The ability to browse collections is managed by browsing classifiers, and you choose which classifiers are created; you can build one for any metadata field or combination of fields.
A common choice is an alphabetical list of titles, or a list grouped by the first letter of the subject. Greenstone offers classifiers such as the simple List and the more compact AZCompactList, which groups entries under expandable headings. By mixing search indexes and browsing classifiers, you give readers two complementary ways to find material: searching when they know what they want, and browsing when they are exploring.
Building and previewing the collection
With documents gathered, metadata enriched, and the design configured, the final stage is the Create panel. After adding documents, providing metadata, and configuring plugins, indexes, and classifiers, you build the collection here, and as it builds, information about which plugin processes each document is displayed. Behind the scenes Greenstone imports the documents, constructs the indexes and classifiers, and then activates the collection so it can be viewed.
Once the build finishes you can preview the result, which opens the collection in the reader interface inside a web browser exactly as an end user would see it. You can run a few searches, click through the browsing lists, and open individual documents to check that titles and metadata appear correctly.
There is one rule that trips up beginners. Any time you change something on the Gather, Enrich, or Design panels, you must rebuild the collection before those changes take effect. Formatting tweaks made in the Format panel show up immediately on preview, but structural changes always need a fresh build. When you are happy with the preview, closing the collection automatically saves it to disk, and the collection is then ready to serve online or distribute on a USB drive or DVD.
What do you think? If you were digitising your own college’s question papers or rare reports, which browsing classifiers would make the collection easiest for students to navigate? And how much effort do you think is worth investing in manual metadata versus relying on what Greenstone extracts automatically?
References
- https://wiki.greenstone.org/doku.php?id=en:beginner:building_collections
- https://asistdl.onlinelibrary.wiley.com/doi/full/10.1002/bult.2008.1720350209
- https://citeseerx.ist.psu.edu/document?doi=234a46f2e6640387a4d41235270be4637c006fd9&repid=rep1&type=pdf
- https://www.greenstone.org/factsheet_es
- https://www.lispower.in/2021/04/green-stone-digital-library-software-note.html
- https://files.greenstone.org/tutorial/gs3-current/en/word_pdf_collection.htm
- https://wiki.greenstone.org/doku.php?id=en:user:plugins
- https://files.greenstone.org/tutorial/gs3-current/en/all_tutorials.html

Leave a Reply