[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] calculated phrase ref
Pretty much exactly like that... Cheers Rory.
I knew there'd be an example, I just couldn't find one for looking!
From: Rory McNicholl [mailto:Rory.McNicholl at london.ac.uk]
Sent: 28 March 2019 14:41
To: Alan.Stiles via Eprints-tech <eprints-tech at ecs.soton.ac.uk>; Alan.Stiles <alan.stiles at open.ac.uk>
Subject: Re: calculated phrase ref
Digital Archives & Research Technologies
CoSector, University of London
t: +44 (0)20 7863 1344
e: rory.mcnicholl at london.ac.uk<mailto:rory.mcnicholl at london.ac.uk>
The University of London is an exempt charity in England and Wales.
From: eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> <eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk>> on behalf of Alan.Stiles via Eprints-tech <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>>
Sent: 28 March 2019 14:36
To: 'eprints-tech at ecs.soton.ac.uk'
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.
-- 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.
-------------- next part --------------
An HTML attachment was scrubbed...