EPrints Technical Mailing List Archive

Message: #07986


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[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