[EP-tech] calculated phrase ref

Alan.Stiles alan.stiles at open.ac.uk
Thu Mar 28 14:43:21 GMT 2019


Pretty much exactly like that...  Cheers Rory.

I knew there'd be an example, I just couldn't find one for looking!
Thanks,
Alan

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

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%7Ce3c7c074506543b398d508d6b38bbacd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=WiRDLUjirZ%2Fg%2Btpw3zgJqIDQ0OYYO2tbWcNphrQRni4%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: rory.mcnicholl at london.ac.uk<mailto:rory.mcnicholl at london.ac.uk>
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%7Ce3c7c074506543b398d508d6b38bbacd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=l73U0vosjZv9Q5eVNknnicr6nTkd44vuiOSlJvKG26I%3D&amp;reserved=0

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.



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


More information about the Eprints-tech mailing list
http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/2019-March/007756.html
mailman.ecs.soton.ac.uk
crawl=CC-MAIN-2022-21
7019
application/http; msgtype=response
sha1:GD5NRI3WTGFFAVAXQNHTE2RGZ3WCYHIQ
<urn:uuid:d482e54d-69e4-4c53-bb65-b11b04ecb5fb>
2022-05-22T23:07:26Z
152.78.68.130
text/html
sha1:XPQXVA266GZDELKA2RHSSJRTTVIEOMON
<urn:uuid:1509caed-f535-4f87-b3a0-7964bbb99d3e>
http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/2019-March/007756.html
response
<urn:uuid:037dc7be-e28b-4e8c-a0b7-0d315e016451>
isPartOf: CC-MAIN-2022-21
publisher: Common Crawl
description: Wide crawl of the web for May 2022
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-189
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.3-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/