Adds two new views to render OAI-PMH results in collection based sets. #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 oroai_pmh:collectionless_set
for those items which belong to no collections.Interested parties
@Islandora/8-x-committers