Bug 34587: Add try catch blocks to object creation
authorMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Wed, 20 Sep 2023 13:13:12 +0000 (13:13 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 31 Oct 2023 19:46:22 +0000 (16:46 -0300)
commitd4afc38c7c64851fe8f5982dce46c056ca355c45
tree99d07694fece4a385565ac439968c2c49dfa88cb
parent979ff589d9c617ceade865797e6cbc5005c6f0f5
Bug 34587: Add try catch blocks to object creation

Currently a harvest fails completely if a single title fails to harvest. Rather than failing the entire job, this patch introduces try catch blocks to stop this and allow the job to continue. Failed imports are recorded and displayed in the background job UI on job completion

Signed-off-by: Jessica Zairo <jzairo@bywatersolutions.com>
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/ERM/EUsage/CounterFile.pm
koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/erm_sushi_harvester.inc