[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Re: reordering documents
We do use the document order unfortunately.
If we are importing an article that has, say, an XML files with the metadata in it, a PDF with the published article and a bunch of images then we put the main PDF as the first document, the metadata as the last and the all the rest anywhere else.
We used to only ever have one PDF with an article so we just put that first. Recently, we have started getting data where we have more than one PDF: a main one and a number of secondary ones - we can identify which is which easily enough and our importer now handles things correctly. But we have data already in Eprints which has the documents in the "wrong" order and so we want to reorder them.
All else failing we can probably delete and re-import them but I was trying to find a way to do the re-ordering in place.
Hope that all makes sense.
From: eprints-tech-bounces at ecs.soton.ac.uk <eprints-tech-bounces at ecs.soton.ac.uk> on behalf of Field A.N. <af05v at ecs.soton.ac.uk>
Sent: 23 April 2015 10:06
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Re: reordering documents
I don't believe there's any implied semantics with document ordering (though I may be wrong). What are you aiming to accomplish by reordering them?
Business Relationship Manager and Community Lead
+44 (0)23 8059 8814
On 20 Apr 2015, at 17:03, CARRICK Ray wrote:
> 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;
> $documents = $documents;
> $documents = $tmp;
> $eprint->set_value('documents', \@documents);
> 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.
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
> *** EPrints developers Forum: http://forum.eprints.org/
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.