<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="http://www.w3.org/TR/REC-html40">
<head>
<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:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 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:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma",sans-serif;
        mso-fareast-language:EN-US;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:EN-AU;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma",sans-serif;
        mso-fareast-language:EN-US;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Verdana",sans-serif;
        color:windowtext;}
span.sc3
        {mso-style-name:sc3;}
span.re1
        {mso-style-name:re1;}
span.re0
        {mso-style-name:re0;}
span.st0
        {mso-style-name:st0;}
span.re2
        {mso-style-name:re2;}
span.EmailStyle27
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle28
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle29
        {mso-style-type:personal;
        font-family:"Verdana",sans-serif;
        color:#1F497D;}
span.EmailStyle30
        {mso-style-type:personal;
        font-family:"Verdana",sans-serif;
        color:#1F497D;}
span.EmailStyle31
        {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]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hmmm, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">It&#8217;s trivial to do using Lizz&#8217;s example &#8211; or look at the default code for rendering multiple versions &#8211; calculate in perl, check for a $flags{something} in the epc.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">There is a possibly useful method in EPrints::Script::Compiled (which seems to have escaped the clutches of documentation):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">filter_compound_list<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I&#8217;ve never used it, no one&#8217;s ever written about it (as far as I can see, other than a mention in release notes).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">*<b>If</b>* it works, you probably want something like this:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp; &lt;epc:if test=&#8221;$item.filter_compound_list( 'locationelectronic', 'type', 'url' ).length = 0&quot;&gt;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- print your message --&gt;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp; &lt;/epc:if&gt;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Also, if it does work, shall we add some documentation about it somewhere?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">John<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></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"> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
<b>On Behalf Of </b>Matthew Brady<br>
<b>Sent:</b> 30 June 2016 07:24<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk<br>
<b>Subject:</b> Re: [EP-tech] epc and citation templates<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">Hi again
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Wingdings;color:#1F497D">J</span><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">More summary page citation rendering goodness&#8230;&nbsp;&nbsp; &nbsp;&nbsp;Is there a way to display a message if something doesn&#8217;t occur, using the epc script constructs&#8230;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">e.g. in this code snippet&#8230;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-AU">&lt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-AU">epc:foreach</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:#7F007F">expr</span><span style="color:black">=</span><i><span style="color:#2A00FF">&quot;locationelectronic&quot;</span></i>
<span style="color:#7F007F">iterator</span><span style="color:black">=</span><i><span style="color:#2A00FF">&quot;le&quot;</span></i><span style="color:teal">&gt;</span><span style="color:black">
</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:EN-AU">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-AU">&lt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-AU">epc:if</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:#7F007F">test</span><span style="color:black">=</span><i><span style="color:#2A00FF">&quot;$le{type} = 'url'&quot;</span></i><span style="color:teal">&gt;</span><span style="color:black">
</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:EN-AU">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-AU">&lt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-AU">li</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-AU">&gt;&lt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-AU">a</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-AU">
<span style="color:#7F007F">target</span><span style="color:black">=</span><i><span style="color:#2A00FF">&quot;_top&quot;</span></i>
<span style="color:#7F007F">href</span><span style="color:black">=</span><i><span style="color:#2A00FF">&quot;//{$le{textual}}&quot;</span></i><span style="color:teal">&gt;&lt;</span><span style="color:#3F7F7F">epc:print</span>
<span style="color:#7F007F">expr</span><span style="color:black">=</span><i><span style="color:#2A00FF">&quot;$le{textual}&quot;</span></i>
<span style="color:teal">/&gt;&lt;/</span><span style="color:#3F7F7F">a</span><span style="color:teal">&gt;&lt;/</span><span style="color:#3F7F7F">li</span><span style="color:teal">&gt;&lt;</span><span style="color:#3F7F7F">br</span><span style="color:teal">/&gt;</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:EN-AU">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-AU">&lt;/</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-AU">epc:if</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-AU">&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-AU"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-AU">&lt;/</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-AU">epc:foreach</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-AU">&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">If we have urls stored, then render them out&#8230; but if after looping through all the records, none of them were urls, then I want to display a message
 with some generic contact details&#8230;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">Matt<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;mso-fareast-language:EN-AU">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;mso-fareast-language:EN-AU">
<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>Matthew Brady<br>
<b>Sent:</b> Wednesday, 29 June 2016 1:36 PM<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] epc and citation templates<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-AU"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">Thanks for the feedback&#8230;
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">I tried to re-wrangle the EPrints::Script::Compiled with a new method, but it complained about undefined values, and it just didn&#8217;t want to play
 nicely&#8230;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">The data I was using was originally a field inside a compound,&nbsp; I have updated the field definitions so its now a multiplele itemref field, not inside
 a compound type.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">And now it is working&#8230; &nbsp;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">I will work on Lizz&#8217;s ideas as well, to get something that&#8217;s going to suit this project, and let you know how it all works out when its done.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">Matt<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;mso-fareast-language:EN-AU">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;mso-fareast-language:EN-AU">
<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>John Salter<br>
<b>Sent:</b> Tuesday, 28 June 2016 9:22 PM<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] epc and citation templates<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-AU"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Hi Matt,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">How do you get your list of related EPrintIDs?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Are they stored in a field, or calculated dynamically?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Lizz&#8217;s suggestion is good. <o:p>
</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">If you *<b>really</b>* want to constrain yourself to use logic in the citation files, you will need to inject some extra methods into the EPrints::Script::Compiled module *<b>unless</b>* your EPrintIDs are stored
 in an &#8216;Itemref&#8217; field.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">If they&#8217;re in an Itemref field, you can use the &#8216;as_item&#8217; method.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">If they&#8217;re not, you can add something like (pseudo code!)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">package EPrints::Script::Compiled<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">sub run_datasetid_and_id_to_dataobj<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp; my( $self, $state, $datasetid, $id) = @_;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp; # turn $datasetid and $id into a dataobj<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp; # return [ $dataobj ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">And then use &lt;epc:print expr=&#8221;datasetid_and_id_to_dataobj( &#8216;eprint&#8217;, $eprintid ).citation(&#8216;default&#8217;)&#8221; /&gt;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">An example of this technique at the end of this file:
