]> git.koha-community.org Git - koha.git/commit
Bug 13167 Stage MARC for Import hangs for biblio containing invalid ISBN-13
authorFrédéric Demians <f.demians@tamil.fr>
Sun, 2 Nov 2014 16:41:34 +0000 (17:41 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 5 Jan 2015 23:02:32 +0000 (12:02 +1300)
commit6fd0165d87a4aab0c1c2a5f8854030323565f429
treec3c6d1f093d0084accf236b0fc555961cb891917
parent4a0872e59e8ef74349c4840bca50edac0d8e7d2f
Bug 13167 Stage MARC for Import hangs for biblio containing invalid ISBN-13

If the ISBN of a UNIMARC record begins with 979 then the 'Stage MARC for
import' hangs.  If I use the same UNIMARC record and change 979 to 978 in the
ISBN, 'Stage MARC for import' works perfectly.

The patch deals with the fact that converting an ISBN-13 to ISBN-10 with
Business::ISBN as_isbn10() method fails if the ISBN doesn't begin with 978.

TEST PLAN:

(1) Download, and decompress the ZIP file attached to BZ.
(2) On a UNIMARC Koha instance, go in Tools > Stage MARC for import.
(3) Choose the MARC file containing the record with an ISBN begining with 979.
    Click on Upload file, then Stage to import.
(4) The Job progress bar stay at 0%.
(5) Apply the patch. Repeat steps 2-3. The upload works.

Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Tested in a UNIMARC installation, confirmed that the patch fixes the
problem.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 352d9cd2fd0ea7ddc075094e3f9d310abc894ac4)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Koha.pm