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:
parent
258f18c9e5
commit
34a6450693
1 changed files with 6 additions and 4 deletions
|
@ -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};
|
||||
$is_html = $letter->{is_html};
|
||||
$style = $letter->{style};
|
||||
}
|
||||
$template->param( slip => $slip ) if ($slip);
|
||||
$template->param( caller => 'hold-transfer' );
|
||||
$template->param( plain => !$is_html );
|
||||
$template->param( style => $style );
|
||||
|
||||
output_html_with_http_headers $input, $cookie, $template->output;
|
||||
|
||||
|
|
Loading…
Reference in a new issue