From a6117ca9958ad937d602cb25adec2fe2d9e25a4f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 3 Feb 2021 15:39:26 +0000 Subject: [PATCH] Bug 27605: Add floating toolbar to patron search page This patch modifies the patron search results page so that the toolbar with results-related controls "floats" when the user scrolls down. This gives access to the controls for adding patrons to a list and for merging patrons. Other templates are modified to incorporate a change to the CSS which changes "#searchheader" to ".searchheader," enabling multiple instances of a
styled with the .searchheader class. To test, apply the patch and rebuild the staff interface CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client). - Go to Patrons in the staff interface. - Perform a patron search which will return many results. - Scroll down the page far enough to trigger the floating toolbar. - Confirm that the toolbar is positioned correctly when paging through results. - Confirm that the patron list and merge controls still work correctly. - Confirm that other pages which used the "#searchheader" id are still styled correctly: - Catalog search results - List contents - Patron list contents - Add orders from MARC file Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/css/src/staff-global.scss | 2 +- .../prog/en/modules/acqui/addorderiso2709.tt | 2 +- .../prog/en/modules/catalogue/results.tt | 2 +- .../prog/en/modules/members/member.tt | 15 +++++++++++---- .../prog/en/modules/patron_lists/list.tt | 2 +- .../prog/en/modules/virtualshelves/shelves.tt | 2 +- 6 files changed, 16 insertions(+), 9 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 e250462415..84766fd401 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -2085,7 +2085,7 @@ li { } } -#searchheader { +.searchheader { background-color: #E6F0F2; border: 1px solid #B9D8D9; border-radius: 5px 5px 0 0; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt index f27ebfa848..c730d3e1b2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -46,7 +46,7 @@
-
+
Select all | diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 434f3d0f55..495b7d0eaf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -66,7 +66,7 @@ [% total | html %] result(s) found [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF limit_desc %] with limit(s): '[% limit_desc | html %]'[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %]. -
+
Select all | diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt index 962d7cc3ae..c99294292e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -46,11 +46,9 @@ [% END %]
-
-

Patrons found for: [% IF searchmember %] for '[% searchmember | html %]'[% END %]

-
+

Patrons found for: [% IF searchmember %] for '[% searchmember | html %]'[% END %]

[% IF CAN_user_tools_manage_patron_lists || CAN_user_borrowers_edit_borrowers %] -
+
Select all | @@ -194,6 +192,7 @@ [% INCLUDE 'datatables.inc' %] [% INCLUDE 'columns_settings.inc' %] [% INCLUDE 'str/members-menu.inc' %] + [% Asset.js("lib/hc-sticky.js") | $raw %] [% Asset.js("js/members-menu.js") | $raw %]