EPrints Technical Mailing List Archive
Message: #04667
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Some questions about SWORDv2/CRUD endpoint
- To: <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Some questions about SWORDv2/CRUD endpoint
- From: "Andy Reid" <Andy.Reid@lshtm.ac.uk>
- Date: Tue, 08 Sep 2015 14:06:31 +0100
Hi Richard, I definitely did have the EasyDeposit client working at a basic level at one point - I can see the ePrint items where I was getting Title, Creators, Abstract to insert correctly. Unfortunately I can't reconstruct the state of the system at that point. I can see the atom manifest that was sent, but not what the headers were. As far as I understand it the atom was being handled initially by AtomMultipart.pm, and at the time I couldn't work out were it went from there, because I never spotted Atom.xsl lurking in XSLT/ - now it makes slightly more sense. Do you perhaps need to be invoking AtomMultipart first? Sorry to be a bit vague, but this was my first attempt at Eprints internals, and it's a comfort to know that it wasn't just me being a newb - it's dark in there! Andy >>> Richard Jones <richard@cottagelabs.com> 08 September 2015 09:21 >>> Hi Andy, Thanks for your email, very useful.
So, did you manage to get the sword endpoint to take generic atom, even with just those basic fields? This is the bit that I'm currently stuck at, but if I could get it working, I'd be in a good position. Right now I'm sending an atom entry document with both generic atom and embedded dc metadata, and I can see that there's an XSL file here that should deal with it: perl_lib/EPrints/Plugin/Import/XSLT/Atom.xsl Problem seems to be, though, that this XSL file isn't being picked up as a viable import plugin for my deposit, and I can't tell why. If you were able to import some basic atom metadata, that means there's hope for me here :) Do you recall having to set any configuration to get this to work?
When you say the "right interpreter", do you mean the EPrints import plugin? I guess that's the same problem I'm having. If the Atom.xsl can be run over the incoming XML, then actually it would be easy in EPrints to customise that file for supporting arbitrary embedded metadata. Perhaps there's an EPrints dev on the list who can tell us a bit more about how the XSLT import plugins work/get loaded?
Just snipping the key bits...
So you found you had to specify both the Packaging and the Content-Type to get the right importer to load?
Looks like you're battling with similar things, thanks for the input. I feel hopeful that if we can figure out how the default Atom importer can work, that would be a bonus for everyone wanting to use Sword/EasyDeposit against EPrints. Cheers, Richard
|
- References:
- [EP-tech] Some questions about SWORDv2/CRUD endpoint
- From: Richard Jones <richard@cottagelabs.com>
- [EP-tech] Re: Some questions about SWORDv2/CRUD endpoint
- From: Richard Jones <richard@cottagelabs.com>
- [EP-tech] Re: Some questions about SWORDv2/CRUD endpoint
- From: Richard Jones <richard@cottagelabs.com>
- [EP-tech] Re: Some questions about SWORDv2/CRUD endpoint
- From: Richard Jones <richard@cottagelabs.com>
- [EP-tech] Re: Some questions about SWORDv2/CRUD endpoint
- From: "Andy Reid" <Andy.Reid@lshtm.ac.uk>
- [EP-tech] Re: Some questions about SWORDv2/CRUD endpoint
- From: Richard Jones <richard@cottagelabs.com>
- [EP-tech] Some questions about SWORDv2/CRUD endpoint
- Prev by Date: [EP-tech] Re: Some questions about SWORDv2/CRUD endpoint
- Next by Date: [EP-tech] Re: Some questions about SWORDv2/CRUD endpoint
- Previous by thread: [EP-tech] Re: Some questions about SWORDv2/CRUD endpoint
- Next by thread: [EP-tech] Re: Some questions about SWORDv2/CRUD endpoint
- Index(es):