$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){
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},
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},