|
Lines 385-392
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 = $biblio->metadata->record; |
389 |
my $record; |
|
|
390 |
if (defined $biblio) { |
| 391 |
$record = $biblio->metadata->record; |
| 392 |
} |
| 390 |
|
393 |
|
| 391 |
# FIXME - returns all items, so you can't get data from an embedded holdings field. |
394 |
# FIXME - returns all items, so you can't get data from an embedded holdings field. |
| 392 |
# TODO - add a GetMarcBiblio1item(bibnum,itemnum) or a GetMarcItem(itemnum). |
395 |
# TODO - add a GetMarcBiblio1item(bibnum,itemnum) or a GetMarcItem(itemnum). |
|
Lines 408-414
LABEL_FIELDS: # process data for requested fields on current label
Link Here
|
| 408 |
} else { |
411 |
} else { |
| 409 |
$field->{'data'} = _get_barcode_data( $field->{'code'}, $item, $record ); |
412 |
$field->{'data'} = _get_barcode_data( $field->{'code'}, $item, $record ); |
| 410 |
} |
413 |
} |
| 411 |
|
|
|
| 412 |
# Find appropriate font it oblique title selected, except main font is oblique |
414 |
# Find appropriate font it oblique title selected, except main font is oblique |
| 413 |
if ( ( $field->{'code'} eq 'title' ) and ( $self->{'oblique_title'} == 1 ) ) { |
415 |
if ( ( $field->{'code'} eq 'title' ) and ( $self->{'oblique_title'} == 1 ) ) { |
| 414 |
if ( $font =~ /^TB$/ ) { |
416 |
if ( $font =~ /^TB$/ ) { |