From ee73432b441f2e60e291be3295bd6e6fa5f01e06 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 Content-Type: text/plain; charset=utf-8 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 Signed-off-by: Phil Ringnalda Signed-off-by: Marcel de Rooy --- .../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 a0b63de331..de54b30568 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 %]