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.
---
 C4/Koha.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/C4/Koha.pm b/C4/Koha.pm
index 290ef40..9c37020 100644
--- a/C4/Koha.pm
+++ b/C4/Koha.pm
@@ -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 (
-- 
1.5.6.5

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to