Bugzilla – Attachment 27397 Details for
Bug 12062
Untranslatable "Reserve not found"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12062 - Untranslatable "Reserve not found"
Bug-12062---Untranslatable-Reserve-not-found.patch (text/plain), 2.66 KB, created by
Bernardo Gonzalez Kriegel
on 2014-04-22 11:48:28 UTC
(
hide
)
Description:
Bug 12062 - Untranslatable "Reserve not found"
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2014-04-22 11:48:28 UTC
Size:
2.66 KB
patch
obsolete
>From 72d0d791d7bdd0c90a844b33e05bf7af75d3b129 Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Tue, 22 Apr 2014 08:22:14 -0300 >Subject: [PATCH] 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 por file, new strings 'Koha -- Circulation: Transfers' >and 'Reserve not found' must be present >--- > circ/hold-transfer-slip.pl | 14 ++------------ > .../prog/en/modules/circ/printslip.tt | 10 +++++----- > 2 files changed, 7 insertions(+), 17 deletions(-) > >diff --git a/circ/hold-transfer-slip.pl b/circ/hold-transfer-slip.pl >index 8ae5d2a..956fd14 100755 >--- a/circ/hold-transfer-slip.pl >+++ b/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; > >- >- >- >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt >index 7dc5b81..8ca5ef8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt >+++ b/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 -- Circulation: 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 %] > > <script type="text/javascript"> >@@ -24,10 +24,10 @@ > > [% IF plain %] > <pre> >-[% slip %] >+[% IF ( slip ) %][% slip %][% ELSE %]Reserve not found[% END %] > </pre> > [% ELSE %] >-[% slip %] >+[% IF ( slip ) %][% slip %][% ELSE %]Reserve not found[% END %] > [% END %] > > [% INCLUDE 'intranet-bottom.inc' %] >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12062
:
27397
|
27401
|
27430
|
27780
|
27782
|
27818
|
29463
|
29515
|
29516
|
29517