View | Details | Raw Unified | Return to bug 28422
Collapse All | Expand All

(-)a/opac/opac-MARCdetail.pl (-3 / +13 lines)
Lines 138-148 $template->param( Link Here
138
) if $tagslib->{$bt_tag}->{$bt_subtag}->{hidden} <= 0 && # <=0 OPAC visible.
138
) if $tagslib->{$bt_tag}->{$bt_subtag}->{hidden} <= 0 && # <=0 OPAC visible.
139
     $tagslib->{$bt_tag}->{$bt_subtag}->{hidden} > -8;   # except -8;
139
     $tagslib->{$bt_tag}->{$bt_subtag}->{hidden} > -8;   # except -8;
140
140
141
my $norequests = 1;
141
my $allow_onshelf_holds;
142
my $allow_onshelf_holds;
142
my $items = $biblio->items;
143
my $items = $biblio->items;
144
143
while ( my $item = $items->next ) {
145
while ( my $item = $items->next ) {
144
    $allow_onshelf_holds = Koha::CirculationRules->get_onshelfholds_policy( { item => $item, patron => $patron } );
146
    $norequests = 0
145
    last if $allow_onshelf_holds;
147
      if $norequests
148
        && !$item->withdrawn
149
        && !$item->itemlost
150
        && ($item->notforloan < 0 || not $item->notforloan )
151
        && !Koha::ItemTypes->find($item->effective_itemtype)->notforloan
152
        && $item->itemnumber;
153
154
    $allow_onshelf_holds = Koha::CirculationRules->get_onshelfholds_policy( { item => $item, patron => $patron } )
155
      unless $allow_onshelf_holds;
146
}
156
}
147
157
148
if( $allow_onshelf_holds || CountItemsIssued($biblionumber) || $biblio->has_items_waiting_or_intransit ) {
158
if( $allow_onshelf_holds || CountItemsIssued($biblionumber) || $biblio->has_items_waiting_or_intransit ) {
Lines 381-386 $template->param( Link Here
381
    item_header_loop    => \@item_header_loop,
391
    item_header_loop    => \@item_header_loop,
382
    item_subfield_codes => \@item_subfield_codes,
392
    item_subfield_codes => \@item_subfield_codes,
383
    biblio              => $biblio,
393
    biblio              => $biblio,
394
    norequests          => $norequests,
384
);
395
);
385
396
386
output_html_with_http_headers $query, $cookie, $template->output;
397
output_html_with_http_headers $query, $cookie, $template->output;
387
- 

Return to bug 28422