]> git.koha-community.org Git - koha.git/commit
Bug 17088 - Bad MARC XML can halt export_records.pl
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 9 Aug 2016 13:08:17 +0000 (13:08 +0000)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 24 Oct 2016 09:44:24 +0000 (11:44 +0200)
commit1e6cc05d855f37b8915570d6b6eb415c668b6cac
tree3d55f45326033410b071c48c4bab382fc0a10e98
parent42e01bf600f04fb0aa1de7e88794b355897740a3
Bug 17088 - Bad MARC XML can halt export_records.pl

If export_records.pl encounters a record that fails to load correctly as
a MARC::Record the export process will fail and only the records
encountered up to that point will be exported.

Test Plan:
1) Pick a record in your database, and replace the biblioitems.marcxml field with some random characters
2) Export your records using the command:
   misc/export_records.pl  --format xml --record-type bibs --filename /tmp/biblios.xml
3) Note you get an error and the script ends prematurely
4) Apply this patch
5) Repeat step 2
6) Note the full record set is exported ( except for your bad record )
7) Note an error is still generated for your bad record ( useful for
    tracking down bad records ).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit e72a8ab260abed11b02266d77bc17d831884ed40)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit cb1ee8e3ccbc8bbce47b9db502a90c09e2a6ec3f)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Koha/Exporter/Record.pm