Re: DateList and source files

From Stefan Boddie
DateMon, 20 May 2002 14:12:50 +1200
Subject Re: DateList and source files
In-Reply-To (20020518103727-A27500-whau-cs-waikato-ac-nz)

One more thing to note about this DateList/VList stuff is that DateLists
and VLists are not the same thing. This is why your DateList classifier
doesn't show a link to the PDF file while other classifiers do (because
the default formatstring for a DateList is different to that for a

So, to configure your DateList classifier from within the collect.cfg
file you should add a format line something like the following:

format CL1DateList

That is, use "CLnDateList", not "CLnVList".


"John R. McPherson" wrote:
> 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>\etc\collect.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