[greenstone-devel] {If} in format statements

From Stephen.DeGabrielle@ntu.edu.au
DateFri, 9 May 2003 14:12:15 +0930
Subject [greenstone-devel] {If} in format statements
Hi,
I have been trying to work out how to use the {If} statement in my
collect.cfg file;

format DocumentText "<center><table width=537><tr><td align=left><br/>{If}
{[rights] eq A,IP RIGHTS STATEMENT 'A',IP RIGHTS STATEMENT 'B'}
</td></tr></table></center>"

I am trying to do a comparison but for some reason cannot get it to return
anything but IP RIGHTS STATEMENT 'A' Is someone able to provide some advice
on using the {If} statement with 'eq', 'ne' and other operators on metadata
fields? (My [rights] metadata for each record is either A or B)

Another situation is to have both A and B in my [rights] metadata field;
Has anyone solved this problem?

Regards,

Stephen De Gabrielle
7009