Lines 385-393
sub draw_label_text {
Link Here
|
385 |
my $font = $self->{'font'}; |
385 |
my $font = $self->{'font'}; |
386 |
my $item = _get_label_item( $self->{'item_number'} ); |
386 |
my $item = _get_label_item( $self->{'item_number'} ); |
387 |
my $label_fields = _get_text_fields( $self->{'format_string'} ); |
387 |
my $label_fields = _get_text_fields( $self->{'format_string'} ); |
388 |
my $biblio = Koha::Biblios->find($item->{'biblionumber'}); |
388 |
my $biblio = Koha::Biblios->find( $item->{'biblionumber'} ); |
389 |
my $record; |
389 |
my $record; |
390 |
if (defined $biblio) { |
390 |
|
|
|
391 |
if ( defined $biblio ) { |
391 |
$record = $biblio->metadata->record; |
392 |
$record = $biblio->metadata->record; |
392 |
} |
393 |
} |
393 |
|
394 |
|
Lines 411-416
LABEL_FIELDS: # process data for requested fields on current label
Link Here
|
411 |
} else { |
412 |
} else { |
412 |
$field->{'data'} = _get_barcode_data( $field->{'code'}, $item, $record ); |
413 |
$field->{'data'} = _get_barcode_data( $field->{'code'}, $item, $record ); |
413 |
} |
414 |
} |
|
|
415 |
|
414 |
# Find appropriate font it oblique title selected, except main font is oblique |
416 |
# Find appropriate font it oblique title selected, except main font is oblique |
415 |
if ( ( $field->{'code'} eq 'title' ) and ( $self->{'oblique_title'} == 1 ) ) { |
417 |
if ( ( $field->{'code'} eq 'title' ) and ( $self->{'oblique_title'} == 1 ) ) { |
416 |
if ( $font =~ /^TB$/ ) { |
418 |
if ( $font =~ /^TB$/ ) { |
417 |
- |
|
|