From cdfdfc6b53fa76f729fa72d8ca8b37d8131c9e05 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 26 Jan 2024 18:35:50 +0000 Subject: [PATCH] Bug 35857: Update authority search pop-up windows with consistent footer markup This patch updates the cataloging authority finder template in order to style submission and close buttons in a fixed footer at the bottom of the pop-up window, with markup consistent with other pop-up windows. Some inline CSS has been removed in favor of styling the "Clear" button like a default button. Unrelated, "No results found" message has been wrapped in a "dialog message" div for consistency's sake. To test, apply the patch and go to Cataloging -> New record. - In the "Add MARC record" form, locate a tag which is linked to an authority type, e.g. 100$a. - Click the icon to the right of the field to trigger the authority search window. - There should be a fixed footer in the pop-up window with buttons for "Submit," "Clear form," and "Close window." Test that each behave correctly. - The search results view should have the same footer. - Clicking "Choose" from the search results should close the window and populate the MARC tag with the correct authority data. Signed-off-by: Caroline Cyr La Rose Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer (cherry picked from commit f49f76d60a7ee7dfd370aca53f76a867aa142f29) Signed-off-by: Fridolin Somers --- .../prog/en/includes/auth-finder-search.inc | 12 ++++++++++-- .../prog/en/modules/authorities/auth_finder.tt | 11 ----------- .../modules/authorities/searchresultlist-auth.tt | 15 +++++---------- 3 files changed, 15 insertions(+), 23 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc index 28775c9977..5b5a8828e8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc @@ -179,6 +179,14 @@ [% END %] -
Cancel -
+ + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt index 69dafe73de..1c6f801f2c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt @@ -8,17 +8,6 @@ [% t("Koha") | html %] [% END %] [% INCLUDE 'doc-head-close.inc' %] - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt index c063817a0f..ee21847f27 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt @@ -19,15 +19,6 @@ .usefor li { list-style-type: none; } -#clear-form { - border:0; - background:none; - color:#004d99; - padding-left:1em; -} -#clear-form:hover { - color:#538200; -} @@ -60,7 +51,11 @@ [% ELSE %] -

No results found

[% END %] + +
+

No results found

+
+ [% END %] [% IF ( result ) %]
-- 2.39.5