From 7d2cb42dceeeb004ab7447fd6beccab5fac37e23 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 1 Jun 2017 12:19:46 +0000 Subject: [PATCH] Bug 19461: Add floating toolbar to staff client catalog search results This patch adds a floating toolbar to the staff client search results page, making all the various controls visible as the user scrolls down. To test, apply the patch and perform a catalog search in the staff client. - The toolbar should "stick" to the top of the page as you scroll down. - Controls in the toolbar should all work correctly: - Select all / Clear all - Highlight / Unhighlight - Add to Cart - Cart notifications should be positioned correctly - Add to list (and all list menu controls) - Place hold (including controls which are visible when a "Search to hold" has been initiated - Z39.50/SRU search - Sort Signed-off-by: Mark Tompsett Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/css/staff-global.css | 18 + .../prog/en/modules/catalogue/results.tt | 310 ++++++++++++------ koha-tmpl/intranet-tmpl/prog/js/basket.js | 3 +- 3 files changed, 224 insertions(+), 107 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/css/staff-global.css index 3a26b0d4fb..cf90142b6c 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/css/staff-global.css @@ -1565,6 +1565,18 @@ li.email { padding : 5px 25em 0 0; } +#searchheader .dropdown-menu > li > a { + padding: 2px 10px; +} + +#searchheader .dropdown-menu > li > a { + padding: 2px 10px; +} + +#searchheader .dropdown-header { + padding: 4px 5px +} + #search-facets ul { margin : 0; padding : .3em; @@ -2499,6 +2511,12 @@ a.dropdown-toggle { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0); } +.dropdown-header { + border-top: 1px solid #EEE; + color: #000; + font-weight: bold; +} + a.disabled { color : #999999; } 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 29b70a4f62..b20150efc5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -19,6 +19,7 @@ +