removed unconditional warn introduced in previous patch
authorGalen Charlton <gmcharlt@gmail.com>
Mon, 24 May 2010 15:15:18 +0000 (11:15 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Mon, 24 May 2010 15:15:18 +0000 (11:15 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
cataloguing/value_builder/callnumber.pl

index 3ed09d9..2b56958 100755 (executable)
@@ -96,7 +96,6 @@ sub plugin {
         }
     # If a prefix is submited, we look for the highest itemcallnumber with this prefix, and return it incremented
     } elsif ( $code =~ m/^[A-Z.\-]+$/ ) {
-        warn $code;
         my $sth = $dbh->prepare("SELECT MAX(CAST(SUBSTRING_INDEX(itemcallnumber,' ',-1) AS SIGNED)) FROM items WHERE itemcallnumber LIKE ?");
         $sth->execute($code.' %');
         if ( my $max = $sth->fetchrow ) {