@@ -, +, @@ ReservesControlBranch --- C4/Reserves.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) --- a/C4/Reserves.pm +++ a/C4/Reserves.pm @@ -1173,9 +1173,7 @@ sub IsAvailableForItemLevelRequest { my $patron = Koha::Patrons->find( $borrower->{borrowernumber} ); my $item_object = Koha::Items->find( $item->{itemnumber } ); my $itemtype = $item_object->effective_itemtype; - my $notforloan_per_itemtype - = $dbh->selectrow_array("SELECT notforloan FROM itemtypes WHERE itemtype = ?", - undef, $itemtype); + my $notforloan_per_itemtype = Koha::ItemTypes->find($itemtype)->notforloan; return 0 if $notforloan_per_itemtype || @@ -1202,8 +1200,7 @@ sub IsAvailableForItemLevelRequest { my $any_available = 0; foreach my $i (@items) { - - my $circ_control_branch = C4::Circulation::_GetCircControlBranch( $i->unblessed(), $borrower ); + my $circ_control_branch = GetReservesControlBranch( $i->unblessed(), $borrower ); my $branchitemrule = C4::Circulation::GetBranchItemRule( $circ_control_branch, $i->itype ); $any_available = 1 --