<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 default rendering of names is with EPrints::Utils::make_name_string, which inserts the comma whether you like it or not. &nbsp;See:</div>
<div><br>
</div>
<div><a href="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Utils.pm#L157">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Utils.pm#L157</a></div>
<div><br>
</div>
<div>You will need a render method:</div>
<div><br>
</div>
<div>$c-&gt;{render_family_name_first_no_comma} = sub</div>
<div>{</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>my ($repo, $field, $value, $allangs, $nolink, $eprint) = @_;</div>
<div><br>
</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>#please make this a little more sophisticated -- there's currently no exception handling for missing values</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>return $repo-&gt;xml-&gt;create_text_node($value-&gt;{family} . ' ' . $value-&gt;{given});</div>
<div>}</div>
<div><br>
</div>
<div>...and in the field definition:</div>
<div><br>
</div>
<div><br>
{<br>
<span class="Apple-tab-span" style="white-space:pre"></span>name&nbsp;=&gt;&nbsp;'creators',<br>
<span class="Apple-tab-span" style="white-space:pre"></span>type&nbsp;=&gt;&nbsp;'compound',<br>
<span class="Apple-tab-span" style="white-space:pre"></span>multiple&nbsp;=&gt;&nbsp;1,<br>
<span class="Apple-tab-span" style="white-space:pre"></span>fields&nbsp;=&gt;&nbsp;[<br>
<span class="Apple-tab-span" style="white-space:pre"></span>{<br>
<span class="Apple-tab-span" style="white-space:pre"></span>sub_name&nbsp;=&gt;&nbsp;'name',<br>
<span class="Apple-tab-span" style="white-space:pre"></span>type&nbsp;=&gt;&nbsp;'name',<br>
<span class="Apple-tab-span" style="white-space:pre"></span>hide_honourific&nbsp;=&gt;&nbsp;1,<br>
<span class="Apple-tab-span" style="white-space:pre"></span>hide_lineage&nbsp;=&gt;&nbsp;1,<br>
<span class="Apple-tab-span" style="white-space:pre"></span>family_first&nbsp;=&gt;&nbsp;1,</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>render_single_value =&gt; 'render_family_name_first_no_comma',<br>
<span class="Apple-tab-span" style="white-space:pre"></span>},<br>
<span class="Apple-tab-span" style="white-space:pre"></span>{<br>
<span class="Apple-tab-span" style="white-space:pre"></span>sub_name&nbsp;=&gt;&nbsp;'id',<br>
<span class="Apple-tab-span" style="white-space:pre"></span>type&nbsp;=&gt;&nbsp;'text',<br>
<span class="Apple-tab-span" style="white-space:pre"></span>input_cols&nbsp;=&gt;&nbsp;20,<br>
<span class="Apple-tab-span" style="white-space:pre"></span>allow_null&nbsp;=&gt;&nbsp;1,<br>
<span class="Apple-tab-span" style="white-space:pre"></span>}<br>
<span class="Apple-tab-span" style="white-space:pre"></span>],<br>
<span class="Apple-tab-span" style="white-space:pre"></span>input_boxes&nbsp;=&gt;&nbsp;4,<br>
},<br>
</div>
<div><br>
</div>
<div><br>
</div>
--
<div>Adam<br>
<div><br>
</div>
<div>
<div>On 16 May 2016, at 21:18, Mathieu Perron &lt;<a href="mailto:mathieu_perron@uqac.ca">mathieu_perron@uqac.ca</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Hi,<br>
<br>
I've been searching in the code and in this tech list to find a way to <br>
customize the creators_name list in the citations. &nbsp;I'm trying to <br>
accomplish the following citation style:<br>
<br>
lastname firstname, lastname firstname, lastname firstname and lastname <br>
firstname. [rest of citation here].<br>
<br>
I've been able to put the &quot; and &quot; for the last author by changing the <br>
&quot;lib/metafield:join_name.last&quot; phrase. &nbsp;I've read that I can order the <br>
creators_name by using &quot;gf&quot; or &quot;fg&quot; but there's no option to keep it &quot;fg&quot; <br>
but without the &quot;, &quot; between the family and given names.<br>
<br>
I tried creating a custom &quot;render_value&quot; or &quot;render_single_value&quot; sub but <br>
to no avail. &nbsp;Can anyone help me on this?<br>
<br>
Thank you for any help you can give me and have a nice day!<br>
<br>
Mathieu<br>
<br>
*** 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>
<br>
</blockquote>
</div>
<br>
</div>
<font size="1"> <font face="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.<br /><br />
 
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.
 
    
</font></font></body>
</html>