View | Details | Raw Unified | Return to bug 34157
Collapse All | Expand All

(-)a/C4/Labels/Label.pm (-3 / +5 lines)
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$/ ) {
(-)a/labels/label-create-pdf.pl (-1 / +1 lines)
Lines 156-161 foreach my $item ( @{$items} ) { Link Here
156
            ),
156
            ),
157
        );
157
        );
158
        $pdf->Add( $label_a->draw_guide_box ) if $layout->get_attr('guidebox');
158
        $pdf->Add( $label_a->draw_guide_box ) if $layout->get_attr('guidebox');
159
        print STDERR "label_a: iffffffff";
159
        my $label_a_text = $label_a->create_label();
160
        my $label_a_text = $label_a->create_label();
160
        _print_text($label_a_text);
161
        _print_text($label_a_text);
161
        ( $row_count, $col_count, $llx, $lly ) = _calc_next_label_pos( $row_count, $col_count, $llx, $lly );
162
        ( $row_count, $col_count, $llx, $lly ) = _calc_next_label_pos( $row_count, $col_count, $llx, $lly );
162
- 

Return to bug 34157