[EP-tech] Alternative text in phrase file

John Salter J.Salter at leeds.ac.uk
Fri Feb 24 14:04:09 GMT 2017

I think you need to have the phrase defined, and the logic inside that:
You're also testing 'type' - which is normally 'article', 'thesis', 'book_chapter'... The field you might want to test it 'thesis_type'?

[This is untested!]
<epp:phrase id="eprint_fieldname_official_url">
    <epc:when test="thesis_type='master'">Adresse master</epc:when>
    <epc:when test="thesis_type='thesis'">Adresse these</epc:when>
    <epc:otherwise>Adresse URL</epc:otherwise>


From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Nault, Pierre
Sent: 24 February 2017 13:52
To: 'eprints-tech at ecs.soton.ac.uk' <eprints-tech at ecs.soton.ac.uk>
Subject: [EP-tech] Alternative text in phrase file


                We want to display a different label in the eprint rendering page for the field <epp:phrase id="eprint_fieldname_official_url">Adresse URL</epp:phrase> if the eprint type is 'master' or 'thesis'. In zzzzz.xml we have tried with

                               <epc:when test="type='master'">
                                               <epp:phrase id="eprint_fieldname_official_url">Adresse master</epp:phrase>
                               <epc:when test="type='thesis'">
                                               <epp:phrase id="eprint_fieldname_official_url">Adresse these</epp:phrase>
                                               <epp:phrase id="eprint_fieldname_official_url">Adresse URL</epp:phrase>

But this is not working. Any idea why ?



Pierre Nault
Bibliothécaire systèmes - Direction du développement technologique
Service des bibliothèques
Université du Québec à Montréal
Tél : 514-987-3000 #4554

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170224/c09bf346/attachment-0001.html 

More information about the Eprints-tech mailing list