Re: [greenstone-users] copying metadata / internal nodes

From Tod Olson
DateMon, 20 Jun 2005 09:26:43 -0500
Subject Re: [greenstone-users] copying metadata / internal nodes
In-Reply-To (200506190020-j5J0KwjF009239-dbmail-mx1-orcon-net-nz)
>>>>> "DM" == Daniel Mulholland <> writes:

DM> (2) Most of my documents will be in either html or pdf format. For
DM> the Titles of the documents, I have an AZList classifier with the
DM> following in its format string (CL1VList):

DM> <td valign=top>[link]{If}{[ex.FileFormat] eq "HTML",[icon]}[/link]
DM> [ex.srclink]{If}{[ex.FileFormat] eq "PDF",[ex.srcicon]}[/ex.srclink] </td>
DM> [...] This works fine for the Title, but I have other classifiers
DM> where this style of formatting stops them from functioning.

DM> For example, I have a hierarchy classifier [...] When I replace
DM> the existing linking and icon information from:

DM> <td valign=top>[link][icon][/link]</td>
DM> <td
DM> valign=top>[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>

DM> to the above and look at the collection, I find I only get the top
DM> layer title (Magazine) without any icons leading to lower
DM> layers. I suspect my formatting statement is interfering with
DM> internal nodes, but I'm unsure how to proceed. I think what I want
DM> is a way so that my format statements don't apply to internal
DM> nodes, but I don't know how to specify this.

Test on [numleafdocs] to see check whether an internal node is being
processed. From the collect.cfg for Chopin Early Editions,

format CL2VList "<td valign=top>[link][icon][/link]</td>
<td valign=top>
[link][Title][/link]&#44; ([numleafdocs] scores),
&nbsp;&nbsp;[Place] [Publisher] [DateText]}

(Formatted for ease of reading.) You can see the results in the
"uniform title" browse list at the above URL.

Tod A. Olson <> "How do you know I'm mad?" said Alice.
Sr. Programmer / Analyst "If you weren't mad, you wouldn't have
The University of Chicago Library come here," said the Cat.