<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Folks,</p>
<p><br>
</p>
<p>I'm trying to reorder documents associated with an eprint but not having any success. This is using Eprints 3.2.</p>
<p><br>
</p>
<p>So far I have tried:</p>
<p><br>
</p>
<p>doing a search to identify the eprints I want (that bit works fine)</p>
<p>then for each of them I want to swap the order of the first two documents.</p>
<p><br>
</p>
<p>I tried</p>
<p><br>
</p>
<p>my @documents = $eprint->get_all_documents;</p>
<p>my $tmp = $documents[0];</p>
<p>$documents[0] = $documents[1];</p>
<p>$documents[1] = $tmp;</p>
<p><br>
</p>
<p>$eprint->set_value('documents', \@documents);</p>
<p>$eprint->commit;</p>
<p><br>
</p>
<p>that doesn't seem to do anything. I also tried the above but also changing the 'pos'</p>
<p>values associated with the documents.</p>
<p><br>
</p>
<p>Any ideas how to do this? I could delete the relevant eprints and re-import them but I'd quite like to do the chnage implace if possible.</p>
<p><br>
</p>
<p>Thanks,</p>
<p><br>
</p>
<p>Ray.</p>
<p><br>
</p>
</div>
</body>
</html>