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

(-)a/labels/spinelabel-print.pl (-9 / +8 lines)
Lines 45-54 $sth = $dbh->prepare($sql); Link Here
45
$sth->execute($barcode);
45
$sth->execute($barcode);
46
$item = $sth->fetchrow_hashref;
46
$item = $sth->fetchrow_hashref;
47
47
48
unless (defined $item) {
48
$template->param(
49
  $template->param( 'Barcode' => $barcode );
49
    Barcode         => $barcode,
50
  $template->param( 'BarcodeNotFound' => 1 );
50
    BarcodeNotFound => 1,
51
}
51
) unless defined $item;
52
52
53
my $body;
53
my $body;
54
54
Lines 83-92 while ( my ( $key, $value ) = each(%$data) ) { Link Here
83
$body = $scheme;
83
$body = $scheme;
84
84
85
$template->param(
85
$template->param(
86
        'itemhomebranch' => $item->{homebranch},
86
    autoprint         => C4::Context->preference("SpineLabelAutoPrint"),
87
        'itemholdingbranch' => $item->{holdingbranch}
87
    content           => $body,
88
    itemholdingbranch => $item->{holdingbranch},
89
    itemhomebranch    => $item->{homebranch},
88
);
90
);
89
$template->param( autoprint => C4::Context->preference("SpineLabelAutoPrint") );
90
$template->param( content   => $body );
91
91
92
output_html_with_http_headers $query, $cookie, $template->output;
92
output_html_with_http_headers $query, $cookie, $template->output;
93
- 

Return to bug 31633