From 02394bd7d16b94154f322ba7fac98c8402e51606 Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Thu, 3 Jul 2025 17:01:25 +0000 Subject: [PATCH] Bug 34157: (follow-up) Tidiness fix Signed-off-by: David Nind --- C4/Labels/Label.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/C4/Labels/Label.pm b/C4/Labels/Label.pm index 5502382736..dd289083ee 100644 --- a/C4/Labels/Label.pm +++ b/C4/Labels/Label.pm @@ -385,9 +385,10 @@ sub draw_label_text { my $font = $self->{'font'}; my $item = _get_label_item( $self->{'item_number'} ); my $label_fields = _get_text_fields( $self->{'format_string'} ); - my $biblio = Koha::Biblios->find($item->{'biblionumber'}); + my $biblio = Koha::Biblios->find( $item->{'biblionumber'} ); my $record; - if (defined $biblio) { + + if ( defined $biblio ) { $record = $biblio->metadata->record; } @@ -411,6 +412,7 @@ LABEL_FIELDS: # process data for requested fields on current label } else { $field->{'data'} = _get_barcode_data( $field->{'code'}, $item, $record ); } + # Find appropriate font it oblique title selected, except main font is oblique if ( ( $field->{'code'} eq 'title' ) and ( $self->{'oblique_title'} == 1 ) ) { if ( $font =~ /^TB$/ ) { -- 2.39.5