EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
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
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Building citations based on condition with Regular Expression
- From: Stefan Wellsandt <wel@biba.uni-bremen.de>
- Date: Wed, 2 Oct 2019 13:27:18 +0000
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 |
- Follow-Ups:
- [EP-tech] Building citations based on condition with Regular Expression
- From: Stefan Wellsandt <wel@biba.uni-bremen.de>
- [EP-tech] Building citations based on condition with Regular Expression
- References:
- [EP-tech] Building citations based on condition with Regular Expression
- From: Stefan Wellsandt <wel@biba.uni-bremen.de>
- [EP-tech] Building citations based on condition with Regular Expression
- Prev by Date: Re: [EP-tech] Eprints not working after migration to a new server
- Next by Date: Re: [EP-tech] Building citations based on condition with Regular Expression
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):