RE: [greenstone-users] Showing metadata multiple values

From Jonathan Tremblay
DateTue, 3 May 2005 10:07:29 -0400
Subject RE: [greenstone-users] Showing metadata multiple values
In-Reply-To (002b01c54fe5$17ed4d20$ccaffea9-IOTRemote2)
Thanks Katherine and Nathan,

Your answers about the use of the sibling modifier is (in some case) perfect
for what I want to do.

But is there any way I can check if there is a second entry (I want to
modify the formatting, but I don't want to show the second entry)?

I'd like to do something like:
{If}{[dc.Publisher],[dc.Publisher]}
{If}{[sibling(2):dc.Publisher], et all.}

The result would be:
My title,
My First Publisher, et all.

If there's no simple answer I'll live without it...

Thanks,
Jonathan Tremblay

-----Message d'origine-----
De : Nathan Einwechter [mailto:nathan@ontologystream.com]
Envoyé : 3 mai 2005 09:36
À : 'Jonathan Tremblay'; greenstone-users@list.scms.waikato.ac.nz
Objet : RE: [greenstone-users] Showing metadata multiple values

Not sure the exact context, but you could potentially use;

[sibling:dc.Publisher-2]

or

[sibling(All:'<br>'):dc.Publisher-2]

Where <br> is your html tag to separate each value. The first example
will separate each value by a comma.

-- Nathan

-----Message d'origine-----
De : Katherine Don [mailto:kjdon@cs.waikato.ac.nz]
Envoyé : 3 mai 2005 00:31
À : Jonathan Tremblay
Cc : greenstone-users@list.scms.waikato.ac.nz
Objet : Re: [greenstone-users] Showing metadata multiple values

Hi Jonathan

Try using the sibling modifier eg
[sibling:Title]
this displays all Title metadata for the current section.

see
http://www.greenstone.org/cgi-bin/library?e=p-en-faq-utfZz-8&a=p&p=faqcustom
ize#customizeformat
for more details about available format options.

Regards,
Katherine

-----Original Message-----
From: greenstone-users-bounces@list.scms.waikato.ac.nz
[mailto:greenstone-users-bounces@list.scms.waikato.ac.nz] On Behalf Of
Jonathan Tremblay
Sent: Tuesday, May 03, 2005 12:19 AM
To: greenstone-users@list.scms.waikato.ac.nz
Subject: [greenstone-users] Showing metadata multiple values

Hi,

I'm now using en to format my VList. It works perfectly!

Now, I would like to know if it's possible to show multiple values for a
metadata element.

For example, if a title has two publishers, can I show both of them?

Someting like: {If}{[dc.Publisher-2],[dc.Publisher-2]}}

Thanks,
Jonathan Tremblay

_______________________________________________
greenstone-users mailing list
greenstone-users@list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users