From 6b8fe2008163d21bef5678af47d5aa6d01925c44 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 11 May 2023 14:35:23 +0200 Subject: [PATCH] Bug 33624: Hide the "list" tab if authority is selected The "Select a list of records" should only be available for biblio records. But if the page is accessed using the back button of the browser it will be displayed for authorities as well. Test plan: - Make sure you have at least one template for MARC Modification - Also make sure you have at least one list of biblio records - navigate to Cataloging -> Batch record modification - Check the "Authorities" radio button - Select your template and continue - No records were modified -> use your browser's Back button to go back one page - The "Authorities" radio button should still be selected => Without this patch you see the tab "Select a list of records" => With this patch applied it's hidden when the page is loaded --- .../tools/batch_record_modification.tt | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt index a0b63de3316..de54b305686 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt @@ -285,16 +285,21 @@ [% INCLUDE 'datatables.inc' %] [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]