Re: [greenstone-users] Format Statement Questions

From John R. McPherson
DateWed, 08 Jun 2005 09:55:14 +1200
Subject Re: [greenstone-users] Format Statement Questions
In-Reply-To (13e-14cdf1d8-2fd763ac-aol-com)
On Tue, 2005-06-07 at 16:55 -0400, wrote:
> Hello Greenstoners!
> For both my Subject page and my Authors A-Z page, if there are multiple
> examples of a particular subject/author, it creates a book shelf icon. This is
> fine, except beside it there is NO INFORMATION, it merely blank. What should I
> add to my format statements to tell Greenstone to put the Subject or Author
> beside the bookshelf, so people will know what's in there? (Feel free to just
> edit the below statements into correct ones)

Bookshelves get a new "node" in the hierarchy/list, and this node gets
assigned "Title" metadata of the field that is being grouped by, and
several other fields such as "numleafdocs" that says how many sub-nodes
it contains.

You can format a classifier with something like:

format CL1VList "<td>[link][icon][link]</td>
<td>{If}{[numleafdocs], [Title] ([numleafdocs]),

In case this isn't obvious, any node that has non-empty "numleafdocs"
metadata will have the node's title and number of nodes printed out,
otherwise (for a "normal" node) only the "Author" metadata will be
printed. For your example, you probably want dc.Creator instead of