Bug #2794: Browse Shelf doesn't work with ISBN containing '-'
authorFrederic Demians <f.demians@tamil.fr>
Mon, 17 Nov 2008 08:34:50 +0000 (09:34 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Mon, 17 Nov 2008 17:00:44 +0000 (18:00 +0100)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
opac/opac-detail.pl

index e08a0f5..7e72521 100755 (executable)
@@ -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