Browse Source

use 'F' or 'W', not 'f' or 'w' when using reserves.found

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
3.0.x
Galen Charlton 16 years ago
committed by Joshua Ferraro
parent
commit
86e4cdf54b
  1. 2
      cataloguing/additem.pl
  2. 8
      circ/pendingreserves.pl

2
cataloguing/additem.pl

@ -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){

8
circ/pendingreserves.pl

@ -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},

Loading…
Cancel
Save