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

Support all PCDM terms in Hyrax::FileMetadata::Use #6499

Merged
merged 2 commits into from
Dec 5, 2023
Merged

Conversation

marrus-sh
Copy link
Collaborator

Our Hyrax application makes use of pcdmuse:PreservationFile and pcdmuse:IntermediateFile, and is currently overriding Hyrax to provide these constants. But the list of possible PCDM use terms is short and well known, and there’s no reason why Hyrax couldn’t just provide all of them to begin with.

I’ve also taken the liberty of changing references to Hyrax::FileMetadata::Use::THUMBNAIL to be Hyrax::FileMetadata::Use::THUMBNAIL_IMAGE, since that better matches the naming convention of the other terms. Hyrax::FileMetadata::Use::THUMBNAIL is still supported, but probably should be discouraged.

Downstream Hyrax applications might use any of these, so for convenience
Hyrax ought to provide them.

Not included is `pcdmuse:PreservationMasterFile`, which is deprecated in
favour of `pcdmuse:PreservationFile`.

`Use::THUMBNAIL` has been aliased to `Use::THUMBNAIL_IMAGE`, which
better matches the naming pattern of the other terms.
This will make it easier to deprecate `Use::THUMBNAIL` should we desire
at a later date.
Copy link
Contributor

@dlpierce dlpierce left a comment

Choose a reason for hiding this comment

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

This is good! Thanks for filling in the gap.

@dlpierce dlpierce merged commit 2314c7c into main Dec 5, 2023
4 checks passed
@dlpierce dlpierce deleted the pcdm_use_mas branch December 5, 2023 16:38
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