From | Gregory S. Williamson |
Date | Sun, 17 Aug 2003 14:11:28 -0700 |
Subject | [greenstone-devel] testing metadata values in a format string |
I am tinkering with some ways of showing a banner based on a metadata tag ("Subject") ... if it is "Labor" I want to show one image, if it is "Haight Ashbury" another image, and so on.
I have been able to test for the presence of a metadata element, but not for its content: format DocumentText "{If [Subject] } { <p><img src = "/gsdl/collect/gamssf/images/labor_top2.jpg" border = 0></a>,<p><p> } <p> [Text]" This seems to work for testing for the presence of the metadata tag (as advertised) -- other than a trailing "}" after the image and before the text, which puzzles me. Is there a way to test for the value of a metadata tag in such a format statement ? Thanks! Greg Williamson |