Bug 30738: Log warnings for background MARC import
authorDavid Cook <dcook@prosentient.com.au>
Thu, 12 May 2022 04:09:58 +0000 (04:09 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 12 Jul 2022 16:40:33 +0000 (16:40 +0000)
commit245cd510aba1e1f462e3d3dc139f3efd290e3e34
tree544f4c9990b81fdd01d3dbbab144d23e89d6c297
parent9fd8f5408d63941dc4cad72727fc4e785bf0a8f0
Bug 30738: Log warnings for background MARC import

This change logs warnings from the CGI background MARC import.

Test plan:
0) Apply patch
1) Export a record with an item
2) Update the 952$f subfield to "Circulation" (any value over 10 chars)
3) Import the record and try to add the item
4) The import will stay stuck with "Importing" status and 0% job
progress
5) Check the /var/log/koha/kohadev/intranet-error.log file
and notice there's an error with the following text:
"Data too long for column 'coded_location_qualifier' at row 1"

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 9d8d9321e800e0ccfda895a9060b2800947982e8)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
tools/manage-marc-import.pl