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 <martin.renvoize@ptfs-europe.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>

(cherry picked from commit 7a34b88885)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
Jonathan Druart 2020-08-21 14:00:51 +02:00 committed by Victor Grousset/tuxayo
parent e90f88f857
commit 60f26dfaf5
1 changed files with 2 additions and 0 deletions

View File

@ -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 ) {