X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=circ%2Fhold-transfer-slip.pl;h=525e25a400aea8b864a54f6d9131c168d0339ac3;hb=d1e05b67d1196af6501a08b937ac0086be2c11f2;hp=8ae5d2a2f420eda13527d9bc0bea54a53dafb289;hpb=367c4fb8815bfe4a01869a25bcd8222989c15dcd;p=koha.git diff --git a/circ/hold-transfer-slip.pl b/circ/hold-transfer-slip.pl index 8ae5d2a2f4..525e25a400 100755 --- a/circ/hold-transfer-slip.pl +++ b/circ/hold-transfer-slip.pl @@ -42,7 +42,7 @@ my $transfer = $input->param('transfer'); my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { - template_name => "circ/printslip.tmpl", + template_name => "circ/printslip.tt", query => $input, type => "intranet", authnotrequired => 0, @@ -57,18 +57,9 @@ if ( my $letter = ReserveSlip ($session->param('branch') || $userenv->{branch}, $slip = $letter->{content}; $is_html = $letter->{is_html}; } -else { - $slip = "Reserve not found"; -} -$template->param( - slip => $slip, - plain => !$is_html, - title => "Koha -- Circulation: Transfers", - stylesheet => C4::Context->preference("SlipCSS"), -); +$template->param( slip => $slip ) if ($slip); +$template->param( caller => 'hold-transfer' ); +$template->param( plain => !$is_html ); output_html_with_http_headers $input, $cookie, $template->output; - - -