<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:"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: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:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        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";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        mso-fareast-language:EN-US;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Verdana",sans-serif;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Verdana",sans-serif;
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Verdana",sans-serif;
        color:#1F497D;}
span.EmailStyle22
        {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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Matt,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I've just created test fields on a 3.3.10 repository, and when using the 'New version' button, the fields DO NOT get cloned. Things seem to work as expected/intended, using the field definitions you used.<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">Do you have any automatic fields that might be setting this data (so although it looks 'cloned' it's getting set independently)?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Do you have any triggers that might be doing anything?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Could you (not quite sure how) have the same field definition more than once (with the later version having a different 'can_clone' setting)?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Have you got something that's overriding the 'clone' 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">Possibly adding debug statements to EPrints::DataObj::EPrint::clone might be the quickest way forward&#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">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> 15 May 2017 05:48<br>
<b>To:</b> 'eprints-tech@ecs.soton.ac.uk' &lt;eprints-tech@ecs.soton.ac.uk&gt;<br>
<b>Subject:</b> [EP-tech] Does 'can_clone' work correctly?<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="color:#1F497D">Hi All,</span><span lang="EN-AU"><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">BUMP&#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">Anyone have any ideas how to set a field parameter as &#8216;can_clone=&gt;0&#8217; for field definitions within the eprints_fields.pl file?<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">We have some fields that are visible to editorial staff only, which flag various details about the items in the repository.<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">The problem is, when an item is cloned, these extra &#8216;unknown to the end user&#8217; fields are also cloned and set, with what appear to be valid notes/data&#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 thought the &#8216;can_clone&#8217; property would stop these data fields from being copied across, but alas, nothing I have tried has appeared to work.<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 would rather not have to disable the clone button, but if that&#8217;s the only option then that&#8217;s how I have to do it&#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>
<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 #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-AU">From:</span></b><span lang="EN-US" style="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> Friday, 28 April 2017 5:00 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> [EP-tech] Does 'can_clone' work correctly?<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">Hi,<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"><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">Just wondering if anyone else can verify a problem I am having, (or doing wrong) on a 3.3.10 instance&#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"><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">According to the documentation (<a href="https://wiki.eprints.org/w/Metadata">https://wiki.eprints.org/w/Metadata</a>), can_clone is a property that can be set
 in the field definitions, and is used quite liberally in the EPrints.pm : get_system_field_info sub<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">e.g.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:36.0pt;text-autospace:none"><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">{
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">name</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">&quot;datestamp&quot;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">type</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">&quot;time&quot;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">required</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A02000">0</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A020F0">import</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A02000">0</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas"><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:#B22200">&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:black">render_res</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">&quot;minute&quot;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">render_style</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">&quot;short&quot;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">can_clone</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A02000">0
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">},</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas"><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"><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:#B22200">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">name</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">&quot;lastmod&quot;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">type</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">&quot;timestamp&quot;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">required</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A02000">0</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A020F0">import</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A02000">0</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas"><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:#B22200">&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:black">render_res</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">&quot;minute&quot;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">render_style</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">&quot;short&quot;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">can_clone</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A02000">0</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">volatile</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A02000">1
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">},</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas"><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"><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:#B22200">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">name</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">&quot;status_changed&quot;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">type</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">&quot;time&quot;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">required</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A02000">0</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A020F0">import</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A02000">0</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas"><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:#B22200">&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:black">render_res</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">&quot;minute&quot;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">render_style</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">&quot;short&quot;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">can_clone</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A02000">0
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">},</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas"><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"><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"><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"><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">to filter out data you don&#8217;t want to copy across when cloning&#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"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-indent:36.0pt;text-autospace:none"><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A020F0">foreach my
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">$</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A000F0">field</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">(
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">$</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A000F0">self</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">-&gt;{</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">dataset</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">}-&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">get_fields
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">)</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas"><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:#B22200">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas"><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:#B22200">&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:#A020F0">next if</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">(
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">$</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A000F0">field</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">-&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">get_property</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">(
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">&quot;can_clone&quot;
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">) );</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas"><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:#B22200">&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:#A000F0">delete
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">$</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A000F0">data</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">-&gt;{</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">$</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A000F0">field</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">-&gt;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">get_name</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">};</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><span lang="EN-AU" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif"><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"><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"><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">Taking this a step further, I have altered the local repository eprint_fields.pl field definitions, to include the can_clone =&gt; 0 into a few test fields, but the
 data still gets cloned into the new record.<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">e.g.<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:#B22200">{</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">name
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">'test_field_1'</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<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:#B22200">&nbsp;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">type
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">'set'</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
<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">&nbsp;options
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; [</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">'yes'</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">'no'</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:blue">'pending'</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">],
<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:#B22200">&nbsp;</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:black">can_clone
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt;
</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#A02000">0</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
<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:#B22200">},</span><span lang="EN-AU" style="font-size:10.0pt;font-family:Consolas"><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"><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">Can anyone confirm if it&#8217;s not working correctly, or point me to what I&#8217;m doing wrong ?
<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"><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">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"><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">Matt<o:p></o:p></span></p>
<pre><span lang="EN-AU"><o:p>&nbsp;</o:p></span></pre>
<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>