Bugzilla – Attachment 173641 Details for
Bug 31224
Koha::Biblio::Metadata->record should use the EmbedItems filter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31224: EmbedItems takes an arrayref
Bug-31224-EmbedItems-takes-an-arrayref.patch (text/plain), 1.21 KB, created by
Jonathan Druart
on 2024-10-29 13:06:50 UTC
(
hide
)
Description:
Bug 31224: EmbedItems takes an arrayref
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-10-29 13:06:50 UTC
Size:
1.21 KB
patch
obsolete
>From c07931f42de7c9733f5c62bac878262c4434a8f5 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 28 Oct 2024 09:53:08 -0300 >Subject: [PATCH] Bug 31224: EmbedItems takes an arrayref > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Biblio.pm | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index f4909788eb6..5b83e9e6f61 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -166,11 +166,11 @@ sub metadata_record { > > if ( $params->{embed_items} ) { > push @filters, 'EmbedItems'; >- if ( $params->{interface} eq 'opac' ) { >+ if ( $params->{interface} && $params->{interface} eq 'opac' ) { > $options->{items} = $self->items->filter_by_visible_in_opac( >- { ( $params->{patron} ? ( patron => $params->{patron} ) : () ) } ); >+ { ( $params->{patron} ? ( patron => $params->{patron} ) : () ) } )->as_list; > } else { >- $options->{items} = $self->items; >+ $options->{items} = $self->items->as_list; > } > } > >-- >2.34.1
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 31224
:
138060
|
138061
|
138062
|
138063
|
138064
|
142137
|
142138
|
142139
|
142140
|
142141
|
142142
|
142143
|
161933
|
161934
|
161935
|
161936
|
161937
|
161938
|
161939
|
161940
|
161941
|
161942
|
161943
|
161944
|
173530
|
173531
|
173532
|
173533
|
173534
|
173535
|
173588
|
173597
|
173598
|
173636
|
173637
|
173638
|
173639
|
173640
| 173641 |
173642
|
173643
|
173644
|
174262
|
174263