From 879442600084d5eb2dea17c24cb0bdff5028fc54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9raud=20Frappier?= Date: Thu, 17 Nov 2022 16:11:11 -0500 Subject: [PATCH] Bug 32255 : Resolve "Cannot use file upload in batch record modification" When using the batch record modification tool with a file of biblionumbers, nothing happens. When we click 'Continue' the file is somehow removed before continuing. To test: 1. Get a file of biblionumbers (if you already have a file, proceed to step 2) 1.1. Go to Reports 1.2. Click on 'Create from SQL' 1.3. Enter a report name (e.g. biblionumbers) 1.4. Enter the following SQL query SELECT biblionumber FROM biblio LIMIT 100 1.5. Click 'Save report' 1.6. Click 'Run report' 1.7. Click 'Download' > 'Tab separated text' 2. Create a MARC modification template (if you already have a MARC modification template, proceed to step 3) 2.1. Go to Cataloging > MARC modification template 2.2. Click 'New template' 2.3. Enter a template name (e.g. Add note) 2.4. Click 'Submit' 2.5. Click 'New action' 2.6. Choose - Add new - Field 500 a - with value Note 2.7. Click 'Add action' 3. Batch modify records 3.1. Go to Cataloging > Batch record modification 3.2. In the 'Upload a file tab', choose the biblionumber file --> Note that the name of the file appears next to the Choose button 3.3. In 'Template', select the MARC modification template 3.4. Click 'Continue' --> The name of the file disappears next to the Choose button and goes back to 'No file chosen' --> Message 'No records were modified 4. Apply path 4.1. Procede step 3. 4.2. See that we can see the list now --- .../prog/en/modules/tools/batch_record_modification.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 aaf1ab9f66..95492d12d0 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 @@ -354,7 +354,7 @@ }); $("#record_ids_selection").on("submit", function(e) { - var tab = $(this).find('.ui-tabs-active:first a').attr('href'); + var tab = $(this).find('#batch_mod_form li.active:first a').attr('href'); if (tab == '#uploadfile_tab') { $("#shelf_number").empty(''); $("#recordnumber_list").val(''); -- 2.34.1