[Koha-patches] [PATCH] Bug #2794: Browse Shelf doesn't work with ISBN containing '-'

Frederic Demians f.demians at tamil.fr
Mon Nov 17 09:34:50 CET 2008


---
 opac/opac-detail.pl |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl
index e08a0f5..7e72521 100755
--- 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 
-- 
1.5.5.GIT




More information about the Koha-patches mailing list