Browse Source

Bug 12062: Follow up to fix more untraslatable cases

This patch modifies staff printslip.tt to take into account
caller. Also fixes similar problem on opac printslip.tt

To test:
staff
1. Print hold transfer slip
2. Print transfer slip
3. Print member slip
opac
4. Print self checkout slip

5. Update translation files, check new strings are present

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
MM-OPAC/theme_dep
Bernardo Gonzalez Kriegel 9 years ago
committed by Tomas Cohen Arazi
parent
commit
c53520d58d
  1. 1
      circ/hold-transfer-slip.pl
  2. 2
      circ/transfer-slip.pl
  3. 9
      koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt
  4. 4
      koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt
  5. 3
      members/printslip.pl
  6. 2
      opac/sco/printslip.pl

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

2
circ/transfer-slip.pl

@ -64,7 +64,7 @@ else {
$template->param(
slip => $slip,
plain => !$is_html,
title => "Koha -- Circulation: Transfers",
caller => 'transfer',
stylesheet => C4::Context->preference("SlipCSS"),
);

9
koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt

@ -1,6 +1,13 @@
[% USE Koha %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Circulation &rsaquo; Transfers</title>
[% IF ( caller = 'hold-transfer' %]
<title>Koha &rsaquo; Circulation &rsaquo; Hold transfer print receipt</title>
[% ELSIF ( caller == 'transfer' %]
<title>Koha &rsaquo; Circulation &rsaquo; Transfers print receipt</title>
[% ELSIF ( caller == 'members' %]
<title>Koha &rsaquo; Members &rsaquo; Print receipt for [% borrowernumber %]</title>
[% END %]
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" />

4
koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt

@ -1,5 +1,5 @@
[% INCLUDE 'doc-head-open.inc' %]
[% title %]</title>
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha [% END %] &rsaquo; Self checkout &rsaquo; Print Receipt for [% borrowernumber %]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="[% IF ( OpacFavicon ) %][% OpacFavicon %][% ELSE %][% interface %]/[% theme %]/images/favicon.ico[% END %]" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/print.css" />
@ -27,4 +27,4 @@
}
</script>
</body>
</html>
</html>

3
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,
);

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

Loading…
Cancel
Save