Bugzilla – Attachment 191850 Details for
Bug 41681
bulkmarcimport.pl reports an incorrect number of MARC records processed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41681: bulkmarcimport.pl reports an incorrect number of MARC records processed
Bug-41681-bulkmarcimportpl-reports-an-incorrect-nu.patch (text/plain), 1.25 KB, created by
Hammat wele
on 2026-01-22 00:01:12 UTC
(
hide
)
Description:
Bug 41681: bulkmarcimport.pl reports an incorrect number of MARC records processed
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2026-01-22 00:01:12 UTC
Size:
1.25 KB
patch
obsolete
>From bdedc2a81144ceca1de6ef19e7bd4a9265b24198 Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Thu, 22 Jan 2026 00:00:39 +0000 >Subject: [PATCH] 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 >--- > misc/migration_tools/bulkmarcimport.pl | 1 - > 1 file changed, 1 deletion(-) > >diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl >index 147aa57118c..baa40e5ffa3 100755 >--- a/misc/migration_tools/bulkmarcimport.pl >+++ b/misc/migration_tools/bulkmarcimport.pl >@@ -329,7 +329,6 @@ $schema->txn_begin; > RECORD: while () { > > my $record; >- $record_number++; > > # get record > eval { $record = $batch->next() }; >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41681
:
191849
| 191850