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

(-)a/opac/opac-ISBDdetail.pl (-12 / +12 lines)
Lines 98-115 unless ( $patron and $patron->category->override_hidden_items ) { Link Here
98
    }
98
    }
99
}
99
}
100
100
101
my $record      = $biblio->metadata->record;
101
my $record = $biblio->metadata->record;
102
my @items = grep { !$_->hidden_in_opac({ rules => $opachiddenitems_rules }) } @{$biblio->items->as_list} ;
102
my @items  = $biblio->items->filter_by_visible_in_opac({ patron => $patron });
103
my $marcflavour = C4::Context->preference("marcflavour");
103
104
104
my $record_processor = Koha::RecordProcessor->new(
105
my $record_processor = Koha::RecordProcessor->new({
105
    {   filters => [ 'EmbedItems', 'ViewPolicy' ],
106
    filters => [ 'ViewPolicy', 'EmbedItems' ],
106
        options => {
107
    options => {
107
            interface     => 'opac',
108
        interface => 'opac',
108
            frameworkcode => $biblio->frameworkcode,
109
        frameworkcode => $biblio->frameworkcode,
109
            items         => \@items
110
        items => \@items
110
        }
111
    }
111
    }
112
});
112
);
113
$record_processor->process($record);
113
$record_processor->process($record);
114
114
115
# get biblionumbers stored in the cart
115
# get biblionumbers stored in the cart
Lines 120-125 if(my $cart_list = $query->cookie("bib_list")){ Link Here
120
    }
120
    }
121
}
121
}
122
122
123
my $marcflavour = C4::Context->preference("marcflavour");
123
# some useful variables for enhanced content;
124
# some useful variables for enhanced content;
124
# in each case, we're grabbing the first value we find in
125
# in each case, we're grabbing the first value we find in
125
# the record and normalizing it
126
# the record and normalizing it
126
- 

Return to bug 26223