|
Lines 127-135
if(my $cart_list = $query->cookie("bib_list")){
Link Here
|
| 127 |
} |
127 |
} |
| 128 |
} |
128 |
} |
| 129 |
|
129 |
|
|
|
130 |
my $norequests = 1; |
| 130 |
my $allow_onshelf_holds; |
131 |
my $allow_onshelf_holds; |
| 131 |
my $patron = Koha::Patrons->find( $loggedinuser ); |
132 |
my $patron = Koha::Patrons->find( $loggedinuser ); |
| 132 |
for my $itm (@all_items) { |
133 |
for my $itm (@all_items) { |
|
|
134 |
$norequests = 0 |
| 135 |
if $norequests |
| 136 |
&& !$itm->{'withdrawn'} |
| 137 |
&& !$itm->{'itemlost'} |
| 138 |
&& ($itm->{'itemnotforloan'}<0 || not $itm->{'itemnotforloan'}) |
| 139 |
&& !$itemtypes->{$itm->{'itype'}}->{notforloan} |
| 140 |
&& $itm->{'itemnumber'}; |
| 141 |
|
| 133 |
$allow_onshelf_holds = C4::Reserves::OnShelfHoldsAllowed( $itm, ( $patron ? $patron->unblessed : {} ) ); |
142 |
$allow_onshelf_holds = C4::Reserves::OnShelfHoldsAllowed( $itm, ( $patron ? $patron->unblessed : {} ) ); |
| 134 |
last if $allow_onshelf_holds; |
143 |
last if $allow_onshelf_holds; |
| 135 |
} |
144 |
} |
| 136 |
- |
|
|