[EP-tech] Building citations based on condition with Regular Expression
Stefan Wellsandt via Eprints-tech <[email protected]>
| Newsgroups | gmane.comp.web.eprints.devel |
|---|---|
| Message-ID | <EMEW3|be7a5797033fb83ac9c25fba498c8a84v91ERW14eprints-tech-bounces|ecs.soton.ac.uk|9CA7ADA411111D49BC9BB73F594622BC13E500FA@EXCH1.biba.uni-bremen.de> |
Hello,
I want to use a regular expression to assemble a part in a citation. This script (see below) throws me an error - I assume the EprintsScript does not know RegExp.
<when test="type.one_of('conference_item','editor_conference_proceeding')">
In: Proceedings of the
<choose>
<when test="event_title =~ \International\">
<if test="event_title"><print expr="event_title"/></if>
</when>
<otherwise>
<if test="event_type"><print expr="event_type"/></if> on <if test="event_title"><print expr="event_title"/></if>
</otherwise>
</choose>
</when>
What is the easiest way to fix this problem?
Best regards
Stefan
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/