-
Notifications
You must be signed in to change notification settings - Fork 421
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
Hide search text field when number of facet values is less than the maximum #3061
Conversation
…acet values does not exceed the maximum number of facet values shown
…acet values does not exceed the maximum number of facet values shown
…acet values does not exceed the maximum number of facet values shown
Thanks @VictorHugoDuranS! This change seems simple and logical to me. I tested it on DSpace 7.6.1 and it works as expected. I think the new behavior is better for usability. Before, the search box is shown even when there is only one value: After, the box is hidden: |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin main
git worktree add -d .worktree/backport-3061-to-main origin/main
cd .worktree/backport-3061-to-main
git switch --create backport-3061-to-main
git cherry-pick -x ea567d8b5a1471f4ecb97051e9d4028676adae6d f9809dc1f00a824d26f0a4b335dac9f0551bffb8 bc03856a41d5286e874772f978b3be76ec817a60 |
@VictorHugoDuranS the automatic port to the |
I've ported this to |
Hi @tdonohue, I'm @jtimal partner. We have been working on this issue and we will send you the PR.
References
Description
Validation for hide search text field in the filter section if the number of facet values does not exceed the maximum number of facet values shown
Instructions for Reviewers
The change is applied in the filters: Subject, Item Type and Authors
For replicate, you realize a general search and select a filter with few results or search directament a term with few filter
For example, this is the view general
this is the same view with a filter wit few results:
List of changes in this PR:
Checklist
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.