my @args;
my $rightsquery = "SELECT categorycode, itemtype, branchcode, reservesallowed
FROM issuingrules
- WHERE categorycode = ?";
+ WHERE categorycode IN (?, '*')";
push @args,$borrower->{categorycode};
if($controlbranch eq "ItemHomeLibrary"){
}
$rightsquery .= " ORDER BY categorycode DESC, itemtype DESC, branchcode DESC";
-
my $sthrights = $dbh->prepare($rightsquery);
$sthrights->execute(@args);
if(my $row = $sthcount->fetchrow_hashref()){
$reservescount = $row->{count};
}
-
if($reservescount < $reservesrights){
return 1;
}else{