projects
/
srvgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a74d196
)
Bug #2794: Browse Shelf doesn't work with ISBN containing '-'
author
Frederic Demians
<f.demians@tamil.fr>
Mon, 17 Nov 2008 08:34:50 +0000
(09:34 +0100)
committer
Galen Charlton
<galen.charlton@liblime.com>
Mon, 17 Nov 2008 15:43:09 +0000
(09:43 -0600)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
opac/opac-detail.pl
patch
|
blob
|
history
diff --git
a/opac/opac-detail.pl
b/opac/opac-detail.pl
index
e08a0f5
..
7e72521
100755
(executable)
--- a/
opac/opac-detail.pl
+++ b/
opac/opac-detail.pl
@@
-238,6
+238,8
@@
$template->param(
sub isbn_cleanup ($) {
my $isbn=shift;
+ ($isbn) = $isbn =~ /([\d-]*[X]*)/;
+ $isbn =~ s/-//g;
if (
$isbn =~ /\b(\d{13})\b/ or
$isbn =~ /\b(\d{10})\b/ or