From 2ebf388dd0179f7f705145f1eacfd802fa214cc5 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Sun, 12 Nov 2023 21:27:54 +0000 Subject: [PATCH] Bug 33478: Apply formatting to TRANSFERSLIP To test: 1. Search for an item that was last seen at a library different from your logged in library i.e the holding library is Fairview but your logged in library is Centerville 2. Use the barcode to check in the item 3. When the popup to 'please return this item to ' is triggered, click the Print slip button 4. Confirm your format settings for TRANSFERSLIP are applied --- circ/transfer-slip.pl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/circ/transfer-slip.pl b/circ/transfer-slip.pl index 1bd013d8546..c020f2eaeae 100755 --- a/circ/transfer-slip.pl +++ b/circ/transfer-slip.pl @@ -45,19 +45,21 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( my $userenv = C4::Context->userenv; -my ($slip, $is_html); +my ( $slip, $is_html, $style ); if ( my $letter = TransferSlip ($session->param('branch') || $userenv->{branch}, $itemnumber, $barcode, $branchcode) ) { - $slip = $letter->{content}; + $slip = $letter->{content}; $is_html = $letter->{is_html}; + $style = $letter->{style}; } else { $slip = "Item not found"; } $template->param( - slip => $slip, - plain => !$is_html, - caller => 'transfer', + slip => $slip, + plain => !$is_html, + caller => 'transfer', stylesheet => C4::Context->preference("SlipCSS"), + style => $style, ); output_html_with_http_headers $input, $cookie, $template->output; -- 2.30.2