[greenstone-users] complicated format statement

From Diego Spano
DateWed Jun 24 02:06:49 2009
Subject [greenstone-users] complicated format statement
In-Reply-To (4A40D95E-5040007-sdb-org)
Julian,

The format statement you wrote has a mistake, because [ex.ImageWidth],
[ex.ImageHeight] and [ex.FileSize] will display for every node of the
hierarchy(i.e. the node titles).

Try something like this:

"<td valign=middle>{If}{[numleafdocs],[link][Title][/link]</td><td
valign=middle><i>([numleafdocs])</i></td>,
<td valign=top>[srclink]{Or}{[thumbicon],[srcicon]}[/srclink]</td>
<td valign=top>{Or}{[dc.Title],[exp.Title]}
<br>Width: [ex.ImageWidth]
<br>Height: [ex.ImageHeight]
<br>FileSize: [ex.FileSize]</td>}

Tell me the results!!!!

Diego Spano

-----Mensaje original-----
De: greenstone-users-bounces@list.scms.waikato.ac.nz
[mailto:greenstone-users-bounces@list.scms.waikato.ac.nz] En nombre de
Julian Fox
Enviado el: Martes, 23 de Junio de 2009 10:32 a.m.
Para: greenstone-users@list.scms.waikato.ac.nz
Asunto: [greenstone-users] complicated format statement

His list,
Given that format statements beyond the plain-vanilla type can get a
little complicated unless you have a really fine grasp of conditionals
and other statements (which I don't have), I am wondering if someone
could tell me if it is possible how to resolve the following:
- I have an all-image collection (several thousand images) which, other
than manually added title, subject metadata, also draws on the extracted
filesize, width and height metadata.
- what I would like to do is to only have that size/height/width
information visible for the display that includes the thumbnail of the
image. Instead I get the three terms (Filesize: Width: Height:) at
every level. At the final and important level of display they contain
the info required. I'd like to avoid their appearing at the higher
levels. I realise that my format statement is way too simple - it gives
me an end result but it's messy.

The current format statement (at least the part of it that affects the
'Title' vlist, which, by the way is a Hierarchy classifier) is as follows:

<td valign="top">[link][icon][/link]</td>
<td valign="top">[srclink]{Or}{[thumbicon],[srcicon]}[/srclink]</td>
{If}{[numleafdocs],<td><i>([numleafdocs])</i></td>}
<td valign="top">[highlight]
{Or}{[dc.Title],[exp.Title],[ex.Title],Untitled }[/highlight]</td>
<td>Width: [ex.ImageWidth]<br>Height: [ex.ImageHeight]<br>FileSize:
[ex.FileSize]</td>

As you can see from the last line - it will give me what I want at the
point at which the thumbnail displays. But could I prevent it from
affecting the first display when people click on 'Title' to see what
titles they want? Or alternatively, could I get the extratced
information to actually appear at that point instead? Or as well?
Julian

_______________________________________________
greenstone-users mailing list
greenstone-users@list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users