Hi,

I need to update a DSpace Item (already deposited) knowing only your handle, and I don't have access to dspace server.

So I googled and saw that the replace was possible using SWORDv2:

The client can replace the existing content of a resource by performing an HTTP PUT of some new binary content to the*EM-IRI*, with the following requirements:

 * The client SHOULD supply aContent-Typeheader
 * The client MUST supply aContent-Dispositionheader with
   afilenameparameter (note that this requires the filename be
   expressed in ASCII).
 * The client SHOULD supply aContent-MD5header with the MD5 checksum
   hex encoded for the binary content
 * The client SHOULD supply aPackagingheader [SWORD001
   <http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#sword001>]
   providing the IRI (or other allowed) of the packaging format used
 * The client MAY provide anOn-Behalf-Ofheader [SWORD001
   <http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#sword001>]
 * The client MAY provide aMetadata Relevantheader [SWORD001
   <http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#sword001>]
   with the valuetrueorfalse. This should be set totrueif the server
   should consider the file a potential source of metadata extraction,
   orfalseif the server should not attempt to extract any metadata from
   the deposit.


But to do that I need to know the Internal ID of Dspace Item (or not?).
EM-IRI is http://.../swordv2/edit-media/<INTERNAL ID>?
( https://github.com/DSpace/DSpace/blob/master/dspace-swordv2/src/main/java/org/dspace/sword2/SwordUrlManager.java )

Is there any way to know the internal ID from the handle?
Or there are other way to do the update/replacement only knowing the handle?

Version of DSpace -> 3.2 ( But I can replace the swordv2 package with the package of DSpace 4.x )

BestRegards,
André Santos


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to