Bug 41681 - bulkmarcimport.pl reports an incorrect number of MARC records processed
Summary: bulkmarcimport.pl reports an incorrect number of MARC records processed
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Hammat wele
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-21 23:53 UTC by Hammat wele
Modified: 2026-01-22 13:19 UTC (History)
3 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
A marc file containing 5 records (1.19 KB, text/plain)
2026-01-21 23:53 UTC, Hammat wele
Details
Bug 41681: bulkmarcimport.pl reports an incorrect number of MARC records processed (1.25 KB, patch)
2026-01-22 00:01 UTC, Hammat wele
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Hammat wele 2026-01-21 23:53:58 UTC
Created attachment 191849 [details]
A marc file containing 5 records

When running the script bulkmarcimport.pl, the number of MARC records reported at the end of the execution does not match the actual number of records processed from the input file.

To reproduce:

1. Download the joined MARC file containing 5 records.
2. Run the import command:
   ./misc/migration_tools/bulkmarcimport.pl -b --file=marc_file.mrc
3. Check the final script report
   ==> 11 MARC records done in 0.566349983215332 seconds
       The reported number is incorrect
Comment 1 Hammat wele 2026-01-22 00:01:12 UTC
Created attachment 191850 [details] [review]
Bug 41681: bulkmarcimport.pl reports an incorrect number of MARC records processed

When running the script bulkmarcimport.pl, the number of MARC records reported at the end of the execution does not match the actual number of records processed from the input file.

To test:

1. Download the joined MARC file containing 5 records.
2. Run the import command:
   ./misc/migration_tools/bulkmarcimport.pl -b --file=marc_file.mrc
3. Check the final script report
   ==> 11 MARC records done in 0.566349983215332 seconds
   Expected output should show 5 records
4. Apply the patch
5. Repeat step 2, 3
   ==> The correct number is shown