From e2377d67f4e99fab1cc83fee5e854de64630a518 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 Signed-off-by: Katrin Fischer --- 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 6c61e2cde2..5282bbe44e 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.39.2