From 6b3047a46f9ede7e76a55046d981d7439779f85c Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 13 Oct 2022 09:30:06 +0100 Subject: [PATCH] Bug 31224: (QA follow-up) Fix syntax error --- Koha/Biblio.pm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm index f3025ed706..09f774f963 100644 --- a/Koha/Biblio.pm +++ b/Koha/Biblio.pm @@ -105,13 +105,14 @@ type. Currently only I objects are returned. =cut sub metadata_record { - my ($self, $params) = @_; + my ( $self, $params ) = @_; my $patron = $params->{patron}; my $record = $self->metadata->record; if ( $params->{embed_items} or $params->{opac} ) { + # There's need for a RecordProcessor, let's do it! my @filters; my $options = { @@ -119,12 +120,14 @@ sub metadata_record { frameworkcode => $self->frameworkcode, }; - if ($params->{embed_items}) { + if ( $params->{embed_items} ) { push @filters, 'EmbedItems'; - if ($params->{opac}) { + if ( $params->{opac} ) { $options->{items} = $self->items->filter_by_visible_in_opac( { - ( $params->{patron} ? patron => $params->{patron} : ()) + ( + $params->{patron} ? ( patron => $params->{patron} ) : () + ) } ); } @@ -148,7 +151,7 @@ sub metadata_record { } ); - $rp->process( $record ); + $rp->process($record); } return $record; -- 2.20.1