How to use GetRecord successfully

14 views
Skip to first unread message

C S

unread,
Mar 5, 2026, 10:37:21 AM (9 days ago) Mar 5
to OAI-PMH
Hello folks,

It would be useful if I could harvest a single record from my DSpace repository for testing purposes.  Unfortunately, every time I do this, it says that I'm giving an invalid ID.


This is the random single record I'm trying to harvest: https://ruor.uottawa.ca/items/eaffc801-f702-43ab-b870-04284882dfae

This is the call I'm using to try to harvest it:

https://ruor.uottawa.ca/server/oai/request?verb=GetRecord&identifier= oai%3Aruor.uottawa.ca%3A2F60d6f923-b1ba-4cb8-9a56-8e1cc466c0c4&metadataPrefix=oai_dc

What am I doing wrong?  Any suggestions?

Thanks,

Carolyn.

Simeon Warner

unread,
Mar 5, 2026, 10:49:42 AM (9 days ago) Mar 5
to OAI-PMH
Hi Carolyn,

It appears that you constructed the OAI-PMH identifier incorrectly. The request should be:


From an OAI perspective the only way to tell what the identifiers are supported is from ListIdentifiers or ListRecords requests. With outside knowledge of the setup of the specific respository you can learn what item information goes into the OAI-PMH identifier (in this case the oai:ruor.uottawa.ca: followed by the handle ###/###).

Cheers,
Simeon

John Salter

unread,
Mar 5, 2026, 10:50:37 AM (9 days ago) Mar 5
to OAI-PMH
Hi Carolyn,
It looks like you're using an internal identifier in that request, rather than the OAI-PMH identifier.

To get an example URL that works, if you go to 'ListIdentifiers' https://ruor.uottawa.ca/server/oai/request?verb=ListIdentifiers&metadataPrefix=oai_dc and follow the 'view details' for an output, you'll get to a working OAI-PMH record page.

Looking at the format of the OAI-PMH identifiers in your system:
and the data available on the 'full' item page for your example item - specifically the 'handle' URI: 
    dc.identifier.uri http://hdl.handle.net/10393/51428
I think this will get to the record you need:

I'm not sure what the two numbers (10393, 51428) relate to, but I guess they're in the record somewhere!

Cheers,
John


From: oai...@googlegroups.com <oai...@googlegroups.com> on behalf of C S <lrelli...@gmail.com>
Sent: Thursday, March 05, 2026 15:02
To: OAI-PMH <oai...@googlegroups.com>
Subject: [OAI-PMH] How to use GetRecord successfully

CAUTION: External Message. Use caution opening links and attachments.

--

---
You received this message because you are subscribed to the Google Groups "OAI-PMH" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oai-pmh+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/oai-pmh/fb0f0cff-e471-4c5e-a907-06fbd9d05b8cn%40googlegroups.com.

C S

unread,
Mar 5, 2026, 11:20:57 AM (9 days ago) Mar 5
to oai...@googlegroups.com
Oh, thanks John!  That works!  Much appreciated!

Reply all
Reply to author
Forward
0 new messages