From b5174a9217dc96a7431b7063f8225551e06addc6 Mon Sep 17 00:00:00 2001 From: =?utf8?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 Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi (cherry picked from commit bc974ef361926209b417502d86dbbacdb371f35a) Signed-off-by: Jacob O'Mara (cherry picked from commit e99f339be5a2b5a192b52a25e4240a8ea605f5d9) Signed-off-by: Lucas Gass --- .../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 7710466e8f..052a0a2d78 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 @@ -343,7 +343,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.39.5