From 99bb9fe241f4c906f4bae4aa28018bf1344324d7 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 Signed-off-by: Lucas Gass --- 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.44.0