Bug 29438

Summary: Importing a record with an ISBN13 with no ISBN10 counterpart does not save the ISBN
Product: Koha Reporter: Nick Clemens <nick>
Component: ToolsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: lucas
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29437
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Nick Clemens 2021-11-08 19:41:50 UTC
When importing a record we call 'NormalizeISBN'

This routine returns nothing when an ISBN13 cannot be converted to an ISBN10 - we should have a fallback to return the original value
Comment 1 Lucas Gass 2023-12-07 21:09:32 UTC
Any ISBN prefixed with 979 cannot be converted to an ISBN10. An 979 ISBN will also not pass the check here:

if ( $isbn && $isbn->is_valid() ) 

  
For example:

use Business::ISBN; 
my $isbn = Business::ISBN->new(9798986969305); 
warn Data::Dumper::Dumper($isbn->is_valid);

this returns an empty string for $isbn->is_valid