Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds two new views to render OAI-PMH results in collection based sets. #65

Merged

Conversation

nigelgbanks
Copy link
Member

@nigelgbanks nigelgbanks commented Feb 14, 2022

Uses the new views as the default going forward for OAI-PMH such that setspec defaults to the collections in which the item belongs.

Work sponsored by DGI.

GitHub Issue: Islandora/documentation#502

What does this Pull Request do?

Creates two new views for OAI-PMH one returns results as sets of collections and the other handles items which do not belong to any collections.

How should this be tested?

After installing create some collections and items.

Note that the way OAI-PMH module uses a cron task to update the cached results. You can visit https://islandora.traefik.me/admin/config/services/rest/oai-pmh/queue to manually rebuild the queue.

Test the rest API endpoint while logged in (for example):

List Sets:
https://islandora.traefik.me/oai/request?verb=ListSets&metadataPrefix=oai_dc

List Records:
https://islandora.traefik.me/oai/request?verb=ListRecords&metadataPrefix=oai_dc

List Records in specific set:
https://islandora.traefik.me/oai/request?verb=ListRecords&metadataPrefix=oai_dc&set=node:4

In all cases setSpec should be set included in each entry and should be the node id for the collection that record belongs to or oai_pmh:collectionless_set for those items which belong to no collections.

Interested parties

@Islandora/8-x-committers

Uses the new views as the default going forward.
Copy link
Contributor

@seth-shaw-unlv seth-shaw-unlv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@seth-shaw-unlv seth-shaw-unlv merged commit 24e19b3 into Islandora:2.x Mar 17, 2022
@nigelgbanks nigelgbanks deleted the issue-502-oai-pmh-collection-sets branch May 12, 2022 11:43
@rosiel rosiel mentioned this pull request Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants