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

Ensures the display of containers only changes the case of first character. #1442

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

randalldfloyd
Copy link
Contributor

@randalldfloyd randalldfloyd commented Dec 6, 2023

Closes #1433

Changes the display of containers, which currently uses .capitalize, to only change the first character but leave subsequent characters unchanged.

@randalldfloyd randalldfloyd marked this pull request as ready for review December 6, 2023 22:25
@randalldfloyd randalldfloyd changed the title Ensures containers display only changes the case of first character. Ensures the display of containers only changes the case of first character. Dec 7, 2023
Copy link
Contributor

@seanaery seanaery left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @randalldfloyd . My apologies -- I see the example customization I had shared before was missing a corresponding rspec test. Can you modify/supplement the spec for #containers here as part of this PR to show different cases in action?:
https://github.com/projectblacklight/arclight/blob/main/spec/models/concerns/arclight/solr_document_spec.rb#L90-L96

@randalldfloyd
Copy link
Contributor Author

@seanaery Thanks! Yes I also got to thinking that I should add a spec for it after I took the draft status off of it.

@seanaery seanaery merged commit 2c7f1d9 into main Dec 7, 2023
4 checks passed
@seanaery seanaery deleted the 1433-container_case_fix branch December 7, 2023 17:13
bonniegee pushed a commit that referenced this pull request Dec 13, 2023
…acter. (#1442)

* Ensures containers display only changes case of first character.
* Adjusting #containers in SolrDocument spec to test capitalization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants