From 1e03555d4ca523bd9e4cb4e5ca265acf26e49800 Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 17 Jun 2020 04:34:02 +0000 Subject: [PATCH] Bug 25777: Disable misleading datatables table information display z3950 This patch disables the table information display on z3950_search.pl, since it only includes search result counts for that page, which is misleading to end users. To test: 1) Do not apply the patch 2) Do a Z39.50 search from cataloguing for "test" against Library of Congress. 3) Note the bottom of the page says "Show 1 to 20 of 20" and "Showing page 1 of 501" 4) Do a Z39.50 search from Acquisitions for "test" against Library of Congress (Acquisitions -> Vendor -> Basket -> Add to basket -> From external source). 5) Apply the patch and restart Plack 6) Repeat Step #2 7) Note the bottom of the page now only says "Showing page 1 of 501" 8) Note the search bar is gone 9) Repeat step #4 10) Note the bottom of the page now only says "Showing page 1 of 501" 11) Note the search bar is gone Squashed and mixed authorship added below Co-authored-by: Owen Leonard Co-authored-by: Martin Renvoize Signed-off-by: Owen Leonard Signed-off-by: David Cook Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart (cherry picked from commit 2a2a04a641289f6043971dd98037e02fbb30f64f) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt | 4 +++- .../intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt index e8dc607e1a..2f5c82f8b6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt @@ -240,7 +240,9 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : { "aTargets": [ 1 ], "sType": "nsb-nse" }, ], "aaSorting": [[ 1, "asc" ]], - "bPaginate": false + "bPaginate": false, + "searching": false, + "bInfo":false })); }); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt index 8649164d41..35fb5cb4f9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt @@ -248,7 +248,9 @@ { "aTargets": [ 1 ], "sType": "nsb-nse" }, ], "aaSorting": [[ 1, "asc" ]], - "bPaginate": false + "bPaginate": false, + "searching": false, + "bInfo":false }, columns_settings ); }); -- 2.39.5