From 1f50538d33b1cac8efb51b0d66b0ad7b35c1e021 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/circ/transfer-slip.pl b/circ/transfer-slip.pl index 6c61e2cde29..5282bbe44eb 100755 --- a/circ/transfer-slip.pl +++ b/circ/transfer-slip.pl @@ -45,10 +45,11 @@ 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"; @@ -58,6 +59,7 @@ $template->param( plain => !$is_html, caller => 'cud-transfer', stylesheet => C4::Context->preference("SlipCSS"), + style => $style, ); output_html_with_http_headers $input, $cookie, $template->output; -- 2.30.2