|
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 |
} |
|
Lines 309-315
my ( $holdingbrtagf, $holdingbrtagsubf ) =
Link Here
|
| 309 |
@item_subfield_codes = uniq @item_subfield_codes; |
318 |
@item_subfield_codes = uniq @item_subfield_codes; |
| 310 |
# fill item info |
319 |
# fill item info |
| 311 |
my @item_header_loop; |
320 |
my @item_header_loop; |
| 312 |
if (@item_value_loop > 0) { # prevent display of header if no items to display |
321 |
if (@item_loop > 0) { # prevent display of header if no items to display |
| 313 |
for my $subfield_code ( @item_subfield_codes ) { |
322 |
for my $subfield_code ( @item_subfield_codes ) { |
| 314 |
push @item_header_loop, $witness{$subfield_code}; |
323 |
push @item_header_loop, $witness{$subfield_code}; |
| 315 |
for my $item_data ( @item_loop ) { |
324 |
for my $item_data ( @item_loop ) { |
| 316 |
- |
|
|