Re: [EP-tech] calculated phrase ref

Rory McNicholl via Eprints-tech <[email protected]>
Newsgroups gmane.comp.web.eprints.devel
Message-ID <EMEW3|35111c5eac7c413779d07c66e97e0bf5v2REfE14eprints-tech-bounces|ecs.soton.ac.uk|LO2P123MB1805D25646F34C259BE9B0E2BB590@LO2P123MB1805.GBRP123.PROD.OUTLOOK.COM>
Like this?

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Flib%2Fdefaultcfg%2Fcitations%2Feprint%2Fsummary_page.xml%23L97&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfdda5d5552c14aae8ef908d6b38b6af5%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=McLaFBRXm9BafVsZi0sEDljVi73nUaqcdKxeKfPYL74%3D&amp;reserved=0

Rory

Rory McNicholl
Lead developer
Digital Archives & Research Technologies
CoSector, University of London
Senate House
Malet Street
London
WC1E 7HU

t: +44 (0)20 7863 1344
e: [email protected]
w: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcosector.com%2Fdigital-research%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfdda5d5552c14aae8ef908d6b38b6af5%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=iZUTsV4VApSfJPn6hwqxDqeH%2FzER9233HBSUHVbu8%2Bc%3D&amp;reserved=0

The University of London is an exempt charity in England and Wales.
________________________________
From: [email protected] <[email protected]> on behalf of Alan.Stiles via Eprints-tech <[email protected]>
Sent: 28 March 2019 14:36
To: '[email protected]'
Subject: [EP-tech] calculated phrase ref


Is it possible (and if so how) to pass a calculated value to the ref parameter of a phrase call in the citation file, so it will include a value as part of the phrase reference?



e.g.    I want to include something like

<epc:phrase ref=”module_$code” />



so it will include phrases based labelled  “module_a1”, “module_xyz4321”



I know I could do an if test on the value for $code and select different phrases that way but I was trying to be clever / lazy and not have to update the citation definition for every new module that I add to a namedset.



TIA,

Alan

-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority in relation to its secondary activity of credit broking.

*** 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.