]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 7 Jan 2021 13:46:51 +0000 (14:46 +0100)
commitc097e91254c8b39013b474cdba6fdd6ea3d0b541
tree1593551808b1ae46fd173a91df75dc1bac566848
parentf38943c7f5ecb2b1dfa2bd092707c3cf75343b07
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>
Koha/Biblio/Metadata.pm
Koha/Exceptions/Metadata.pm