[Bug 42782] New: bulkmarkimport does not increment correctly
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42782 Bug ID: 42782 Summary: bulkmarkimport does not increment correctly Initiative type: --- Sponsorship --- status: Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: jonathan.druart@gmail.com QA Contact: testopia@bugs.koha-community.org Bug 37020 comment 74 Jonathan Druart record_number is still incremented twice, is this because of a conflict fix problem? Bug 37020 comment 74 Jonathan Druart Current version in main: 329 RECORD: while () { 330 331 my $record; 332 $record_number++; 333 334 # get record 335 eval { $record = $batch->next() }; 336 if ($@) { 337 print "Bad MARC record $record_number: $@ skipped\n"; 338 339 # FIXME - because MARC::Batch->next() combines grabbing the next 340 # blob and parsing it into one operation, a correctable condition 341 # such as a MARC-8 record claiming that it's UTF-8 can't be recovered 342 # from because we don't have access to the original blob. Note 343 # that the staging import can deal with this condition (via 344 # C4::Charset::MarcToUTF8Record) because it doesn't use MARC::Batch. 345 next; 346 } 347 if ($record) { 348 $record_number++; 349 This is wrong. bug 37020 comment 75 Alexander Wagner If I get the code right, the number of records ingested is still doubled. AFAIS `$record_number++;` is called twice within the loop. Jan mentioned that he ingested 1 record and got notified about 3, I also obeserved a result of 5 while I had only two (valid) records in the import file. Might be a minor issue compared to all the rest but can be quite confusing if your catalogue migration turns out to hold way more records that you expected. (Koha 25.05.00 ga) -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42782 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |37020 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37020 [Bug 37020] bulkmarcimport gets killed when inserting large files -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42782 Jan Kissig <bibliothek@th-wildau.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bibliothek@th-wildau.de --- Comment #1 from Jan Kissig <bibliothek@th-wildau.de> --- This should already been fixed in 41681 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42782 Jan Kissig <bibliothek@th-wildau.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #2 from Jan Kissig <bibliothek@th-wildau.de> --- *** This bug has been marked as a duplicate of bug 41681 *** -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org