Re: [greenstone-users] Publisher metadata

From Katherine Don
DateThu, 21 Aug 2003 09:07:03 +1200
Subject Re: [greenstone-users] Publisher metadata
hi Diego

You need to alter your format statement a bit to get links for the publishers. In your other classifiers, all the items in the VLists were documents, but in a Hierarchy classifier, you get classification nodes in the VLists. These dont have srclink or srcicon metadata so you need to use link and icon. one way to test for classifier nodes is with the numleafdocs metadata.

so you need something like

format CL3VList  "{If}{[numleafdocs],<td valign=top>[link][icon][/link]</td><td>[Title]</td>,  stuff for document node }"

the first bit is for the classification nodes, then the second bit ("stuff for doc nodes" ) is where you put the stuff you have at the moment.
whatever metadata you have built the classifier on, it gets put into a classifier node as the Title, so you generally want to display Title for any classifier nodes.

I'm not sure if you can have nested If statements or not - you'll need to experiment.

hope this helps,
Katherine Don

Diego Spano wrote:

 Hi list, I have a collection and I want to show documents by Date, Titles and Publisher. The collect cfg lines are:*********************************************************************************classify      List -metadata Title
classify      DateList -bymonth
classify      Hierarchy -hfile publishers.txt -metadata Publisher  -sort Publisher -buttonname Publisher
 format SearchVList
  "<td valign=top>[srclink][srcicon][/srclink]</td><td>{If}{[parent(All': '):Title],[parent(All': '):Title]:}[srclink][Title][/srclink] - ([Date])</td>"
format VList
  "<td valign=top>[srclink][srcicon][/srclink]</td><td valign=top>[highlight]{Or}{[Title],Untitled}[/highlight]<i><small>{If}{[Date],<br>publication date: [Date]}{If}{[NumPages],<br>no. of pages: [NumPages],<br>[Publisher]}</small></i></td>"
format CL3VList
  "<td colspan=3><hr></td></tr><tr><td valign=top>[srclink][srcicon][/srclink]</td><td valign=top>[highlight]{Or}{[Title],Untitled}[/highlight]<i><small>{If}{[Date],<br>publication date: [Date]}{If}{[NumPages],<br>no. of pages: [NumPages],<br>[Publisher]}</small></i></td>"
 format CL2DateList "<td valign=top>[srclink][srcicon][/srclink]</td><td>[Title] - ([Date] / [Publisher])] </td>"
*********************************************************************************There is no problem with the first 2 classifiers, I mean, I get want I want, but with publishers there is something that I don´t know. if I use the option  -hlist_at_top I get what you can see in file publisher1.jpg: links by publishers. I want to get the list in vertical format (like Subject) so I remove the -hlist_at_top option, and what I get is picture publisher2.jpg: no publishers links but only a list. What is wrong?I´m using Greenstose 2.40a with Win2000.Thanks a lot for any help.Lic. Diego Spano
Archivo Digital
Secretaría de Derechos Humanos 

_______________________________________________ greenstone-users mailing list