From 45f2e2e55673cb7c1b132676c0e3abbc51db9046 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 18 Apr 2023 16:51:04 +0000 Subject: [PATCH] Bug 33560: Batch edit link broken if subscriptions are selected using "select all" link This patch revises the process by which the serials search results page redirects to the batch edit page based on which checkboxes are checked. To test, apply the patch and go to serials. You should have some subscriptions which are open and some which are closed. - Perform a search which will return at least one result under each tab (Open and Closed). - Checking one or more checkboxes should activate the "Edit selected serials" link, which should work correctly to redirect you to the batch edit page. - Unchecking all the checkboxes should make the edit link disappear. - Check that the "Select all" and "Clear all" links work the same way manually checking checkboxes does. - Confirm that controls under each tab work correctly just for the results under that tab. Signed-off-by: David Nind --- .../prog/en/modules/serials/serials-search.tt | 73 ++++++++++--------- 1 file changed, 40 insertions(+), 33 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt index 8e008c5328..8b3c76c47b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt @@ -65,16 +65,16 @@ Select all | Clear all - + | Actions: - Edit selected serials + Edit selected serials [% END %] - + @@ -96,7 +96,7 @@
ISSN Title Notes
[% UNLESS subscription.cannotedit %] - + [% ELSE %] [% END %] @@ -322,30 +322,30 @@ [% Asset.js("js/serials-toolbar.js") | $raw %]