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)
Hi,
tips below

On 12/15/05, Yachnes, Paul <paul.yachnes@naa.org> 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
{If}{[numleafdocs],trueresult,optionalfalseresutl}

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

format CL1VList '<td valign=top>[link][icon][/link]</td><td>
{If}{[numleafdocs], <b>[Title]</b>,<b>[Subject]</b><br>From: <a
href="/gsdlmod?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-preferences-Brad+Rhoads--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=q&q=[cgisafe:FromName]&h=dfr">[FromName]</a>&lt;<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.

Regards,

Stephen De Gabrielle