Bugzilla – Attachment 124102 Details for
Bug 26223
The OPAC ISBD view does not display item information
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26223: (QA follow-up) Fix filter order
Bug-26223-QA-follow-up-Fix-filter-order.patch (text/plain), 1.81 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-08-26 12:12:21 UTC
(
hide
)
Description:
Bug 26223: (QA follow-up) Fix filter order
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-08-26 12:12:21 UTC
Size:
1.81 KB
patch
obsolete
>From 437a2162d0b51113b72de6407ed11ba68fd946d0 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 26 Aug 2021 09:06:50 -0300 >Subject: [PATCH] Bug 26223: (QA follow-up) Fix filter order > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > opac/opac-ISBDdetail.pl | 23 ++++++++++++----------- > 1 file changed, 12 insertions(+), 11 deletions(-) > >diff --git a/opac/opac-ISBDdetail.pl b/opac/opac-ISBDdetail.pl >index f43475ddfed..41119b35218 100755 >--- a/opac/opac-ISBDdetail.pl >+++ b/opac/opac-ISBDdetail.pl >@@ -98,18 +98,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_processor = Koha::RecordProcessor->new({ >- filters => [ 'ViewPolicy', 'EmbedItems' ], >- options => { >- interface => 'opac', >- frameworkcode => $biblio->frameworkcode, >- items => \@items >+my $record = $biblio->metadata->record; >+my @items = $biblio->items->filter_by_visible_in_opac({ patron => $patron }); >+ >+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 >@@ -120,6 +120,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 >-- >2.33.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26223
:
108381
|
108533
|
108534
|
124099
|
124101
|
124102
|
124103