[Koha-patches] [PATCH 1/2] Fix Amazon cover for UNIMARC
Frédéric Demians
f.demians at tamil.fr
Mon Mar 30 08:42:22 CEST 2009
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
More information about the Koha-patches
mailing list