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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 8 Jun 2022 14:22:41 +0000 (11:22 -0300)
commit9d8d9321e800e0ccfda895a9060b2800947982e8
treee4ff182cf3f226c63a6b4d830b17e159f547387d
parent556a910021883e4d27d499747559dc2ee102ce05
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>
tools/manage-marc-import.pl