EPScript/Examples

From EPrints Documentation
Revision as of 08:40, 3 September 2007 by WikiSysop (talk | contribs) (Reverted edit of JvgZ7x, changed back to last version by WikiSysop)
Jump to: navigation, search
EPScript

Examples

Pluralising the editors of a book:


<if test="type = 'book' and is_set(editors)">
  <print expr="editors" />, (ed<if test="length(editors) gt 1">s</if>
</if>