Bug 26223: (QA follow-up) Fix filter order
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
faddc2072d
commit
6653aeaf14
1 changed files with 11 additions and 10 deletions
|
@ -90,18 +90,18 @@ unless ( $patron and $patron->category->override_hidden_items ) {
|
|||
}
|
||||
}
|
||||
|
||||
my $record = $biblio->metadata->record;
|
||||
my @items = grep { !$_->hidden_in_opac({ rules => $opachiddenitems_rules }) } @{$biblio->items->as_list} ;
|
||||
my $marcflavour = C4::Context->preference("marcflavour");
|
||||
my $record = $biblio->metadata->record;
|
||||
my @items = $biblio->items->filter_by_visible_in_opac({ patron => $patron })->as_list;
|
||||
|
||||
my $record_processor = Koha::RecordProcessor->new({
|
||||
filters => [ 'ViewPolicy', 'EmbedItems' ],
|
||||
options => {
|
||||
interface => 'opac',
|
||||
frameworkcode => $biblio->frameworkcode,
|
||||
items => \@items
|
||||
my $record_processor = Koha::RecordProcessor->new(
|
||||
{ filters => [ 'EmbedItems', 'ViewPolicy' ],
|
||||
options => {
|
||||
interface => 'opac',
|
||||
frameworkcode => $biblio->frameworkcode,
|
||||
items => \@items
|
||||
}
|
||||
}
|
||||
});
|
||||
);
|
||||
$record_processor->process($record);
|
||||
|
||||
# get biblionumbers stored in the cart
|
||||
|
@ -112,6 +112,7 @@ if(my $cart_list = $query->cookie("bib_list")){
|
|||
}
|
||||
}
|
||||
|
||||
my $marcflavour = C4::Context->preference("marcflavour");
|
||||
# some useful variables for enhanced content;
|
||||
# in each case, we're grabbing the first value we find in
|
||||
# the record and normalizing it
|
||||
|
|
Loading…
Reference in a new issue