Re: [greenstone-users] Linking to pdfs only

From Stephen DeGabrielle
DateThu, 15 Dec 2005 11:52:18 +0930
Subject Re: [greenstone-users] Linking to pdfs only
In-Reply-To (EBE580F8EEAB9049BE5F982422C84610C486E2-dpes-mail-naa-org)
tips below

On 12/15/05, Yachnes, Paul <> wrote:
> In a collection of pdfs, where I do not have text versions, I am having
> two problems:
> 1) I want to remove all icons linking to text versions, which is
> easy enough, except in a Hierarchy classifier, where removing those
> icons also removes the icons that open and close the hierarchies. How
> can I fix that?

You have to check if you are at a 'LEAFNODE' in your format statement using the

I got this from the 'Inside greenstone collections' manual in the

format CL1VList '<td valign=top>[link][icon][/link]</td><td>
{If}{[numleafdocs], <b>[Title]</b>,<b>[Subject]</b><br>From: <a
href="mailto:[FromAddr]">[FromAddr]</a>&gt;<br>Date: [DateText]}</td>'
(I actually found it in google and chose view as html)

> 2) The document links in the Phind classifier link to the
> nonexistent text versions. How can I make them link to the pdf versions?

You could change the 'format DocumentText' to refer to the PDF using a
{If} directive like above.


Stephen De Gabrielle