From 492474cf3661c6a3b1f9d5ad5f14af76feb971d6 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Tue, 18 Mar 2008 11:38:30 -0400 Subject: [PATCH] don't include the item itself as an edition Signed-off-by: Joshua Ferraro --- C4/XISBN.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C4/XISBN.pm b/C4/XISBN.pm index dd2bd5da30..4ab6bcc45e 100644 --- a/C4/XISBN.pm +++ b/C4/XISBN.pm @@ -115,6 +115,8 @@ sub get_xisbns { # loop through each ISBN and scope to the local collection for my $response_data( @{ $response->{ isbn } } ) { + next if $response_data->{'content'} eq $isbn; + next if $isbn eq $response_data; next if $unique_xisbns->{ $response_data->{content} }; $unique_xisbns->{ $response_data->{content} }++; my $xbiblio= get_biblio_from_xisbn($response_data->{content}); -- 2.39.5