[greenstone-users] complicated format statement

From Julian Fox
DateWed Jun 24 03:09:52 2009
Subject [greenstone-users] complicated format statement
In-Reply-To (003801c9f40c$316494f0$942dbed0$-gov-ar)
Hi Diego,
I had a minor error at first in transcription of your suggestion below
(I am working via vpn and at first didn't have a chance to simply cut
and paste yours), but when I got the transcription right, I can see that
it produces close enough to what I have been looking for. It has also
given me enough leg-up to fiddle around with the statement slightly if I
need to. I've got the idea. Muchisimas gracias!

Diego Spano wrote:
> 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