[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Building citations based on condition with Regular Expression



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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20191002/3f991000/attachment.html