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

Add grouped filter to accommodate null external uris in model. #128

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

rosiel
Copy link
Contributor

@rosiel rosiel commented Feb 7, 2024

Slack conversations:

It was found that the OAI view of MODS breaks (shows <error code="idDoesNotExist">The value of the identifier argument is unknown or illegal in this repository.</error>) if the object's model has no external uri. This can happen if creating custom models.

The view clearly was not meant to exclude objects with null external URI in their Model. After testing, it seems that a views filter of "value is not equal to some-string" also excludes rows where the value does not exist.

This PR adds a grouped filter so it tests if Model's external URI (is null or is not equal to http://purl.org/dc/dcmitype/Collection).
grouped-filter

Copy link
Contributor

@aOelschlager aOelschlager left a comment

Choose a reason for hiding this comment

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

Looks good!

@aOelschlager aOelschlager merged commit 9d83666 into main Feb 7, 2024
4 checks passed
@rosiel rosiel deleted the oai-view-grouped-filter branch February 7, 2024 17:26
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