From 00b2dea7e13c0c0b47f883743d82cc57b9c8eeb8 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Mon, 20 Sep 2021 12:33:05 -1000 Subject: [PATCH] Bug 29066: Remove text in OPAC search form and use Font Awesome icons In modern front-end websites, first think you see in header region is an large input text with a search icon. No need to say it is a search form. We still tell it in 'title' attribut for accessibility. This patch removes 'Search' text. If 'my library first' feature is enabled, shows a text in title of a question mark icon. In submit button, replaces 'Go' with a seach icon and add title 'Search'. Test plan : 1) 1.1) Set system preferences : OpacAddMastheadLibraryPulldown to 'Add' SearchMyLibraryFirst to 'Don't limit' 1.2) Go to OPAC main page 1.3) You don't see 'Search' anymore 1.4) You see in submit button an icon 1.5) Move mouse over submit button to see tooltip text 'Search' 2) 2.1) Set system preferences : OpacAddMastheadLibraryPulldown to 'Don't add' SearchMyLibraryFirst to 'Limit' 2.2) Go to OPAC main page 2.3) Log in 2.4) You don't see text 'Search (in ) only' 2.5) You see a question mark icon 2.6) Move mouse over submit button to see tooltip text 'Search (in ) only' Signed-off-by: Samu Heiskanen Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall --- .../bootstrap/en/includes/masthead.inc | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 33f0e487a1..ecea32250b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -164,13 +164,13 @@
- + [% END %]
-
- -
[% ELSE %] [% IF ( opac_limit_override ) %] [% IF ( opac_search_limit ) %] @@ -279,10 +276,14 @@ [% END %] [% END # / opac_limit_override %] -
- -
[% END # / OpacAddMastheadLibraryPulldown %] + +
+ +
+
-- 2.30.2