use 'F' or 'W', not 'f' or 'w' when using reserves.found
authorGalen Charlton <galen.charlton@liblime.com>
Thu, 13 Mar 2008 22:17:59 +0000 (17:17 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Sat, 15 Mar 2008 13:36:24 +0000 (08:36 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
cataloguing/additem.pl
circ/pendingreserves.pl

index 144e780..f9d77ac 100755 (executable)
@@ -142,7 +142,7 @@ if ($op eq "additem") {
                $nextop="additem";
     } else {
                # check it doesnt have a waiting reserve
-               $sth=$dbh->prepare("SELECT * FROM reserves WHERE found = 'w' AND cancellationdate IS NULL AND itemnumber = ?");
+               $sth=$dbh->prepare("SELECT * FROM reserves WHERE found = 'W' AND cancellationdate IS NULL AND itemnumber = ?");
                $sth->execute($itemnumber);
                my $reserve=$sth->fetchrow;
                if ($reserve){
index c7a8ee2..0f5fc0e 100755 (executable)
@@ -141,8 +141,8 @@ while ( my $data = $sth->fetchrow_hashref ) {
             phone            => $previous eq $this?"":$data->{phone},
             email            => $previous eq $this?"":$data->{email},
             biblionumber     => $previous eq $this?"":$data->{biblionumber},
-            statusw          => ( $data->{found} eq "w" ),
-            statusf          => ( $data->{found} eq "f" ),
+            statusw          => ( $data->{found} eq "W" ),
+            statusf          => ( $data->{found} eq "F" ),
             holdingbranch    => $data->{holdingbranch},
             branch           => $previous eq $this?"":$data->{branch},
             itemcallnumber   => $data->{itemcallnumber},
@@ -180,8 +180,8 @@ while ( my $data = $sth->fetchrow_hashref ) {
             phone            => $previous eq $this?"":$data->{phone},
             email            => $previous eq $this?"":$data->{email},
             biblionumber     => $previous eq $this?"":$data->{biblionumber},
-            statusw          => ( $data->{found} eq "w" ),
-            statusf          => ( $data->{found} eq "f" ),
+            statusw          => ( $data->{found} eq "W" ),
+            statusf          => ( $data->{found} eq "F" ),
             holdingbranch    => $data->{holdingbranch},
             branch           => $previous eq $this?"":$data->{branch},
             itemcallnumber   => $data->{itemcallnumber},