projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67bba63
)
Fix Amazon cover for UNIMARC
author
Frédéric Demians
<f.demians@tamil.fr>
Mon, 30 Mar 2009 06:42:22 +0000
(08:42 +0200)
committer
Galen 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
patch
|
blob
|
history
diff --git
a/C4/Koha.pm
b/C4/Koha.pm
index
290ef40
..
9c37020
100644
(file)
--- 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 (