]> git.koha-community.org Git - koha.git/commit
Bug 26171: Show biblionumber in Koha::Exceptions::Metadata::Invalid
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 7 Aug 2020 08:05:52 +0000 (10:05 +0200)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Sun, 10 Jan 2021 20:43:08 +0000 (20:43 +0000)
commit45e00f7a536207ee93beba49918c484bfd63e2a6
tree905d337bd74bafe86180a992a0c7a0fdefa6394a
parent59b58965ad66ea831a91d425dcaceaca70a25a11
Bug 26171: Show biblionumber in Koha::Exceptions::Metadata::Invalid

Bug 23846 added a check for invalid MARCXML in search_for_data_inconsistencies.pl.
But the error message does not show the biblionumber of invalid biblio record.

Test plan:
1) Import a bibliographic record with invalid XML, you can add non printable characters, like 0x1F (CTRL-V 1F with vim)
2) Run misc/maintenance/search_for_data_inconsistencies.pl
3) Check you see correct biblionumber in error message :
Invalid data, cannot decode object (id=xxx, biblionumber=yyy, format=marcxml, schema=zzz, decoding_error=...

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 3b987412f699d16794520e1b3ec1b04b82fdd4e4)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit c097e91254c8b39013b474cdba6fdd6ea3d0b541)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Koha/Biblio/Metadata.pm
Koha/Exceptions/Metadata.pm