<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mv="http://macVmlSchemaUri" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Corbel;
        panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Calibri;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Nice!&nbsp; So, how about updating the wiki with your newly acquired expertise?&nbsp; This page could have a section on conditional fieldnames:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Times New Roman&quot;;color:black">&nbsp;<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="border:none;border-top:solid #2C3841 1.0pt;padding:0cm 0cm 3.0pt 0cm">
<p class="MsoNormal"><a href="http://www.jisc.ac.uk/"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;;text-decoration:none"><img border="0" width="60" height="35" id="_x0000_i1026" src="cid:image001.png@01D290DE.D9C48480" alt="isc"></span></a><o:p></o:p></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:7.5pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12.0pt;font-family:Corbel;color:#2C3841">Adam Field</span></b><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;"><br>
</span><span style="font-size:12.0pt;font-family:Corbel;color:#2C3841">SHERPA services analyst developer</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><b><span style="color:black">From:
</span></b><span style="color:black">&lt;eprints-tech-bounces@ecs.soton.ac.uk&gt; on behalf of &quot;Nault, Pierre&quot; &lt;nault.pierre@uqam.ca&gt;<br>
<b>Reply-To: </b>&quot;eprints-tech@ecs.soton.ac.uk&quot; &lt;eprints-tech@ecs.soton.ac.uk&gt;<br>
<b>Date: </b>Friday, 24 February 2017 16:33<br>
<b>To: </b>&quot;'eprints-tech@ecs.soton.ac.uk'&quot; &lt;eprints-tech@ecs.soton.ac.uk&gt;<br>
<b>Subject: </b>Re: [EP-tech] Alternative text in phrase file</span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:&quot;Times New Roman&quot;"><o:p>&nbsp;</o:p></span></p>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">Find it!</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">I thought it was possible to use epc in phrase files because of this
<a href="https://wiki.eprints.org/w/Phrase_Format">https://wiki.eprints.org/w/Phrase_Format</a></span><span style="color:black"> and the namespace
</span><span style="color:#1F497D">:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">“</span><a href="https://wiki.eprints.org/w/EPrints_Control_Format" title="EPrints Control Format">EPrints Control Format</a> elements may be used inside the phrase file - in this example
 a pin is used within the phrase, which is supplied when the phrase is rendered”<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">But Adam give me the idea of:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">In zzzzz.xml:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&lt;epp:phrase id=&quot;eprint_fieldname_official_url.masterthesis&quot;&gt;Document d'accompagnement&lt;/epp:phrase&gt;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&lt;epp:phrase id=&quot;eprint_fieldname_official_url.other&quot;&gt;Adresse URL&lt;/epp:phrase&gt;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">And in summary.xml:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp; &lt;epc:if test=&quot;official_url&quot;&gt;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp; &lt;div style=&quot;margin-bottom: 1em&quot;&gt;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- .20170224.pn -&gt; &lt;epc:phrase ref=&quot;eprint_fieldname_official_url&quot;/&gt;: &lt;epc:print expr=&quot;official_url&quot; /&gt; --&gt;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;epc:choose&gt;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;epc:when test=&quot;type.one_of( 'master','thesis')&quot;&gt;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;epc:phrase ref=&quot;eprint_fieldname_official_url.masterthesis&quot;/&gt;: &lt;epc:print expr=&quot;official_url&quot; /&gt;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;/epc:when&gt;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;epc:otherwise&gt;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;epc:phrase ref=&quot;eprint_fieldname_official_url.other&quot;/&gt;: &lt;epc:print expr=&quot;official_url&quot; /&gt;&nbsp;
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&lt;/epc:otherwise&gt;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/epc:choose&gt;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp; &lt;/div&gt;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp; &lt;/epc:if&gt;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">And it works.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">Thanks a lot,</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">Pierre Nault</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;<o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><b><span lang="FR" style="font-size:10.0pt;font-family:Tahoma">De&nbsp;:</span></b><span lang="FR" style="font-size:10.0pt;font-family:Tahoma"> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
<b>De la part de</b> John Salter<br>
<b>Envoyé&nbsp;:</b> 24 février 2017 09:38</span><span lang="FR" style="font-size:10.0pt;font-family:PMingLiU"><br>
</span><b><span lang="FR" style="font-size:10.0pt;font-family:Tahoma">À&nbsp;:</span></b><span lang="FR" style="font-size:10.0pt;font-family:Tahoma"> eprints-tech@ecs.soton.ac.uk<br>
<b>Objet&nbsp;:</b> Re: [EP-tech] Alternative text in phrase file</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB" style="color:#1F497D">I was just pondering whether this would actually work…</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB" style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB" style="color:#1F497D">&lt;epc: &gt; is a declared namespace in phrase files - but by inspection, this is used for pins, values and other phrases, not the logical tests.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB" style="color:#1F497D">I'm not sure you'd get the eprint passed to the phrase to be able to test anything on it.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB" style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB" style="color:#1F497D">Cheers,</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB" style="color:#1F497D">John</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB" style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB" style="color:#1F497D">PS and I didn't read the stipulation about eprint types - you know what you're doing there it seems! Sorry!</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB" style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><b>From:</b> <a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">
eprints-tech-bounces@ecs.soton.ac.uk</a> [<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>]
<b>On Behalf Of </b>Adam Field<br>
<b>Sent:</b> 24 February 2017 14:26<br>
<b>To:</b> <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
<b>Subject:</b> Re: [EP-tech] Alternative text in phrase file<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">I didn’t know you could use conditionals inside phrases.&nbsp; You can in templates.&nbsp; That might be the way to go.&nbsp; I have a memory of setting up phrases like this:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">&lt;epp:phrase_id=”eprint_fieldname_official_url.masters”&gt;sdfsdf&lt;/epp:phrase&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">and then selecting it with a conditional in the appropriate template.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:&quot;Times New Roman&quot;;color:black">&nbsp;</span><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="margin-left:36.0pt">
<tbody>
<tr>
<td valign="top" style="border:none;border-top:solid #2C3841 1.0pt;padding:0cm 0cm 3.0pt 0cm">
<p class="MsoNormal"><a href="http://www.jisc.ac.uk/"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;;text-decoration:none"><img border="0" width="60" height="35" id="_x0000_i1025" src="cid:image002.png@01D290DE.D9C48480" alt="sc"></span></a><o:p></o:p></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:7.5pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12.0pt;font-family:Corbel;color:#2C3841">Adam Field</span></b><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;"><br>
</span><span style="font-size:12.0pt;font-family:Corbel;color:#2C3841">SHERPA services analyst developer</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;<o:p></o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:72.0pt"><b><span style="color:black">From:
</span></b><span style="color:black">&lt;<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a>&gt; on behalf of John Salter &lt;<a href="mailto:J.Salter@leeds.ac.uk">J.Salter@leeds.ac.uk</a>&gt;<br>
<b>Reply-To: </b>&quot;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&quot; &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
<b>Date: </b>Friday, 24 February 2017 14:04<br>
<b>To: </b>&quot;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&quot; &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
<b>Subject: </b>Re: [EP-tech] Alternative text in phrase file</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="font-family:&quot;Times New Roman&quot;">&nbsp;</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="color:#1F497D">Hi,</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="color:#1F497D">I think you need to have the phrase defined, and the logic inside that:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="color:#1F497D">You're also testing 'type' - which is normally 'article', 'thesis', 'book_chapter'… The field you might want to test it 'thesis_type'?</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="color:#1F497D">[This is untested!]</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="color:#1F497D">&lt;</span>epp:phrase id=&quot;eprint_fieldname_official_url&quot;&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp; &lt;epc:choose&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp; &lt;epc:when test=&quot;thesis_type='master'&quot;&gt;Adresse master&lt;/epc:when&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&lt;epc:when test=&quot;thesis_type='thesis'&quot;&gt;Adresse these&lt;/epc:when&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&lt;epc:otherwise&gt;Adresse URL&lt;/epc:otherwise&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&lt;/epc:choose&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&lt;/epp:phrase&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="color:#1F497D">Cheers,</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="color:#1F497D">John</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:72.0pt"><b>From:</b> <a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">
eprints-tech-bounces@ecs.soton.ac.uk</a> [<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>]
<b>On Behalf Of </b>Nault, Pierre<br>
<b>Sent:</b> 24 February 2017 13:52<br>
<b>To:</b> 'eprints-tech@ecs.soton.ac.uk' &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
<b>Subject:</b> [EP-tech] Alternative text in phrase file<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">Hi,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; We want to display a different label in the eprint rendering page for the field &lt;epp:phrase id=&quot;eprint_fieldname_official_url&quot;&gt;Adresse URL&lt;/epp:phrase&gt; if the eprint type is ‘master’ or ‘thesis’.
 In zzzzz.xml we have tried with &nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;epc:choose&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;epc:when test=&quot;type='master'&quot;&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;epp:phrase id=&quot;eprint_fieldname_official_url&quot;&gt;Adresse master&lt;/epp:phrase&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/epc:when&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;epc:when test=&quot;type='thesis'&quot;&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;epp:phrase id=&quot;eprint_fieldname_official_url&quot;&gt;Adresse these&lt;/epp:phrase&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/epc:when&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;epc:otherwise&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;epp:phrase id=&quot;eprint_fieldname_official_url&quot;&gt;Adresse URL&lt;/epp:phrase&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/epc:otherwise&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/epc:choose&gt;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">But this is not working. Any idea why ?<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">Regards,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">Pierre<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">----------------------------------------<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">Pierre Nault<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">Bibliothécaire systèmes - Direction du développement technologique<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">Service des bibliothèques<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">Université du Québec à Montréal<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">Tél&nbsp;: 514-987-3000 #4554<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:72.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:7.5pt;font-family:Corbel"><br>
Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.</span><span style="font-size:7.5pt;font-family:PMingLiU"><br>
<br>
</span><span style="font-size:7.5pt;font-family:Corbel">Jisc Services Limited is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under company number 2881024, VAT number GB 197 0632 86. The registered office
 is: One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800. </span><o:p></o:p></p>
</div>
</body>
</html>