Hi Jonathan,

When you say the "real ID" do you mean the item's database identifier,
or the handle that DSpace assigns to the item?

Presuming that you mean the latter, you can find this in the
atom:link@rel="alternate" field of the deposit receipt, but only in
the case that the deposited item goes directly into the archive.  If
there is a review workflow set up on the collection you deposited to,
the item will go into that review workflow.  As a consequence, there
is no handle for the item at the time the receipt is returned to you
after the deposit operation.  If you are using the standard DSpace
version of SWORDv2, this means you /will not/ be able to get a url for
the item as it is in DSpace at that time.

All you can do is wait for the review workflow to complete, and then
query the Edit-IRI again, to see if the atom:link@rel="alternate" has
been populated, which is will be once the item is assigned a handle.

Hope that helps,

Cheers,

Richard

On 18 June 2013 15:52, Philip Durbin <philip_dur...@harvard.edu> wrote:
> On Mon, Jun 17, 2013 at 5:04 PM, Jonathan Alba
> <jonathan.vide...@gmail.com> wrote:
>> I'm having problems when I deposit a object in DSpace. I need to retrieve
>> the real ID of the object, but the ID returned is different. It seems to me
>> that it is an internal ID of SWORD. Does anyone know how to recover the true
>> object ID?
>
> You might be able to determine this by studying this code:
>
> https://github.com/DSpace/DSpace/tree/master/dspace-swordv2/src/main/java/org/dspace/sword2
>
> In #dspace on Freenode yesterday I was told this is the implementation
> DSpace uses.
>
> I'm sorry I can't be of more assistance. I'm just learning about SWORD
> and I've never used DSpace.
>
> Phil
>
> p.s. I noticed that the message above from Jonathan (and one I sent
> yesterday morning) has not yet been archived at
> http://sourceforge.net/mailarchive/forum.php?forum_name=sword-app-tech
> but it looks like it was properly archived at
> http://www.mail-archive.com/sword-app-tech@lists.sourceforge.net/msg00307.html
>
> --
> Philip Durbin
> Software Developer for http://thedata.org
> http://www.iq.harvard.edu/people/philip-durbin
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> sword-app-tech mailing list
> sword-app-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sword-app-tech



-- 

Richard Jones,

Founder, Cottage Labs
t: @richard_d_jones, @cottagelabs
w: http://cottagelabs.com

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech

Reply via email to