Browse Source

Bug 12062: Untranslatable "Reserve not found"

This patch rewrites transfer slip code to make some
strings translatable.
Also simplifies some code and parameters.

To test:
1) Produce a transfer slip, no changes must be noted.

2) Update PO file, new strings
msgid "%s %s%s%sNo hold found%s %s %s "
msgid "%s%s%sNo hold found%s "
msgid "Koha › Circulation › Transfers"

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
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 10 years ago
committed by Tomas Cohen Arazi
parent
commit
ebac54dfea
  1. 14
      circ/hold-transfer-slip.pl
  2. 10
      koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt

14
circ/hold-transfer-slip.pl

@ -57,18 +57,8 @@ 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( plain => !$is_html );
output_html_with_http_headers $input, $cookie, $template->output;

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

@ -1,11 +1,11 @@
[% USE Koha %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% title %]</title>
<title>Koha &rsaquo; Circulation &rsaquo; Transfers</title>
<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" />
[% IF stylesheet %]
<link rel="stylesheet" type="text/css" href="[% stylesheet %]" />
[% IF ( Koha.Preference('SlipCSS') ) %]
<link rel="stylesheet" type="text/css" href="[% Koha.Preference('SlipCSS') %]" />
[% END %]
[% INCLUDE 'slip-print.inc' #printThenClose %]
@ -15,10 +15,10 @@
[% IF plain %]
<pre>
[% slip %]
[% IF ( slip ) %][% slip %][% ELSE %]No hold found[% END %]
</pre>
[% ELSE %]
[% slip %]
[% IF ( slip ) %][% slip %][% ELSE %]No hold found[% END %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]

Loading…
Cancel
Save