Re: [greenstone-users] Assigning icon

From Katherine Don
DateWed, 30 Mar 2005 09:30:55 +1200
Subject Re: [greenstone-users] Assigning icon
In-Reply-To (ISP-GOtDM4KvYDJ8UUX000e6d92-isp-go-FPT-NET)
Hi

What version of Greenstone are you using? This used to work, but it has
been changed slightly. Instead of each plugin assigning [pluginname]
metadata like [UnknownPlug], now they assign [Plugin] metadata, with the
value the plugin name.

You could try using {If}{"[Plugin]" eq "UnknownPlug", <img
src='/gsdl/web/images/djvu.gif'>, [icon]}

There is a -file_format option to UnknownPlug to specify the format of
the files it processes. This gets set as FileFormat metadata. You could
test on different values of this metadata if you are using multiple
UnknownPlugs to process lots of file types.

Regards,
Katherine Don

Tran wrote:
> Hi,
> 1. I've done some search in the archive and found a suggestion that by
> adding an {If} statement around the [icon] element and testing on the
> presence of UnknownPlug metadata I could assign new icon to UnknownPlug.
>
> In my case the format statement would be:
> format VList "<td valign=top>[link]{If}{[UnknownPlug], <img
> src='/gsdl/web/images/djvu.gif'>, [icon]}[/link]</td><td valign=top>[Title]</td>"
>
> I put a file djvu.gif in gsdlimages as suggested but it does not work.
>
> 2. In case of multiple UnknownPlug, how can I assign different icons to
> different kind of documents?
>
> Best regards,
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.8.3 - Release Date: 3/25/2005
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users