[EP-tech] Re: Import files from filesystem
John Salter
J.Salter at leeds.ac.uk
Tue Sep 4 10:54:57 BST 2012
Thanks for that - I was sure someone somewhere was doing something - just couldn't find it!
Any ideas as to why POST params aren't available via render function of an UploadMethod?
-----Original Message-----
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Ian Stuart
Sent: 03 September 2012 15:57
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Re: Import files from filesystem
On 03/09/12 15:35, John Salter wrote:
> Has anyone written anything that will do something along these lines:
> 1. User specifies a folder that is visible to both the EPrints server and their PC
> 2. EPrints lists contents of folder (don't really want to start at the top level and list all, there'll be *a lot* of files in there - so need to specify folder first)
> 3. User select which items to attach to an eprint (all separate documents)
>
> I'm torn between doing this as an import plugin, and a upload method.
> Sometimes we'll have the files before the metadata (an import method would be best), sometimes the metadata before the files (upload would be best), so I may have to do both.
>
> I started down the UploadMethod route, but got a bit stuck when the render method couldn't see the POST params (only the GET ones, as far as I could make out). Any hints as to why this is (is it expected behaviour)?
Have a look at David T's DepositMo stuff.
He did a SWORD-based transfer, but the concept should be similar...
--
Ian Stuart.
Developer: ORI, RJ-Broker, and OpenDepot.org
Bibliographics and Multimedia Service Delivery team,
EDINA,
The University of Edinburgh.
http://edina.ac.uk/
This email was sent via the University of Edinburgh.
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/
More information about the Eprints-tech
mailing list