]> git.koha-community.org Git - koha.git/commit
Bug 35141: Prevent link_bibs_to_authorities from dying on invalid metadata
authorNick Clemens <nick@bywatersolutions.com>
Tue, 24 Oct 2023 12:01:09 +0000 (12:01 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 8 Nov 2023 07:37:57 +0000 (21:37 -1000)
commited2bb9534a143b6ab894e6ab4e24d8c7dc9fd58e
tree4bb6504000c718b0cb6471c365240f7b59f159e0
parent07cf6fccc0afdab10ac39ae33d6a9841cb1abf30
Bug 35141: Prevent link_bibs_to_authorities from dying on invalid metadata

When fetching the record we need to eval in case of exception

To test:
1 - Apply first patch
2 - perl misc/link_bibs_to_authorities.pl
3 - Note it dies on parser error at record 369
4 - Apply this patch
5 - perl misc/link_bibs_to_authorities.pl
6 - The process completes - with warning thrown on record 369

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
(cherry picked from commit 706641e747336eeb341172ed3d794d86551a45a9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/link_bibs_to_authorities.pl