[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] reordering documents
- Subject: [EP-tech] reordering documents
- From: rcarric2 at exseed.ed.ac.uk (CARRICK Ray)
- Date: Mon, 20 Apr 2015 16:03:00 +0000
Hi Folks,
I'm trying to reorder documents associated with an eprint but not having any success. This is using Eprints 3.2.
So far I have tried:
doing a search to identify the eprints I want (that bit works fine)
then for each of them I want to swap the order of the first two documents.
I tried
my @documents = $eprint->get_all_documents;
my $tmp = $documents[0];
$documents[0] = $documents[1];
$documents[1] = $tmp;
$eprint->set_value('documents', \@documents);
$eprint->commit;
that doesn't seem to do anything. I also tried the above but also changing the 'pos'
values associated with the documents.
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.
Thanks,
Ray.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150420/71beba09/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
Url: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150420/71beba09/attachment.pl