Re: [greenstone-devel] Adding arbitrary binary images

From Michael Dewsnip
DateTue, 16 Sep 2003 16:12:41 +1200
Subject Re: [greenstone-devel] Adding arbitrary binary images
In-Reply-To (20030915215025-GA23429-mercycorps-org)
Hi Doug,

It sounds like you're on the right track. can only assign very limited metadata to files it
processes, because it doesn't know anything about them. This means that
files processed by UnknownPlug won't appear in your classifiers, since
they won't have a value for the metadata element you are classifying on
(they don't even have Title or Source metadata).

However, they do have a very small amount of text added by UnknownPlug:
"Dummy text inserted by UnknownPlug...". This means you can find the TTF
files in your collection by searching for "UnknownPlug" in text.

The solution to these problems is to assign the metadata to these files
yourself, using "metadata.xml" files. By doing this, you can assign
"Title" or "Source" metadata (or whatever), and the files will be included
in the browsing structures. I suggest you have a look at the metadata.xml
file included in the "import" folder of the "demo" collection, to get the
general idea. You also need to add the "-use_metadata_files" option to
RecPlug, in your collect.cfg file.

When you import the files in your collection, you should see a message
from UnknownPlug saying that it has processed each TTF file. After
importing has finished, you can search through the archives directory for
folders containing TTF files, and look at the doc.xml files. These should
include the metadata that you have specified in the metadata.xml file.

If this has worked correctly then you can proceed to build your
collection. The TTF files should now be a part of your browsing
structures. After this, it is just a case of playing around with the
format statements to get the look you are after for displaying these

Hope this helps you get going.



Doug Carter wrote:

> Hi all,
> I'd like to add some arbitrary binary images to a collection, but am
> having some troubles doing so. In this case, I'd like to add a TrueType
> font to a collection. I would like to treat this (and other such files)
> just as an image, which would need no translating. In the collection,
> I would just like some generic looking icon next to a description of
> the file.
> Based on the directions in the file, I've tried using
> it with this line in the collect.cfg:
> plugin UnknownPlug -process_exp "*.ttf" -assoc_field "TTF"
> The fail.log is empty, which I *assume* means it processed it, but
> I can't find it anywhere in the collection.
> Has anyone else done this? Any ideas?
> TIA,
> Doug Carter
> Mercy Corps
> _______________________________________________
> greenstone-devel mailing list