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

Date issued is no longer a required field #6047

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Date issued is no longer a required field #6047

merged 1 commit into from
Sep 24, 2024

Conversation

cjcolvar
Copy link
Member

Resolves #6021

Comment on lines 104 to 105
result = media_object.date_issued
result += " (Creation date: #{media_object.date_created})" if media_object.date_created.present?
Copy link
Contributor

@masaball masaball Sep 23, 2024

Choose a reason for hiding this comment

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

I think this does need to be changed. If someone provides a creation date but not an issued date then this method will raise an exception as written. That may be edge case enough (especially since it is new behavior) to not block this PR, but we should at least create a follow-up ticket to rework this.

Copy link
Member Author

Choose a reason for hiding this comment

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

@joncameron What do you think about un-combining the display date so it is two separate metadata values in the IIIF manifest?

"Publication date: #{media_object.date_issued}" if media_object.date_issued.present?
"Creation date: #{media_object.date_created}" if media_object.date_created.present?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would love it—that makes a lot more sense and especially with this change. I created #6050 for changing the manifest generation to separate the date fields.

Copy link
Contributor

Choose a reason for hiding this comment

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

Since a new issue has been created, I'll go ahead and approve this PR 👍

@cjcolvar cjcolvar merged commit 6328acc into develop Sep 24, 2024
2 checks passed
@cjcolvar cjcolvar deleted the missing_dates branch September 24, 2024 20:36
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.

3 participants