@@ -, +, @@ on corrupted record - Create a dabase with a few biblios and some issues - Modify first biblio record (use direct sql update) : set a wrong value in biblioitems.marcxml - Lauch script : misc/cronjobs/update_totalissues.pl --use-stats --commit=1000 -v --- misc/cronjobs/update_totalissues.pl | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) --- a/misc/cronjobs/update_totalissues.pl +++ a/misc/cronjobs/update_totalissues.pl @@ -169,12 +169,16 @@ sub process_query { print "Processing bib $biblionumber ($totalissues issues)\n" if $verbose; if ( not $test_only ) { - if ( $incremental && $totalissues > 0 ) { - UpdateTotalIssues( $biblionumber, $totalissues ); - } - else { - UpdateTotalIssues( $biblionumber, 0, $totalissues ); - } + eval { + if ( $incremental && $totalissues > 0 ) + { + UpdateTotalIssues( $biblionumber, $totalissues ); + } + else { + UpdateTotalIssues( $biblionumber, 0, $totalissues ); + } + }; + print "Unable to edit bib $biblionumber : $@\n" if ( $verbose && $@ ); } if ( not $test_only and ( $num_bibs_processed % $commit ) == 0 ) { print_progress_and_commit($num_bibs_processed); --