<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I would suggest using an automatic field when you want to render it differently in a different context. That's what I've done in the past. Create a creators_nolink field, and have it render the value in creators without the links. There's even a training video about it 8-><div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>--<br>Adam Field<br>Business Relationship Manager and Community Lead<br>EPrints Services</div><div><br></div><div>I am currently not working in the UK. Due to timezone differences (GMT -9) email responses may take longer.</div></div>
</div>
<br><div><div>On 13 Jul 2015, at 17:31, Alan.Stiles <<a href="mailto:alan.stiles@open.ac.uk">alan.stiles@open.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.apple-tab-span
        {mso-style-name:apple-tab-span;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1"><p class="MsoNormal"><span style="color:#1F497D">Thanks. It’s a hole of my own digging where I’ve amended the creators render to format internal author names as links to their author browse view unless nolink is set. Elsewhere I’m then trying to use the citation
but without the links rendering. I’ve worked around it for now with some cludgy regex but it seems like there should be a more elegant solution. I’ll have a look at these links and see what comes out. Thanks for taking time out of your holiday.<o:p></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D"> </span></p><p class="MsoNormal"><span style="color:#1F497D">Alan<o:p></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-GB"> Adam Field [<a href="mailto:af05v@ecs.soton.ac.uk">mailto:af05v@ecs.soton.ac.uk</a>]
<br>
<b>Sent:</b> 13 July 2015 03:59<br>
<b>To:</b> <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
<b>Subject:</b> [EP-tech] Re: DataObj->render_citation options<o:p></o:p></span></p>
</div>
</div><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">The actual call appears to be here:<span style="font-size:12.0pt;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<div><p class="MsoNormal"><o:p> </o:p></p>
</div>
<div><p class="MsoNormal"><span class="apple-tab-span"> </span><a href="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Script.pm#L149">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Script.pm#L149</a><o:p></o:p></p>
</div>
<div><p class="MsoNormal"><o:p> </o:p></p>
</div>
<div><p class="MsoNormal">...which appears to hard-codes nolink to 0. You can define opts in print tags in citations, so it's not beyond the realms of reason that this can't be passed through the twisty rabbit warren. The opts are just sucked up into the arguments
here:<o:p></o:p></p>
</div>
<div><p class="MsoNormal"><o:p> </o:p></p>
</div>
<div><p class="MsoNormal"><span class="apple-tab-span"> </span><a href="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/XML/EPC.pm#L250">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/XML/EPC.pm#L250</a><o:p></o:p></p>
</div>
<div><p class="MsoNormal"><o:p> </o:p></p>
</div>
<div><p class="MsoNormal">What is the actual problem you're trying to solve?<o:p></o:p></p>
</div>
<div><p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<div><p class="MsoNormal"><span style="">--<br>
Adam Field<br>
Business Relationship Manager and Community Lead<br>
EPrints Services<o:p></o:p></span></p>
</div>
<div><p class="MsoNormal"><span style=""> </span></p>
</div>
<div><p class="MsoNormal"><span style="">I am currently not working in the UK. Due to timezone differences (GMT -9) email responses may take longer.<o:p></o:p></span></p>
</div>
</div>
</div><p class="MsoNormal"><o:p> </o:p></p>
<div>
<div><p class="MsoNormal">On 10 Jul 2015, at 19:15, Alan.Stiles <<a href="mailto:alan.stiles@open.ac.uk">alan.stiles@open.ac.uk</a>> wrote:<o:p></o:p></p>
</div><p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div><p class="MsoNormal"><span style="color:#1F497D">Thanks Adam, kind of useful – I was trying to figure out if it was possible to pass a ‘nolink’ flag from a call to DataObj->render_citation($style, %opts) that will get picked up by Metafield->render_value($session,
$value, $alllangs, $nolink, $object) but I keep getting lost in the twisty rabbit warren between the functions!</span><o:p></o:p></p><p class="MsoNormal"><span style="color:#1F497D"> </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"><b><span lang="EN-US" style="mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-GB"> Adam Field [</span><a href="mailto:af05v@ecs.soton.ac.uk"><span lang="EN-US" style="mso-fareast-language:EN-GB">mailto:af05v@ecs.soton.ac.uk</span></a><span lang="EN-US" style="mso-fareast-language:EN-GB">]
<br>
<b>Sent:</b> 10 July 2015 09:21<br>
<b>To:</b> </span><a href="mailto:eprints-tech@ecs.soton.ac.uk"><span lang="EN-US" style="mso-fareast-language:EN-GB">eprints-tech@ecs.soton.ac.uk</span></a><span lang="EN-US" style="mso-fareast-language:EN-GB"><br>
<b>Subject:</b> [EP-tech] Re: DataObj->render_citation options</span><o:p></o:p></p>
</div>
</div><p class="MsoNormal"> <o:p></o:p></p>
<div><p class="MsoNormal">The actual rendering happens here:<o:p></o:p></p>
</div>
<div><p class="MsoNormal"> <o:p></o:p></p>
</div>
<div><p class="MsoNormal"><span class="apple-tab-span"> </span><a href="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Citation/EPC.pm#L64">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Citation/EPC.pm#L64</a><o:p></o:p></p>
</div>
<div><p class="MsoNormal"> <o:p></o:p></p>
</div>
<div><p class="MsoNormal">But is is a confusing, twisty route. A call to render_citation should look like this:<o:p></o:p></p>
</div>
<div><p class="MsoNormal"> <o:p></o:p></p>
</div>
<div><p class="MsoNormal">$eprint->render_citation('citation_name', %params);<o:p></o:p></p>
</div>
<div><p class="MsoNormal"> <o:p></o:p></p>
</div>
<div><p class="MsoNormal">...where params is a hash that looks like this:<o:p></o:p></p>
</div>
<div><p class="MsoNormal"> <o:p></o:p></p>
</div>
<div><p class="MsoNormal">(<o:p></o:p></p>
</div>
<div><p class="MsoNormal"><span class="apple-tab-span"> </span>thing1 => DOM_OBJECT,<o:p></o:p></p>
</div>
<div><p class="MsoNormal"><span class="apple-tab-span"> </span>thing2 => DOM_OBJECT,<o:p></o:p></p>
</div>
<div><p class="MsoNormal"><span class="apple-tab-span"> </span>flags => {<o:p></o:p></p>
</div>
<div><p class="MsoNormal"><span class="apple-tab-span">
</span>flag1 => 1,<o:p></o:p></p>
</div>
<div><p class="MsoNormal"><span class="apple-tab-span">
</span>flag2 => 0,<o:p></o:p></p>
</div>
<div><p class="MsoNormal"><span class="apple-tab-span">
</span>flag3 => 1,<o:p></o:p></p>
</div>
<div><p class="MsoNormal"><span class="apple-tab-span"> </span>},<o:p></o:p></p>
</div>
<div><p class="MsoNormal">)<o:p></o:p></p>
</div>
<div><p class="MsoNormal"> <o:p></o:p></p>
</div>
<div><p class="MsoNormal">Params are things that are passed through that may be used in the citation. Generally speaking, these are dom objects to be put into the citation or flags to base conditionals upon.<o:p></o:p></p>
</div>
<div><p class="MsoNormal"> <o:p></o:p></p>
</div>
<div><p class="MsoNormal">Does that help?<o:p></o:p></p>
</div>
<div><p class="MsoNormal"> <o:p></o:p></p>
<div>
<div>
<div>
<div>
<div><p class="MsoNormal">--<br>
Adam Field<br>
Business Relationship Manager and Community Lead<br>
EPrints Services<o:p></o:p></p>
</div>
<div><p class="MsoNormal"> <o:p></o:p></p>
</div>
<div><p class="MsoNormal">I am currently not working in the UK. Due to timezone differences (GMT -9) email responses may take longer.<o:p></o:p></p>
</div>
</div>
</div><p class="MsoNormal"> <o:p></o:p></p>
<div>
<div><p class="MsoNormal">On 9 Jul 2015, at 20:21, Alan.Stiles <<a href="mailto:alan.stiles@open.ac.uk">alan.stiles@open.ac.uk</a>> wrote:<o:p></o:p></p>
</div><p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div><p class="MsoNormal">Can anyone point me to a wiki page or a .pm file that defines what the possible values for %opts are for DataObj->render_citation() ?<o:p></o:p></p><p class="MsoNormal"> <o:p></o:p></p><p class="MsoNormal">I’m having a complete failure to figure out what they are or what the chain of functions is that finally leads to the Metafield->render_value function<o:p></o:p></p><p class="MsoNormal">Thanks!<o:p></o:p></p><p class="MsoNormal">Alan<o:p></o:p></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB">-- 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.
</span><o:p></o:p></p>
</div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB">*** Options:
</span><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</span></a><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB"><br>
*** Archive: </span><a href="http://www.eprints.org/tech.php/"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB">http://www.eprints.org/tech.php/</span></a><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB"><br>
*** EPrints community wiki: </span><a href="http://wiki.eprints.org/"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB">http://wiki.eprints.org/</span></a><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB"><br>
*** EPrints developers Forum: </span><a href="http://forum.eprints.org/"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB">http://forum.eprints.org/</span></a><o:p></o:p></p>
</blockquote>
</div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB"> </span><o:p></o:p></p>
</div>
</div>
</div>
</div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB">*** Options:
</span><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</span></a><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB"><br>
*** Archive: </span><a href="http://www.eprints.org/tech.php/"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB">http://www.eprints.org/tech.php/</span></a><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB"><br>
*** EPrints community wiki: </span><a href="http://wiki.eprints.org/"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB">http://wiki.eprints.org/</span></a><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB"><br>
*** EPrints developers Forum: </span><a href="http://forum.eprints.org/"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB">http://forum.eprints.org/</span></a><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</blockquote>
</div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB"> </span></p>
</div>
</div>
</div>
</div>
</div>
*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>*** Archive: <a href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a><br>*** EPrints community wiki: <a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a><br>*** EPrints developers Forum: <a href="http://forum.eprints.org/">http://forum.eprints.org/</a><br></blockquote></div><br></div></body></html>