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

[WIP] move alternative title to core metadata to avoid nil error #4354

Closed
wants to merge 1 commit into from

Conversation

elrayle
Copy link
Contributor

@elrayle elrayle commented Jun 3, 2020

Description

Fix bug where @attributes["alternative_title"] << value throws an exception because @attributes["alternative_title"] is nil. This happens when a model does not include basic metadata causing alternative_title to not be defined.

Related work:

@samvera/hyrax-code-reviewers

### Description

Fix bug where `@attributes["alternative_title"] << value` throws an exception because `@attributes["alternative_title"]` is nil.  This happens when a model does not include basic metadata causing alternative_title to not be defined.

### Related work:

* Issue #4318 - reconsidering impact of PR #3554
* PR #3554 - separates multiple titles into title and alternative titles
@jeremyf
Copy link
Contributor

jeremyf commented Jun 3, 2020

Thank you for putting this step forward and bringing this for conversation and clarification. Based on Samvera Tech discussion, we view #4318 as a blocker, and will close this out.

The Reforms style should simplify this behavior (pre-populators and transformations are natively baked in).

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