We are incrementing the record_number counter twice for every record
Created attachment 188705 [details] [review] Bug 41147: Don't double count records This patch prevents double counting records as we process them To test: 1 - Export a single record from Koha in marcxml format 2 - perl misc/migration_tools/bulkmarcimport.pl -b -v -m MARCXML --file record.marcxml 3 - Note it says "3 MARC records processed" 4 - Apply patch 5 - Repeat 6 - 1 record processed