Hi David,

The SWORD v2 spec itself requires atom, so that might be the most portable 
option.  Other options may also work, but I have no experience of these.

Yes – you're right about the packager file to edit.  I've sent you another 
email off list with the gory details of how it works.

Thanks,


Stuart Lewis
Head of Digital Library Services
Library & Collections, Information Services
University of Edinburgh
stuart.le...@ed.ac.uk


From: David Kane <dk...@wit.ie<mailto:dk...@wit.ie>>
Date: Tuesday, 12 February 2013 13:09
To: Lewis Stuart <stuart.le...@ed.ac.uk<mailto:stuart.le...@ed.ac.uk>>
Cc: 
"sword-app-tech@lists.sourceforge.net<mailto:sword-app-tech@lists.sourceforge.net>"
 
<sword-app-tech@lists.sourceforge.net<mailto:sword-app-tech@lists.sourceforge.net>>
Subject: Re: [sword-app-tech] Sword ZIP Not unpacking into eprints

Hi Stuart,

I have been having a look at this and my feeling is that the best format might 
be the eprints.xml format.  Take a look at the attached and see what you think.

I have not been successful in getting people to send me XML that worked on 
EPrints, but I was able to export a couple of formats of the following eprint 
(temporarily available at: http://repository.wit.ie/2168/ )

These xml formats are Atom, EprintsXML and EprintsXML with files embedded.  
they are attached.

Am I right in saying that the file to modify in EasyDeposit is 
packager_atom_multipart_eprints.php?  On the EPrints side the key file seems to 
be CRUD.php.  There is some good documentation on CRUD.php here:  
http://wiki.eprints.org/w/API:EPrints/Apache/CRUD .  I think it is highly 
relevant.

I am attaching the formats to this email for the eprint.

Thanks,

David.


On 18 December 2012 22:09, LEWIS Stuart 
<stuart.le...@ed.ac.uk<mailto:stuart.le...@ed.ac.uk>> wrote:
Hi David,

I've spent a few hours this evening working on this.  There is some progress…

 - https://github.com/stuartlewis/EasyDeposit/
 - 
http://easydeposit.swordapp.org/instructions/installation-instructions/#source 
(remember to git submodule init / update)

There are a few new settings now…

 - admin -> core settings: select SWORD version -> select 2
 - admin -> edit steps -> deposit -> edit settings -> select packager -> 
atom_multipart_eprints

One of the problems (zip files not unpacking) is that EPrints doesn't support 
the 
purl.org/net/sword/package/SimpleZip<http://purl.org/net/sword/package/SimpleZip>
 format.  Instead it requires 
purl.org/net/sword/pacakge/Binary<http://purl.org/net/sword/pacakge/Binary>.  
This new packager does that and seems to work OK.  One caveat: EPrints doesn't 
seem to like the upload of more than one file in the same package (although 
this could be my code making a dodgy multipart package!).

[I've been testing against demo prints.eprints.org<http://prints.eprints.org>]

I can't get EPrints to read the metadata from the atom entry – not sure why 
(title, author, etc).  Have you had luck with this?

> An error has occurred with your deposit. Please contact 
> dk...@wit.ie<mailto:dk...@wit.ie><mailto:dk...@wit.ie<mailto:dk...@wit.ie>> 
> for assistance, quoting reference '42584325'.

When you see this, 42584325 is the name of the package that has been created 
(the default location is private/uploadfiles).  This can help you identify the 
package that didn't upload successfully. If you use a login method (e.g. Ldap 
or shibboleth) the random number gets prepended by the userID to help identify 
the user who's upload failed.

Let me know how you get on.

Thanks,


Stuart Lewis
Head of Digital Library Services
Library & Collections, Information Services
University of Edinburgh
stuart.le...@ed.ac.uk<mailto:stuart.le...@ed.ac.uk>


From: David Kane 
<dk...@wit.ie<mailto:dk...@wit.ie><mailto:dk...@wit.ie<mailto:dk...@wit.ie>>>
Date: Saturday, 15 December 2012 14:58
To: 
"sword-app-tech@lists.sourceforge.net<mailto:sword-app-tech@lists.sourceforge.net><mailto:sword-app-tech@lists.sourceforge.net<mailto:sword-app-tech@lists.sourceforge.net>>"
 
<sword-app-tech@lists.sourceforge.net<mailto:sword-app-tech@lists.sourceforge.net><mailto:sword-app-tech@lists.sourceforge.net<mailto:sword-app-tech@lists.sourceforge.net>>>
Subject: [sword-app-tech] Sword ZIP Not unpacking into eprints

Hi Stuart, All,

I am using the easydeposit PHP tool.

It seems to be working fine but the .ZIP is not unpacking at the EPrints end.  
Can anyone give me advice about the latest packager.

I am using the SWORD 2 library and the EPrints is the latest version (also 
using SWORD 2).

Thanks,

David.

--
David Kane, MLIS.
Systems Librarian
Waterford Institute of Technology
Ireland
http://library.wit.ie/
T: ++353.51302838<tel:%2B%2B353.51302838>
M: ++353.876693212<tel:%2B%2B353.876693212>


--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.




--
David Kane, MLIS.
Systems Librarian
Waterford Institute of Technology
Ireland
http://library.wit.ie/
T: ++353.51302838
M: ++353.876693212

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech

Reply via email to