|
Lines 169-180
sub process_query {
Link Here
|
| 169 |
print "Processing bib $biblionumber ($totalissues issues)\n" |
169 |
print "Processing bib $biblionumber ($totalissues issues)\n" |
| 170 |
if $verbose; |
170 |
if $verbose; |
| 171 |
if ( not $test_only ) { |
171 |
if ( not $test_only ) { |
| 172 |
if ( $incremental && $totalissues > 0 ) { |
172 |
eval { |
| 173 |
UpdateTotalIssues( $biblionumber, $totalissues ); |
173 |
if ( $incremental && $totalissues > 0 ) |
| 174 |
} |
174 |
{ |
| 175 |
else { |
175 |
UpdateTotalIssues( $biblionumber, $totalissues ); |
| 176 |
UpdateTotalIssues( $biblionumber, 0, $totalissues ); |
176 |
} |
| 177 |
} |
177 |
else { |
|
|
178 |
UpdateTotalIssues( $biblionumber, 0, $totalissues ); |
| 179 |
} |
| 180 |
}; |
| 181 |
print "Unable to edit bib $biblionumber : $@\n" if ( $verbose && $@ ); |
| 178 |
} |
182 |
} |
| 179 |
if ( not $test_only and ( $num_bibs_processed % $commit ) == 0 ) { |
183 |
if ( not $test_only and ( $num_bibs_processed % $commit ) == 0 ) { |
| 180 |
print_progress_and_commit($num_bibs_processed); |
184 |
print_progress_and_commit($num_bibs_processed); |
| 181 |
- |
|
|