remove dashes in the input isbn (normalization)
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 1 Jun 2007 17:51:19 +0000 (17:51 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 1 Jun 2007 17:51:19 +0000 (17:51 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7392 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm

index 37613d0..916a23b 100644 (file)
@@ -1008,6 +1008,8 @@ sub oISBN {
        my $client = shift;
        my $isbn = shift;
 
+       $isbn =~ s/-//gso;
+
        throw OpenSRF::EX::InvalidArg ('I need an ISBN please')
                unless (length($isbn) >= 10);