Re: [greenstone-users] how to build collection

From Michael Dewsnip
DateMon, 13 Jun 2005 14:17:42 +1200
Subject Re: [greenstone-users] how to build collection
In-Reply-To (20050610053542-10201-qmail-webmail47-rediffmail-com)

> 1)We tried to build a collection using GreenStone Digital Library
> and we did also by reading your developers guide but we could not
> organise it into sections and subsections.
Are you trying to have sections in your documents, or sections in your
browsing structures (classifiers)?

Sections in documents are created by tagging the source files, as
described in the "tagging document files" section of the Greenstone
Developer's Guide.

If you want to have hierarchical metadata you should assign metadata
values containing the "|" symbol (to separate the levels in the
hierarchy), and use the Hierarchy classifier.

See the Greenstone Demo collection for examples of both these things.

> 2)We also want to make gsdl compatible with .lit formats.according
> to our understanding,for it we only need to make a plugin in perl to
> convert it into .html format and then htmlplugin can be used..Please
> do give us ur views on it..
I have replied to K.T Anuradha regarding this. Here is my response:

I don't know much about the Microsoft '.lit' file format, but from a
quick Google it doesn't seem to be anything special -- just another
binary file format. The most important thing you'll need, therefore, is
a program to convert your .lit files into a plain-text format --
preferably HTML, but text files would be sufficient. You will need to
search the web for a program that will do this (preferably an
open-source program that runs on both Windows and Linux). This program
needs to be runnable from the command-line, and ideally it would also
extract any document metadata included in the e-book: title, author etc.

Once you have found a suitable conversion program you can start writing
your plugin. This should not require a lot of code, and there are plenty
of other similar examples that you can look at (eg. PDFPlug, WordPlug).
You will need to extend bin/script/ to add another case for
your .lit files (which runs the conversion program). Finally, you will
need to create a new plugin in the perllib/plugins directory which
inherits from ConvertToPlug. Copying and modifying WordPlug is probably
the easiest way to get started.