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

(-)a/opac/opac-ISBDdetail.pl (-1 / +1 lines)
Lines 174-180 for my $itm (@items) { Link Here
174
        && !$itemtypes->{$itm->{'itype'}}->{notforloan}
174
        && !$itemtypes->{$itm->{'itype'}}->{notforloan}
175
        && $itm->{'itemnumber'};
175
        && $itm->{'itemnumber'};
176
176
177
    $allow_onshelf_holds = C4::Reserves::OnShelfHoldsAllowed($itm, $patron->unblessed)
177
    $allow_onshelf_holds = C4::Reserves::OnShelfHoldsAllowed( $itm, ( $patron ? $patron->unblessed : {} ) )
178
      unless $allow_onshelf_holds;
178
      unless $allow_onshelf_holds;
179
}
179
}
180
180
(-)a/opac/opac-MARCdetail.pl (-2 / +2 lines)
Lines 127-135 if(my $cart_list = $query->cookie("bib_list")){ Link Here
127
}
127
}
128
128
129
my $allow_onshelf_holds;
129
my $allow_onshelf_holds;
130
my $patron = Koha::Patrons->find( $loggedinuser )->unblessed;
130
my $patron = Koha::Patrons->find( $loggedinuser );
131
for my $itm (@all_items) {
131
for my $itm (@all_items) {
132
    $allow_onshelf_holds = C4::Reserves::OnShelfHoldsAllowed($itm, $patron);
132
    $allow_onshelf_holds = C4::Reserves::OnShelfHoldsAllowed( $itm, ( $patron ? $patron->unblessed : {} ) );
133
    last if $allow_onshelf_holds;
133
    last if $allow_onshelf_holds;
134
}
134
}
135
135
(-)a/opac/opac-detail.pl (-2 / +1 lines)
Lines 668-674 if ( not $viewallitems and @items > $max_items_to_display ) { Link Here
668
        && !$itemtypes->{$itm->{'itype'}}->{notforloan}
668
        && !$itemtypes->{$itm->{'itype'}}->{notforloan}
669
        && $itm->{'itemnumber'};
669
        && $itm->{'itemnumber'};
670
670
671
    $allow_onshelf_holds = C4::Reserves::OnShelfHoldsAllowed( $itm, $patron->unblessed )
671
    $allow_onshelf_holds = C4::Reserves::OnShelfHoldsAllowed( $itm, ( $patron ? $patron->unblessed : {} ) )
672
      unless $allow_onshelf_holds;
672
      unless $allow_onshelf_holds;
673
673
674
    # get collection code description, too
674
    # get collection code description, too
675
- 

Return to bug 17829