Re: DateList and source files

From John R. McPherson
DateSat, 18 May 2002 10:37:27 +1200
Subject Re: DateList and source files
In-Reply-To (Pine-LNX-4-33-0205172117140-23013-100000-lisi-insa-lyon-fr)
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 ?

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.

John McPherson