Thumbnails instead of icons?

From Paul Mundy
DateSat, 18 May 2002 23:32:21 +0700
Subject Thumbnails instead of icons?
In-Reply-To (20020518103727-A27500-whau-cs-waikato-ac-nz)
Greetings from Indonesia.
Is it possible to tweak Greenstone somehow so it displays an image thumbnail
instead of an icon in the list of found documents?
This would be useful for collections of images: each image could be stored
in its own HTML document, and the user could preview thumbnails, then click
on the one s/he wanted to open the full image.
Thanks and best wishes
Paul

Paul Mundy
development communication specialist
paul@mamud.com
www.mamud.com

Temporary email in Indonesia (to 7 June 2002): pmundy@indo.net.id
mobile 0818-168332

DevArt: copyright-free artwork for development
http://www.developmentart.com
----- Original Message -----
From: "John R. McPherson" <jrm21@cs.waikato.ac.nz>
To: "Aurelien Benel" <Aurelien.Benel@lisi.insa-lyon.fr>
Cc: <greenstone@TRIPATH.colosys.net>
Sent: Saturday, May 18, 2002 5:37 AM
Subject: Re: DateList and source files


On Fri, May 17, 2002 at 09:41:43PM +0200, Aurelien Benel wrote:
> Hello,
>
> I am trying to set a Greenstone server to deliver a PDF collection.
> It works fine, but I would like to hide full-text (bit ugly) and show
> only source files (PDF).
>
> 1. DateList doesn't show any link to the PDF source file (contrary to
> other classifiers).
>
> 2. Every classifier (search results also) shows a link to the full-text.
>
> What should I change (in the Perl code?) in order to show PDF in
> DateList and hide full-text in classifiers and search results ?

Hi,
this can be changed (at run-time) by modifying the "format strings"
in the collection's configuration file.
in %GSDLHOME%collect<colname>etccollect.cfg , you can add
a format string for each classifier as well as the search results.
If no format string is defined, greenstone defaults to having
a link to both the indexed text and the original document (if
it's pdf/ps/word/xls etc format).

Add a line (or modify if it exists):
format SearchVList "<td>[srclink][srcicon][/srclink]</td>
<td>[Title]</td>"

(all one line). This basically says that the vertical list
displayed for search results consists of table rows with the
pdf icon and the title only. You can put almost any html
or greenstone metadata (using '[' and ']') in these, so
experiment to find something you like!

For the classifiers, the naming is a bit ugly but it works
in exactly the same way.

format CL1VList "<td> blah blah blah </td>"
to match the first classifier, CL2VList for the second, etc.

If you use the windows server, you will need to restart it
after modifying the config file as the server.

John McPherson