[greenstone-users] complicated format statement

From Belanger, Arthur
DateWed Jun 24 02:01:31 2009
Subject [greenstone-users] complicated format statement
In-Reply-To (4A40D95E-5040007-sdb-org)
Julian,

It looks like you are almost there.

I have not used hierarchy classifiers but I do use azlist classifiers. I do have different displays for top level items than for the final documents. I do a test on the existence of [numleafdocs] as follows:

{If}{[numleafdocs],
Display for the upper level nodes,
Display for the bottom node}

I believe all the upper level nodes have [numleafdocs] defined and the bottom node does not. This strategy works for me. Let me know if it works for the hierarchy classifier.
--
Arthur Belanger
Medical Library System Manager
ITS Academic Media & Technology
Yale University
PO Box 208065
New Haven, CT 06520-8065

(203) 785-6928
(203) 737-2859, fax

mailto:Arthur.Belanger@Yale.Edu
http://www.yale.edu/its/about/amt
http://info.med.yale.edu/library


NOTE: Yale ITS will NEVER request passwords or other personal information via email. Messages requesting such information are fraudulent and should be deleted.

-----Original Message-----
From: greenstone-users-bounces@list.scms.waikato.ac.nz [mailto:greenstone-users-bounces@list.scms.waikato.ac.nz] On Behalf Of Julian Fox
Sent: Tuesday, June 23, 2009 9:32 AM
To: greenstone-users@list.scms.waikato.ac.nz
Subject: [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