Koha/misc/cronjobs
Admin User Koha ccf4061324 Bug 12995 - script update_totalissues.pl stops on corrupted record
When running update_totalissues.pl cronjob, it will stop on a corrupted
record.

This patch changes UpdateTotalIssues so that it return 1 if processing
record has succeded. Also, if mapping with biblioitems.totalissues does
not exist, the method has nothing to do so it stops and returns 1.

When processing a corrupted record, script now alerts about the error on
this biblionumber (if script is verbose) and process next record.
A total number of records with error will be printed at the end of the
script.

Test plan :
- Create a dabase with a few biblios and some issues
- Modify first biblio record (use direct sql update) : set empty value
  in biblioitems.marcxml
- Launch script : misc/cronjobs/update_totalissues.pl --use-stats --commit=1000 -v

=> Without patch : the script stops at first record
=> With patch : the script prints error for first record and processes
   all records

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
I was able to confirm the problem before the patch and successfully
follow the test plan.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
2014-10-31 14:14:24 -03:00
..
holds
rss Bug 9000: Followup to fix tabs & closing TT directive 2014-07-29 16:25:56 -03:00
social_data
thirdparty
advance_notices.pl Bug 12396 - MTT FIX: Due notices (DUEDGST) are multiplicated and all of them are sent to everybody who is about to receive ODUEDGST. 2014-06-15 11:14:45 -03:00
automatic_renewals.pl Bug 11577: Add an automatic renewal cronjob 2014-09-17 19:23:23 -03:00
backup.sh
batch_anonymise.pl
build_browser_and_cloud.pl
cart_to_shelf.pl
check-url-quick.pl
check-url.pl
cleanup_database.pl
cloud-kw.pl
cloud-sample.conf
CONFIGURE.gmail
create_koc_db.pl
crontab.example Bug 11577: Add an automatic renewal cronjob 2014-09-17 19:23:23 -03:00
delete_expired_opac_registrations.pl Bug 11945: The script should die if the pref are not filled 2014-10-24 10:02:01 -03:00
delete_patrons.pl
delete_unverified_opac_registrations.pl
fines.pl
gather_print_notices.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
import_webservice_batch.pl
j2a.pl
longoverdue.pl
MARC21_parse_test.pl
overdue_notices.pl Bug 8687 - Overdues: Add utf-8 support to HTML and additional fields to CSV output 2014-10-19 11:38:02 -03:00
printoverdues.sh
process_message_queue.pl
purge_suggestions.pl
runreport.pl Bug 9530 Making changes to misc/cronjobs/runreport.pl 2014-10-27 10:38:47 -03:00
serialsUpdate.pl
services_throttle.pl
share_usage_with_koha_community.pl Bug 11926 [Follow-up] HEA - Render community koha statistic usages 2014-10-22 15:17:23 -03:00
staticfines.pl
update_totalissues.pl Bug 12995 - script update_totalissues.pl stops on corrupted record 2014-10-31 14:14:24 -03:00