X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=opac%2Fopac-reserve.pl;h=ad895f6767fbeb850b41446e3861d412aa267373;hb=36720b589c8ca7ebad21bf759029b2c071fdcf6f;hp=552cffbda10f22288e1d2015840fb31834fdcc58;hpb=b65dbbf98df9a6e8df0e3da9c388dcf88b365337;p=koha.git diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 552cffbda1..ad895f6767 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -136,8 +136,8 @@ foreach my $itm (@items) { $itm->{'itemtype'} = $itm->{'itype'} if(C4::Context->preference('item-level_itypes')); $itemhash{$itm->{'itemnumber'}}=$itm; if (!$itm->{'notforloan'} && !($itm->{'itemnotforloan'} > 0)){ - $forloan=1; - } + $forloan=1; + } } if ( $query->param('place_reserve') ) { @@ -330,7 +330,11 @@ foreach my $biblioitemnumber (@biblioitemnumbers) { # If there is no loan, return and transfer, we show a checkbox. $item->{notforloan} = $item->{notforloan} || 0; - if (IsAvailableForItemLevelRequest($itemnumber)) { + my $branchitemrule = C4::Context->preference("RequestOnOpac"); + my $policy_holdallowed = 1; + + + if (IsAvailableForItemLevelRequest($itemnumber) and $policy_holdallowed) { $item->{available} = 1; }