]> git.koha-community.org Git - koha.git/commit
Bug 20207: Don't show search options when no suggestions show
authorKatrin Fischer <katrin.fischer.83@web.de>
Sun, 13 Nov 2022 14:06:42 +0000 (14:06 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 14 Nov 2022 12:21:14 +0000 (09:21 -0300)
commit499ae7077dda65db317c7b575c49b104928e8915
tree3a3a3f1ca66987cdeb260a26a2ff141ead54bf0e
parent4e7b570fdbafbeddca8f0ee8520a48456eb74607
Bug 20207: Don't show search options when no suggestions show

When you are not logged in and OPACViewOthersSuggestions is
deactivated, you don't see any suggestions.

When we see no suggestions, we should also not show the option
to serach in suggestions.

To test:
* as a logged in user and logged out, try various combinations of:
  * OPACViewOthersSuggestions
  * AnonSuggestions
* Verify display matches expectations (new button, shown suggestions,
  search input)

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt