[greenstone-users] PagedImagePlugin navigation buttons and [srclink]

From Diego Spano
DateThu Oct 21 03:51:11 2010
Subject [greenstone-users] PagedImagePlugin navigation buttons and [srclink]
In-Reply-To (4CBEDA92-4070009-comune-belluno-it)
William,

1- Edit the file macros/document.dm. At line 100 you will find all the code
for displaying the goto form. You can add there what you want.

2- srclink is a preformatted tag, so you can□t add taget=_blank unless you
modify the plugin that generates that metadata. But you can replace
[srclink][srcicon][/srclink] with this code:

<a
href=/gsdl/collect/[collection]/index/assoc/[parent(Top):assocfilepat
h]/[Image] target=_blank> Display image </a>"

3- To have only the "document" icon you have to delete the
[link][icon][/link] part of the Vlist format statement that applies to
container icons. Containers are hierarchy nodes represented with
bookshelves. So you can write something like this:

format VList "<td valign="top">{If}{[numleafdocs],
[link][Title][/link]</td>,
[link][icon][/link]</td><td>[link][Title][/link]</td>}"

If the node is a container, then show only a link with node□s name. If the
node is a document, then show the icon and the Title.


Hope this helps.

Diego

Diego Spano
Prodigio Consultores
Bernardo de Irigoyen N□ 1114 2□B
Capital Federal - Argentina
Tel: (54 11) 5093-5313
www.prodigioconsultores.com


-----Mensaje original-----
De: greenstone-users-bounces@list.scms.waikato.ac.nz
[mailto:greenstone-users-bounces@list.scms.waikato.ac.nz] En nombre de
William Mann
Enviado el: Mi□rcoles, 20 de Octubre de 2010 09:04 a.m.
Para: Katherine Don
CC: greenstone-users@list.scms.waikato.ac.nz
Asunto: [greenstone-users] PagedImagePlugin navigation buttons and [srclink]

Hi,

I've almost arrived at the finish line with my first collection! I just have
another couple of questions.

1. I'm trying to personalize the collection without adding too much stuff
myself. And I've basically found all the output and how to format it except
for this piece the table that gets created in the document that shows the
page number, number of pages, goto form, and arrows when using the
PagedImagePlugin. I want to add something to that table but I can't find
where it's being generated.

2. I use the [srclink] tag to show the original image but I'd like for the
image to come up in a new window (target=_blank): is there a way to get just
the href to the image source without the <a> tag so I can construct the link
myself? Or if I modify the ImagePlugin how can I then make Greenstone use
the new version?

3. I've noticed that if I use a hierarchical structure with directories like
so:

<Title>Disegni
<Subject and Keywords>Disegni, dipinti e fotografie|Disegni e quadri|Disegni

I then get a bookshelf icon at 'Disegni, dipinti e fotografie', 'Disegni e
quadri' and 'Disegni' as well as a document icon at 'Disegni'. Is there a
way to have only the document icon when I get to the bottom of the
structure? I'm attaching a sample .item file.

Thanks for all your patience and help you've provided!

--
Rag. William Mann
Comune di Belluno
Servizio Sistemi Informativi
Piazza Castello, 14
32100 Belluno
Tel. 0437-913156
e-mail: wtmann@comune.belluno.it