Fix Amazon cover for UNIMARC
authorFrédéric Demians <f.demians@tamil.fr>
Mon, 30 Mar 2009 06:42:22 +0000 (08:42 +0200)
committerGalen Charlton <galen.charlton@liblime.com>
Wed, 1 Apr 2009 15:49:39 +0000 (10:49 -0500)
In UNIMARC, 010 tag contains ISBN. In UNIMARC, ISBN with '-'
are valid. This patch modify ISBN normalization in order to
automaticaly suppress '-' before sending ISBN to Amazon
to get book cover.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Koha.pm

index 290ef40..9c37020 100644 (file)
@@ -1249,6 +1249,7 @@ sub _normalize_match_point {
 
 sub _isbn_cleanup ($) {
     my $normalized_isbn = shift;
+    $normalized_isbn =~ s/-//g;
     $normalized_isbn =~/([0-9]{1,})/;
     $normalized_isbn = $1;
     if (