Re: Create a new plugin

From Gordon Paynter
DateMon, 10 Mar 2003 15:00:54 -0800 (PST)
Subject Re: Create a new plugin
In-Reply-To (3E67FA8C-DCB3E1BA-tait-co-nz)
> I would like to create a new plugin that will handle any document type
> by simply create an empty content. I can add searchable data in the
> metadata.xml at a later stage. The aim is to be able to create a
> collection even if there are some bad word documents which the word
> plugin can not handle.
>
> Has anyone done something similar, or can point me to some instructions
> on how to create this empty plugin?

Take a look at "UnknownPlug" which should in any of the last few releases.
This plugin can be set up to handle any kind of document that is stored in
a file without trying to understand the file. A blank document is created
in Greensatone, and the unknown file is added to it as an "associated
file".

Here's an example from a collect.cfg file:

plugin UnknownPlug -process_exp '.MOV' -assoc_field 'movie'


HTH,
Gordon