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 <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Aleisha Amohia 2023-11-12 21:24:53 +00:00 committed by Katrin Fischer
parent 258f18c9e5
commit 34a6450693
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -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;