-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hello Richard,
First of all, congratulations for this useful library.
I've succesully checked in items with your sword java client. But I have a questions:
How can I recover de dc:identifier field (dublin core). I mean, I need the following:
<record>
<header>
<identifier>oai:localhost:123456789/21</identifier>
...
</header>
<metadata>
<oai_dc:dc xmlns:oai_dc=".....">
<dc:title>Picnic at Hanging Rock</dc:title>
...
<dc:description>Misteriosa historia ¿basada en hechos reales?</dc:description>
...
<dc:identifier>http://hdl.handle.net/123456789/21</dc:identifier>
...
</oai_dc:dc>
</metadata>
</record>
I know it's dublin core field, but I need exactly that http://hdl.handle.net/123456789/21, or at least the 21.
Looking at the atom feed output obtained with:
Content content = client.getContent(resp.getLocation(),
"application/atom+xml;type=feed", null, auth);
content.getFeed().writeTo(System.out);
After inserting the item, the most similar i found is:
...
<entry>
<id>http://localhost:8080/xmlui/bitstream/123456789/21/2/testPDF.pdf</id>
<title type="text">Original Deposit http://localhost:8080/xmlui/bitstream/123456789/21/2/testPDF.pdf</title>
...
</entry>
<entry>
<id>http://localhost:8080/xmlui/bitstream/123456789/21/3/sword-2012-11-13T20:49:59.original.xml</id>
<title type="text">Original Deposit http://localhost:8080/xmlui/bitstream/123456789/21/3/sword-2012-11-13T20:49:59.original.xml</title>
...
<content type="application/octet-stream" src="http://localhost:8080/xmlui/bitstream/123456789/21/3/sword-2012-11-13T20:49:59.original.xml" />
...
</entry>
...
Is there a way to obtain it more directly?
Thanks in advance!
Pablo