]> git.koha-community.org Git - koha.git/commit
Bug 11412: fix potential bulkmarcimport crash when searching for duplicates in author...
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Wed, 18 Dec 2013 10:20:05 +0000 (11:20 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 7 Feb 2014 14:07:15 +0000 (11:07 -0300)
commit66b185db7a16e3883a45361aa1075b95a7404de9
tree8fe7ca2b3214a6207b4a0fed96d764dce85bbfe4
parenta120f4cf09d7226febcae3320aa3de8bf8e44552
Bug 11412: fix potential bulkmarcimport crash when searching for duplicates in authorities

bulkmarcimport.pl can crash when searching for duplicates if the 005
field from the incoming or local record is not defined. This patch
fixes it.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Test plan
1/ Create a record with no 005 field
2/ Try to import it checking for duplicates, notice it crashes
3/ Try with a record with a 005 field, but the one in Koha missing
one, still crashes
4/ Apply patch
5/ No more crash

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script.
Patch fixes the problem described for importing authorities
with the bulkmarcimport.pl when trying to match with existing
records.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 28d97e322805a42680527232b151754b4778aed8)
Signed-off-by: Fridolin SOMERS <fridolin.somers@biblibre.com>
(cherry picked from commit 16df6d75044a6b1d64bb0ab4f0bded4b4699d5d6)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
misc/migration_tools/bulkmarcimport.pl