<a href="http://bazaar.eprints.org/207/1/epm/containers/cfg/cfg.d/z_containers.pl">
http://bazaar.eprints.org/207/1/epm/containers/cfg/cfg.d/z_containers.pl</a> <o:p>
</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">John<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></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">
<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>Lizz Jennings<br>
<b>Sent:</b> 28 June 2016 10:18<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] epc and citation templates<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">You can write a render method in eprint_render.pl (or wherever you have that configuration as it can be overridden).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I&#8217;ve used this as I have created a parent-child functionality, but you could obviously adapt this to what you were wanting to include.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><a href="https://gist.github.com/icklecows/da6b254563bed40f8bb2047756e91043">https://gist.github.com/icklecows/da6b254563bed40f8bb2047756e91043</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">(and sorry for all the embedded styles in there, it&#8217;s a temporary measure&#8230;)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">You write the code to a fragment, and can then include the fragment in the summary_page.xml file.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Lizz<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB">--<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB">Lizz Jennings BA MSc ACLIP MCLIP (Revalidated 2015)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB">Technical Data Officer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB">The Library 4.10, University of Bath, Bath, BA2 7AY UK<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SV" style="color:#1F497D;mso-fareast-language:EN-GB">Ext. 3570 (External 01225 383570)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB"><a href="mailto:E.Jennings@bath.ac.uk"><span lang="SV" style="color:#0563C1">E.Jennings@bath.ac.uk</span></a></span><u><span lang="SV" style="color:#0563C1;mso-fareast-language:EN-GB"><o:p></o:p></span></u></p>
<p class="MsoNormal"><span style="color:#1F497D">Research Data Management: <a href="http://www.bath.ac.uk/research/data">
<span style="color:#0563C1">http://www.bath.ac.uk/research/data</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB"><o:p>&nbsp;</o:p></span></p>
</div>
<pre><span lang="EN-AU"><o:p>&nbsp;</o:p></span></pre>
<pre><span lang="EN-AU">_____________________________________________________________<o:p></o:p></span></pre>
<pre><span lang="EN-AU">This email (including any attached files) is confidential and is for the intended recipient(s) only. If you received this email by mistake, please, as a courtesy, tell the sender, then delete this email.<o:p></o:p></span></pre>
<pre><span lang="EN-AU"><o:p>&nbsp;</o:p></span></pre>
<pre><span lang="EN-AU">The views and opinions are the originator's and do not necessarily reflect those of the University of Southern Queensland. Although all reasonable precautions were taken to ensure that this email contained no viruses at the time it was sent we accept no liability for any losses arising from its receipt.<o:p></o:p></span></pre>
<pre><span lang="EN-AU"><o:p>&nbsp;</o:p></span></pre>
<pre><span lang="EN-AU">The University of Southern Queensland is a registered provider of education with the Australian Government.<o:p></o:p></span></pre>
<pre><span lang="EN-AU">(CRICOS Institution Code QLD 00244B / NSW 02225M, TEQSA PRV12081 )<o:p></o:p></span></pre>
</div>
</body>
</html>