Re: [greenstone-users] Formating DOCUMENTTEXT

From Qiu
DateTue, 17 Jul 2007 09:34:54 +1200
Subject Re: [greenstone-users] Formating DOCUMENTTEXT
In-Reply-To (469B7285-2040105-ulib-sk)
Hi Tomas

You can try this:
{If}{[dc.NOTES-3], [dc.NOTES-3], {If}{[dc.NOTES-2], [dc.NOTES-2],
{If}{[dc.NOTES-1], [dc.NOTES-1]}}}

More information regarding conditional expressions in formatstrings can
be found at
http://wiki.greenstone.org/wiki/index.php/How_to_format_the_output of your_collection

Regards
Quan

Tom□□ Fiala wrote:

> Hi all,
>
> i got some problems with formating DOCUMENTTEXT could be anyone so
> kind and help me please ?
>
> I have text in 7 different metadata fields (like dc.NOTES-3, dc.
> NOTES-2) - i want to display the text NOTES if any of the 7 fields
> contain text.
>
> I want to display :
>
> IF dc.NOTES-3 OR dc.NOTES-2 OR dc.NOTES-1 has some text display text
> NOTES.
>
> Many thanks for any answer !!!
>
> Sincerely,
>
> Tomas Fiala
>
>------------------------------------------------------------------------
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>