Hi Hayden,

Unfortunately not - from a SWORD point of view, this is just a URL.  The SWORD 
specification does not describe how URLs should encode item identifiers, so 
this is an implementation choice for the repository.  Therefore the client 
library can't know how to extract the ID.

Thanks,


Stuart



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


-----Original Message-----
From: Hayden Young [mailto:haydenyo...@wijiti.com] 
Sent: 17 April 2012 05:34
To: sword-app-tech@lists.sourceforge.net
Subject: [sword-app-tech] Retrieving workflow id of deposited package

Is there a simple method of retrieve the workflow id of a deposited package via 
the PHP Sword Client?

I can access $SwordAppEntry::sac_id but that gives me the full url to the edit 
endpoint:

<id>http://ubuntu1104.wijiti.local:8080/i/saber/swordv2/edit/23</id>

Is there a variable which returns just the id portion?

E.g.

$response->id

<id>23</id>

Cheers


Hayden

--
Hayden Young
Managing Director
Wijiti Pty Ltd
p. +61 (0) 08 6398 5010
e. haydenyo...@wijiti.com
w. www.wijiti.com
vcard. www.wijiti.com/vcard/haydenyoung.vcf

NOTICE
This e-mail and any attachments are intended for the addressee(s) only and may 
be confidential. They may contain legally privileged or copyright material. You 
should not read, copy, use or disclose them without authorization. If you are 
not the intended recipient please contact the sender as soon as possible by 
return e-mail and then please delete both messages. This notice should not be 
removed.


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to monitoring Big 
Data applications. Try Boundary one-second resolution app monitoring today. 
Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-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