@@ -, +, @@ --- circ/hold-transfer-slip.pl | 1 + circ/transfer-slip.pl | 2 +- .../prog/en/modules/circ/printslip.tt | 9 ++++++++- .../bootstrap/en/modules/sco/printslip.tt | 5 +++-- members/printslip.pl | 3 ++- opac/sco/printslip.pl | 2 +- 6 files changed, 16 insertions(+), 6 deletions(-) --- a/circ/hold-transfer-slip.pl +++ a/circ/hold-transfer-slip.pl @@ -58,6 +58,7 @@ if ( my $letter = ReserveSlip ($session->param('branch') || $userenv->{branch}, $is_html = $letter->{is_html}; } $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; --- a/circ/transfer-slip.pl +++ a/circ/transfer-slip.pl @@ -64,7 +64,7 @@ else { $template->param( slip => $slip, plain => !$is_html, - title => "Koha -- Circulation: Transfers", + caller => 'transfers', stylesheet => C4::Context->preference("SlipCSS"), ); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt @@ -1,6 +1,13 @@ [% USE Koha %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Circulation › Transfers +[% IF ( caller = 'hold-transfer' %] +Koha › Circulation › Hold transfer print receipt +[% ELSIF ( caller == 'transfer' %] +Koha › Circulation › Transfers print receipt +[% ELSIF ( caller == 'members' %] +Koha › Members › Print receipt for [%- borrowernumber -%] +[% END %] + --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt @@ -1,5 +1,5 @@ [% INCLUDE 'doc-head-open.inc' %] -[% title %] +[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha [% END %] › Self checkout › Print Receipt for [%- borrowernumber -%] @@ -27,4 +27,5 @@ } - + + --- a/members/printslip.pl +++ a/members/printslip.pl @@ -84,7 +84,8 @@ if (my $letter = IssueSlip ($session->param('branch') || $branch, $borrowernumbe $template->param( slip => $slip, plain => !$is_html, - title => "Print Receipt for $borrowernumber", + borrowernumber => $borrowernumber, + caller => 'members', stylesheet => C4::Context->preference("SlipCSS"), error => $error, ); --- a/opac/sco/printslip.pl +++ a/opac/sco/printslip.pl @@ -61,7 +61,7 @@ if (my $letter = IssueSlip ($session->param('branch') || $branch, $borrowernumbe $template->{VARS}->{slip} = $slip; $template->{VARS}->{plain} = !$is_html; -$template->{VARS}->{title} = "Print Receipt for $borrowernumber"; +$template->{VARS}->{borrowernumber} = $borrowernumber; $template->{VARS}->{stylesheet} = C4::Context->preference("SlipCSS"); $template->{VARS}->{error} = $error; --