OAI-PMH Endpoints Updates in ArchivesSpace Version 4^

In the latest version of ArchivesSpace, the OAI gem was upgraded to version v1.0.0. That means the OAI identifiers are now being generated/expected with a colon between namespace and prefix, rather than slash.

The URl should be updated to:
https://test.archivesspace/oai?verb=Identify

So oai URIs that used to look like:

/oai?verb=GetRecord&identifier=oai:archivesspace/#{@test_resource_record}&metadataPrefix=oai_dcterms

now become:

/oai?verb=GetRecord&identifier=oai:archivesspace:{Resource ID}&metadataPrefix=oai_dcterms

This is now in conformance with OAI-PMH guidelines.

This change also means that the base URL no longer works if there is a slash after the /oai

So while this URL may have worked in the past: https://test.archivesspace.org/oai/?verb=ListSets

It now should be: https://test.archivesspace.org/oai?verb=ListSets

Here are some examples of URLs that do work now on the latest version of ArchivesSpace:

https://test.archivesspace.org/oai?verb=ListRecords&metadataPrefix=oai_dc

https://test.archivesspace.org/oai?verb=GetRecord&identifier=oai:archivesspace:/repositories/4/resources/40&metadataPrefix=oai_dcterms

https://test.archivesspace.org/oai?verb=GetRecord&identifier=oai:archivesspace:/repositories/2/archival_objects/1&metadataPrefix=oai_dcterms

https://test.archivesspace.org/oai?verb=Identify

https://test.archivesspace.org/oai?verb=ListSets

https://test.archivesspace.org/oai?verb=ListMetadataFormats

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk