<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;"><div>The actual rendering happens here:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </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></div><div><br></div><div>But is is a confusing, twisty route. &nbsp;A call to render_citation should look like this:</div><div><br></div><div>$eprint-&gt;render_citation('citation_name', %params);</div><div><br></div><div>...where params is a hash that looks like this:</div><div><br></div><div>(</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>thing1 =&gt; DOM_OBJECT,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>thing2 =&gt; DOM_OBJECT,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>flags =&gt; {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>flag1 =&gt; 1,</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>flag2 =&gt; 0,</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>flag3 =&gt; 1,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>},</div><div>)</div><div><br></div><div>Params are things that are passed through that may be used in the citation. &nbsp;Generally speaking, these are dom objects to be put into the citation or flags to base conditionals upon.</div><div><br></div><div>Does that help?</div><div><br><div><div><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. &nbsp;Due to timezone differences (GMT -9) email responses may take longer.</div></div>

</div>
<br><div><div>On 9 Jul 2015, at 20:21, Alan.Stiles &lt;<a href="mailto:alan.stiles@open.ac.uk">alan.stiles@open.ac.uk</a>&gt; 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.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@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">Can anyone point me to a wiki page or a .pm file that defines what the possible values for %opts are for DataObj-&gt;render_citation() ?<o:p></o:p></p><p class="MsoNormal"><o:p>&nbsp;</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-&gt;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>
</div>
-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England &amp; Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.
</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></div></div></body></html>