Skip to content

Getting the dc:identifier #1

@pes130

Description

@pes130

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&lt;/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&lt;/id>
<title type="text">Original Deposit http://localhost:8080/xmlui/bitstream/123456789/21/2/testPDF.pdf&lt;/title>
...
</entry>
<entry>
<id>http://localhost:8080/xmlui/bitstream/123456789/21/3/sword-2012-11-13T20:49:59.original.xml&lt;/id>
<title type="text">Original Deposit http://localhost:8080/xmlui/bitstream/123456789/21/3/sword-2012-11-13T20:49:59.original.xml&lt;/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions