From 1b0ce772a708a1a9221862e52a237046d03f3c93 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 Signed-off-by: Martin Renvoize --- .../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 6a4f1e6c3f..c027c7c468 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1287,6 +1287,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.20.1