From 750110d7acb6e93770961b031ff1e7f1434f0889 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Sun, 12 Nov 2023 21:24:53 +0000 Subject: [PATCH] Bug 33478: Apply formatting to HOLD_SLIP To test: 1. Place a hold on a record 2. Check in an item attached to the record 3. When the pop-up for the hold is triggered, confirm hold and print slip 4. Confirm your format settings for HOLD_SLIP are applied Signed-off-by: Lucas Gass --- circ/hold-transfer-slip.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/circ/hold-transfer-slip.pl b/circ/hold-transfer-slip.pl index 61aef56c4cd..435d1c14e08 100755 --- a/circ/hold-transfer-slip.pl +++ b/circ/hold-transfer-slip.pl @@ -41,17 +41,19 @@ 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 = ReserveSlip ({ branchcode => $session->param('branch') || $userenv->{branch}, reserve_id => $reserve_id, }) ) { - $slip = $letter->{content}; + $slip = $letter->{content}; $is_html = $letter->{is_html}; + $style = $letter->{style}; } -$template->param( slip => $slip ) if ($slip); +$template->param( slip => $slip ) if ($slip); $template->param( caller => 'hold-transfer' ); -$template->param( plain => !$is_html ); +$template->param( plain => !$is_html ); +$template->param( style => $style ); output_html_with_http_headers $input, $cookie, $template->output; -- 2.44.0