Re: [greenstone-users] customization question

From Katherine Don
DateFri, 03 Dec 2004 13:48:07 +1300
Subject Re: [greenstone-users] customization question
In-Reply-To (E1CZCuH-0001Ok-0w-deltadallas-glypto-com)
Hi Jon

I'm not sure how you managed to get the clean print version, but it
looks good.

Presumably you are modifying macros so they are empty when v=1? Or that
kind of thing.

You could try only displaying the TOC if v=0, in your format statement:

format DocumentHeading "<center>
<table border=0 width=537>
<tr valign=top>
<td>[DocTOC]</td>
<td><img src='[DocImage]'></td>
</tr>
<tr><td colspan=2>[DocumentButtonDetach]
</td></tr>
</table>
</center>"

perhaps try something like

format DocumentHeading "

<center>
<table border=0 width=537>
<tr valign=top>
<td>[DocTOC]</td>
<td><img src=[DocImage]></td>
</tr>
<tr><td colspan=2>[DocumentButtonDetach]
</td></tr>
</table>
</center>)"

and maybe the heading will only be displayed for v=0 pages.
I haven't tried this myself, so don't know if it will work or not.

Cheers,
Katherine Don


Jon Legree wrote:
> Hello,
>
> I've been working on a customized collection -
>
> http://www.yorbalindahistory.org/cgi-bin/library?
> site=localhost&a=p&p=about&c=ylih&ct=0&l=en&w=utf-8
>
> I'm trying to use the "detach" function to create a "printer friendly"
> version of the documents in the collection. Is there a way to format
> the document in text-only version so that the list of sections or
> chapters does not display, but rather just the text of each section or
> chapter displays?
>
> For example, on the page below:
>
> http://www.yorbalindahistory.org/cgi-bin/library?e=d-000-00---0ylih--00-
> 0-0-0prompt-10---4------0-1l--1-en-50---20-about---00031-001-1-0utfZz-8-
> 00&a=d&c=ylih&cl=CL1&d=HASH010c5e70487ace4f70c78a83.4
>
> clicking on the "print this page" [detach] button opens the text-only
> version of the page, but the list of chapters and the cover image are
> still visible. I've removed the hyperlinks from the chapters, but is it
> possible to remove the chapter names and cover image entirely, and just
> display the text of the current chapter or section?
>
> Any help would be greatly appreciated
>
> Jon.
>
>