From 1b0331086702af9f1b468d7ca91bb4dede4fa50e Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 6 Sep 2019 15:48:09 +0200 Subject: [PATCH] Bug 23562: Only one authorities search in header In authorities module, header contains 4 authorities search, from "main heading $a" to "entire record". This is more a search option than really different searches. I propose to merge them into only one with a select for where to search. This allow to always keep current search options. This patch also adds title arguemnt on comboboxes to say what the represent. Also changes submit button text with "Search" like in many places. Since there is a new combobox, a CSS rule need to be added to have an input text of 20em instead of 30em. Test plan : 1) Go to Authorities module 2) Choose a value different from fist in all comboboxes of header 3) Enter a text in input 4) Click on submit 5) Check that all values and text are kept 6) Perform search with each value of "Where" combobox and check results are OK --- .../prog/css/src/staff-global.scss | 4 + .../prog/en/includes/authorities-search.inc | 191 ++---------------- 2 files changed, 24 insertions(+), 171 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index 09dc82b52d..96b4f020de 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1297,6 +1297,10 @@ div { font-size: 1.3em; width: 30em; } + + #authorities_search .head-searchbox { + width: 20em; + } } #reserves, diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc index 3fa669a60d..3dc701a106 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc @@ -2,12 +2,12 @@

[% LibraryName | html %]

-- 2.17.1