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

(-)a/opac/opac-detail.pl (-9 / +6 lines)
Lines 493-510 $template->param( Link Here
493
    OPACShowCheckoutName => C4::Context->preference("OPACShowCheckoutName"),
493
    OPACShowCheckoutName => C4::Context->preference("OPACShowCheckoutName"),
494
);
494
);
495
495
496
my $host_items = $biblio->host_items->filter_by_visible_in_opac({ patron => $patron });
496
$items = Koha::Items->search_ordered(
497
497
    [
498
$items = $biblio->items->search_ordered(
498
        'me.biblionumber' => $biblionumber,
499
    {
500
        'me.itemnumber' => {
499
        'me.itemnumber' => {
501
            -in => [
500
            -in => [
502
                $items->get_column('itemnumber'),
501
                $biblio->host_items->get_column('itemnumber')
503
                $host_items->get_column('itemnumber')
504
            ]
502
            ]
505
        }
503
        }
506
    }
504
    ]
507
);
505
)->filter_by_visible_in_opac({ patron => $patron }) unless $specific_item;
508
506
509
my $dat = &GetBiblioData($biblionumber);
507
my $dat = &GetBiblioData($biblionumber);
510
my $HideMARC = $record_processor->filters->[0]->should_hide_marc(
508
my $HideMARC = $record_processor->filters->[0]->should_hide_marc(
511
- 

Return to bug 31313