don't include the item itself as an edition
authorJoshua Ferraro <jmf@liblime.com>
Tue, 18 Mar 2008 15:38:30 +0000 (11:38 -0400)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 18 Mar 2008 15:40:30 +0000 (10:40 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/XISBN.pm

index dd2bd5d..4ab6bcc 100644 (file)
@@ -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});