Bug 27346

Summary: get_xisbns explodes if only pref ThingISBN is set
Product: Koha Reporter: Fridolin Somers <fridolin.somers>
Component: CatalogingAssignee: Fridolin Somers <fridolin.somers>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: jonathan.druart, m.de.rooy
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Fridolin Somers 2021-01-05 14:49:15 UTC
When using ThingISBN alone you get a warning :

Failed Can't use string ("1") as a HASH ref while "strict refs" in use at /home/koha/src/C4/XISBN.pm line 99.

sub get_xisbns {
    my ( $isbn, $biblionumber ) = @_;
    my ($response,$thing_response,$syndetics_response,$errors);
...
    $response->{isbn} = [ @{ $syndetics_response->{isbn} or [] }, @{ $thing_response->{isbn} or [] } ];

Vars $thing_response,$syndetics_response must be initialised as an hashref.
Or maybe rewrite a bit this code.