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 |
|
391 |
if ( defined $biblio ) { |
392 |
$record = $biblio->metadata->record; |
393 |
} |
390 |
|
394 |
|
391 |
# FIXME - returns all items, so you can't get data from an embedded holdings field. |
395 |
# 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). |
396 |
# TODO - add a GetMarcBiblio1item(bibnum,itemnum) or a GetMarcItem(itemnum). |
393 |
- |
|
|