Bugzilla – Attachment 141283 Details for
Bug 31633
Add home and holding data attributes to quick spine label print to help customizing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31633: (follow-up) Group template params
Bug-31633-follow-up-Group-template-params.patch (text/plain), 1.49 KB, created by
Tomás Cohen Arazi (tcohen)
on 2022-10-03 17:10:56 UTC
(
hide
)
Description:
Bug 31633: (follow-up) Group template params
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2022-10-03 17:10:56 UTC
Size:
1.49 KB
patch
obsolete
>From 626ad0d2072b937d644a2778265acf5643c9fb95 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 3 Oct 2022 14:09:59 -0300 >Subject: [PATCH] Bug 31633: (follow-up) Group template params > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > labels/spinelabel-print.pl | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > >diff --git a/labels/spinelabel-print.pl b/labels/spinelabel-print.pl >index 265498c2085..390002ba4c4 100755 >--- a/labels/spinelabel-print.pl >+++ b/labels/spinelabel-print.pl >@@ -45,10 +45,10 @@ $sth = $dbh->prepare($sql); > $sth->execute($barcode); > $item = $sth->fetchrow_hashref; > >-unless (defined $item) { >- $template->param( 'Barcode' => $barcode ); >- $template->param( 'BarcodeNotFound' => 1 ); >-} >+$template->param( >+ Barcode => $barcode, >+ BarcodeNotFound => 1, >+) unless defined $item; > > my $body; > >@@ -83,10 +83,10 @@ while ( my ( $key, $value ) = each(%$data) ) { > $body = $scheme; > > $template->param( >- 'itemhomebranch' => $item->{homebranch}, >- 'itemholdingbranch' => $item->{holdingbranch} >+ autoprint => C4::Context->preference("SpineLabelAutoPrint"), >+ content => $body, >+ itemholdingbranch => $item->{holdingbranch}, >+ itemhomebranch => $item->{homebranch}, > ); >-$template->param( autoprint => C4::Context->preference("SpineLabelAutoPrint") ); >-$template->param( content => $body ); > > output_html_with_http_headers $query, $cookie, $template->output; >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31633
:
141035
|
141036
|
141037
|
141188
|
141189
|
141190
|
141191
| 141283