@@ -, +, @@ in effect - Go to Administration -> Global system preferences. - Set the OpacAddMastheadLibraryPulldown preference to "Don't add." - Set the SearchMyLibraryFirst preference to "Limit." - Go to the OPAC and confirm that the main search field in the masthead has a filter icon in the background, indicating that searches will be limited. - Hover your mouse over the search field and a tooltip should pop up, "Searching in only" - The message should also be triggered when you click inside the form field. - Change the OpacAddMastheadLibraryPulldown and SearchMyLibraryFirst preferences again and the form should return to its normal behavior. --- koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 8 ++++++++ .../opac-tmpl/bootstrap/en/includes/masthead.inc | 15 +++------------ koha-tmpl/opac-tmpl/bootstrap/js/global.js | 2 ++ 3 files changed, 13 insertions(+), 12 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -455,6 +455,14 @@ th { } } +.form-control-filtered { + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-funnel-fill'%3E%3Cpath d='M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5v-2z' fill='%23acacac'/%3E%3C/svg%3E"); + background-position-x: 6px; + background-position-y: center; + background-repeat: no-repeat; + padding-left: 1.7rem; +} + #numresults { color: #727272; } --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -163,15 +163,6 @@ [% ELSE %]
-
- [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %] - [% IF ( mylibraryfirst ) %] - - - - [% END %] - [% END %] -
+ [% IF ( !Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 && mylibraryfirst ) %] + [% ELSE %] - + [% END # /ms_value %]
--- a/koha-tmpl/opac-tmpl/bootstrap/js/global.js +++ a/koha-tmpl/opac-tmpl/bootstrap/js/global.js @@ -229,4 +229,6 @@ $(document).ready(function(){ content.first().find(':focusable').eq(0).focus(); } }); + + $('[data-toggle="tooltip"]').tooltip(); }); --