[Koha-bugs] [Bug 11936] Different log messages for biblio insert and item insert in bulkmarcimport.pl log

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 22 10:27:38 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11936

--- Comment #2 from Magnus Enger <magnus at libriotech.no> ---
This is the code that needs to be changed: 

 527                 eval { ( $itemnumbers_ref, $more_errors ) =
AddItemBatchFromMarc( $record, $biblionumber, $biblioitemnumber, '' ); };
 528                 if ( $@ ) {
 529                     warn "ERROR: Adding items to bib $biblionumber failed:
$@\n";
 530                     printlog({id=>$id||$originalid||$biblionumber,
op=>"insertitem",status=>"ERROR"}) if ($logfile);
 531                     # if we failed because of an exception, assume that
 532                     # the MARC columns in biblioitems were not set.
 533                     ModBiblioMarc( $record, $biblionumber, $framework );
 534                     next RECORD;
 535                 } else {
 536                     printlog({id=>$id||$originalid||$biblionumber,
op=>"insert",status=>"ok"}) if ($logfile);
 537                 }

It would be clearer if line 536 had something like op=>"insert item"

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list