|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
development communication specialist
Temporary email in Indonesia (to 7 June 2002): firstname.lastname@example.org
DevArt: copyright-free artwork for development
----- Original Message -----
From: "John R. McPherson" <email@example.com>
To: "Aurelien Benel" <Aurelien.Benel@lisi.insa-lyon.fr>
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:
> 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 ?
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>
(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.