Re: [greenstone-users] Formatting CL1VLIST

From John Rowe
DateTue, 15 May 2007 09:14:14 +1200
Subject Re: [greenstone-users] Formatting CL1VLIST
In-Reply-To (80d867880705140658y59dbced5g32e3e41ca51eba05-mail-gmail-com)
Hey Tomas,

If it's in the format statements (within the collect.cfg), it should
look something like this:

{If}{[MEATDATA1],[METADATA1],[METADATA2]}

Or, an alternative syntax allows you to check whether or not a piece
of metadata is equal to a string. For example this checks if
METADATA1 is equal to the text "Hello" and outputs METADATA2 if that
is the case, otherwise METADATA1:

{If}{[MEATDATA1] eq Hello,[METADATA2],[METADATA1]}


Cheers,
John Rowe

DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact@dlconsulting.com
www.dlconsulting.com


On 15/05/2007, at 1:58 AM, Tomas Fiala wrote:

> Hello,
>
> please can anyone help me with formatting my CL1VLIST ?
>
> I want to do following :
>
>
> IF {[METADATA1], has some text display [METADATA1], IF NOT,
> DISPLAY {[METADATA2], IF IT has some text </i>[METADATA2]}<
>
> Many thanks to all of you !
>
> Sincerely,
>
> Tomas Fiala
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users