<div dir="ltr">Just a little more information ...<div><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><div></div><div>I've found an Atom.xsl stylesheet in EPrints/Plugins/Import/XSLT which seems to imply that there /is/ a default atom import plugin. My sword deposit contains atom metadata, so this stylesheet should work nicely to create a new eprint with the relevant metadata. The only thing is, it doesn't appear to get called during deposit. In Eprints/Apache/CRUD.pm, there's this code (Line 762 in sub import_plugins):</div><div><br></div></span><div><span class=""><div>my @plugins = $self->repository->get_plugins(</div><div> type => "Import",</div><div> can_produce => $self->accept_type,</div><div> %params,</div><div> );</div></span></div></div></blockquote><div><br></div><div>In this code can_produce actuall gets dataobj/eprint, which I think is correct, but I can't work out what %params contains. It ought to contain application/atom+xml; type=entry I'm finding it difficult to trace this through the code to find out where it is set and what it should contain.</div><div><br></div><div>Cheers,</div><div><br></div><div>Richard</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span class=""><div><br></div><div>and it's being called with an accept_type of "application/atom+xml; type=entry". My guess is that the Atom.xsl stylesheet is not being understood as the plugin which can handle this format.</div><div><br></div><div>I read through this documentation:</div><div><br></div><div><a href="http://wiki.eprints.org/w/Import_and_Export_Plug-ins" target="_blank">http://wiki.eprints.org/w/Import_and_Export_Plug-ins</a><br></div><div><br></div><div>And it appears to suggest that the XSLT plugins need a wrapper around them for the specific mimetype that they need to work with - is this right? Or is there some way to get the XSLT import plugin to run as is?</div><div><br></div><div>If there's some other documentation that I've overlooked so far, any links much appreciated!</div><div><br></div></span><div>Cheers,</div><div><br></div><div>Richard</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On 28 August 2015 at 09:50, Richard Jones <span dir="ltr"><<a href="mailto:richard@cottagelabs.com" target="_blank">richard@cottagelabs.com</a>></span> wrote:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span>Actually, I see an AtomMultipart.pm in the EPrints/Plugin directory, and it in turn tries to load a plugin which supports application/atom+xml, but I can't find a plugin that supports that particular format. I think this is probably the same issue, then, as my (1) below - there doesn't appear to be a default atom plugin - is that right?<div><br></div><div>Cheers,</div><div><br></div><div>Richard</div><div><br></div></span><div class="gmail_extra"><br><div class="gmail_quote"><span>On 28 August 2015 at 09:32, Richard Jones <span dir="ltr"><<a href="mailto:richard@cottagelabs.com" target="_blank">richard@cottagelabs.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div><div><div dir="ltr">Hi Folks,<div><br></div><div>We're currently working on a new version of the Jisc Publications Router, and am looking into how best to put the content into an EPrints via SWORDv2. I'm encountering a few oddities, though, and I wonder if someone can clarify how that endpoint works for me?</div><div><br></div><div>1/ Posting an atom entry document to /id/content should result in the creation of a new eprint populated with the metadata from that document, but instead it creates an eprint with no metadata and the atom xml attached as a file called "main.bin". Perhaps I'm missing some crosswalk configuration?</div><div><br></div><div><a href="http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#protocoloperations_creatingresource_entry" target="_blank">http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#protocoloperations_creatingresource_entry</a><br></div><div><br></div><div>2/ My service document says:</div><div><br></div><div><acceptPackaging><a href="http://purl.org/net/sword/package/Binary" target="_blank">http://purl.org/net/sword/package/Binary</a></acceptPackaging><br></div><div><br></div><div>But when I PUT a file of this format tot he media resource I get a "package format not supported" error.</div><div><br></div><div>Also, it does not say that it supports SimpleZip, but if I PUT a SimpleZip it works fine. Is there a place that I can customise the accept/acceptPackaging entries in the service document?</div><div><br></div><div>3/ Completing deposit doesn't appear to work. When I POST to the eprint's Edit-IRI, I get a 405 Method Not Allowed, but it should update the eprint</div><div><br></div><div><a href="http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#continueddeposit_complete" target="_blank">http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#continueddeposit_complete</a><br></div><div><br></div><div><br></div><div>Looking at the code, with my limited Perl skills, it looks like the full SWORDv2 protocol is not supported - is there some documentation that will tell me what features are supported? For example, does multipart deposit work? <a href="http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#protocoloperations_creatingresource_multipart" target="_blank">http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#protocoloperations_creatingresource_multipart</a></div><div><br></div><div>Any tips/pointers much appreciated.</div><div><br></div><div>Cheers,</div><div><br></div><div>Richard<br clear="all"><div><br></div>-- <br><div><div><br></div>Richard Jones, <div><br></div><div>Founder, Cottage Labs <div>t: @richard_d_jones, @cottagelabs</div><div>w: <a href="http://cottagelabs.com" target="_blank">http://cottagelabs.com</a><br><div><br></div></div></div></div>
</div></div>
</div></div><br></div></div><span>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.php/</a><br>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
<br></span></blockquote></div><br><br clear="all"><span><div><br></div>-- <br><div><div><br></div>Richard Jones, <div><br></div><div>Founder, Cottage Labs <div>t: @richard_d_jones, @cottagelabs</div><div>w: <a href="http://cottagelabs.com" target="_blank">http://cottagelabs.com</a><br><div><br></div></div></div></div>
</span></div></div>
<br>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.php/</a><br>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
<br></blockquote></div></div></div><div><div class="h5"><br><br clear="all"><div><br></div>-- <br><div><div><br></div>Richard Jones, <div><br></div><div>Founder, Cottage Labs <div>t: @richard_d_jones, @cottagelabs</div><div>w: <a href="http://cottagelabs.com" target="_blank">http://cottagelabs.com</a><br><div><br></div></div></div></div>
</div></div></div></div></div>
<br>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.php/</a><br>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div><br></div>Richard Jones, <div><br></div><div>Founder, Cottage Labs <div>t: @richard_d_jones, @cottagelabs</div><div>w: <a href="http://cottagelabs.com" target="_blank">http://cottagelabs.com</a><br><div><br></div></div></div></div>
</div></div></div>