EPrints Technical Mailing List Archive
Message: #04140
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] reordering documents
- To: "(eprints-tech@ecs.soton.ac.uk)" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] reordering documents
- From: CARRICK Ray <rcarric2@exseed.ed.ac.uk>
- 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.
|
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
- Follow-Ups:
- [EP-tech] Re: reordering documents
- From: "Field A.N." <af05v@ecs.soton.ac.uk>
- [EP-tech] Re: reordering documents
- Prev by Date: [EP-tech] Re: Antwort: Re: [spam?] Problems with IRStats and IRStats2 after 3.3.13 upgrade
- Next by Date: [EP-tech] upgrading IRStats to IRStats2
- Previous by thread: [EP-tech] Re: How to add functions for use in citations ?
- Next by thread: [EP-tech] Re: reordering documents
- Index(es):