From 7a34b88885c13a89cd713bb76eadef11472c1960 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 21 Aug 2020 14:00:51 +0200 Subject: [PATCH] Bug 26270: Fix ThingISBN after a change in behaviour This is just a guess! One of our tests is failing since today and we don't modify anything in this area. My guess is that the service is now returning the normalized version of the ISBN Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer Signed-off-by: Aleisha Amohia --- C4/XISBN.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C4/XISBN.pm b/C4/XISBN.pm index 1b3a3bbbd6..c2fae30267 100644 --- a/C4/XISBN.pm +++ b/C4/XISBN.pm @@ -107,6 +107,8 @@ sub get_xisbns { next if $unique_xisbns->{ $response_data->{content} }; $unique_xisbns->{ $response_data->{content} }++; my $xbiblio= _get_biblio_from_xisbn($response_data->{content}); + next unless $xbiblio; + next if $xbiblio->{normalized_isbn} && $xbiblio->{normalized_isbn} eq $isbn; push @xisbns, $xbiblio if $xbiblio && $xbiblio->{biblionumber} ne $biblionumber; } if ( wantarray ) { -- 2.39.5