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

🎁 i740 - local controlled vocabulary properties should display dropdown #790

Merged
merged 5 commits into from
Sep 15, 2023

Conversation

ShanaLMoore
Copy link
Contributor

On the advanced search page, the controlled vocab properties currently allows the user to input whatever they want. Instead, the user should have to select an option from a dropdown.

Story

Refs #740

Expected Behavior Before Changes

controlled vocab fields were inputs. the user could type in whatever they want.

Expected Behavior After Changes

the user must select an option provided by their local controlled vocab configuration.

image

Screenshots / Video

DEMO
controlled-vocab.mp4

Notes

… of options

On the advanced search page, the controlled vocab properties currently allows the user to input whatever they want. Instead, the user should have to select an option from a dropdown.
In this commit the internal logic has been extracted into smaller methods.
In this commit we rename method subauthority? to local_authority?, moved methods from the blacklight_helper_behavior.rb to the advanced_search_helper.rb, and wrote specs.
The yard doc comments explain the purpose and function of each method, as well as the expected types of the parameters and return values. Note that the fetch_service_for method was also marked as private, as it is an internal helper method not intended for external use.
@ShanaLMoore ShanaLMoore changed the title 🚧 WIP: local controlled vocabulary properties should display dropdown 🎁 i740 - local controlled vocabulary properties should display dropdown Sep 15, 2023
@ShanaLMoore ShanaLMoore marked this pull request as ready for review September 15, 2023 15:33
@ShanaLMoore ShanaLMoore merged commit 33454fd into main Sep 15, 2023
7 checks passed
@ShanaLMoore ShanaLMoore deleted the i740-advanced-search-controlled-vocab branch September 15, 2023 19:38
jeremyf added a commit to samvera/hyku that referenced this pull request Dec 19, 2023
jeremyf added a commit to samvera/hyku that referenced this pull request Dec 19, 2023
jeremyf pushed a commit to samvera/hyku that referenced this pull request Dec 19, 2023
jeremyf added a commit to samvera/hyku that referenced this pull request Dec 19, 2023
jeremyf added a commit to samvera/hyku that referenced this pull request Dec 19, 2023
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