Bugzilla – Attachment 52239 Details for
Bug 15676
Actions in pending offline circulation actions are not translatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15676 - Actions in pending offline circulation actions are not translatable
Bug-15676---Actions-in-pending-offline-circulation.patch (text/plain), 2.66 KB, created by
Jonathan Druart
on 2016-06-10 14:52:27 UTC
(
hide
)
Description:
Bug 15676 - Actions in pending offline circulation actions are not translatable
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-06-10 14:52:27 UTC
Size:
2.66 KB
patch
obsolete
>From 0ac037a5ead999e4510d247bc6833579d8e089b4 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 26 May 2016 12:29:38 -0400 >Subject: [PATCH] Bug 15676 - Actions in pending offline circulation actions > are not translatable >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This patch modifies the offline circulation transaction processing page >so that English strings describing actions are processed in the template >rather than being output directly from the script. > >To test, apply the patch and create an offline circulation file >containing at least one checkout, one check-in, and one payment. > >- Upload the file and choose 'Add to offline circulation queue.' >- View pending offline circulation actions >- In the list of pending actions, the actions column should show "Check > out" instead of "issue," "Check in" instead of "return," and "Payment" > instead of "payment." > >Strings appear as expected. >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../intranet-tmpl/prog/en/modules/offline_circ/list.tt | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt >index 033c61b..2500456 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt >@@ -86,7 +86,18 @@ > <tr class="oc-[% operation.action %]"> > <td><input type="checkbox" name="operationid" value="[% operation.operationid %]" /></td> > <td>[% operation.timestamp %]</td> >- <td>[% operation.action %]</td> >+ <td> >+ [% SWITCH ( operation.action ) -%] >+ [% CASE "issue" -%] >+ Check out >+ [% CASE "return" -%] >+ Check in >+ [% CASE "payment" -%] >+ Payment >+ [% CASE # default case -%] >+ [% operation.action %] >+ [% END -%] >+ </td> > <td> > [% IF ( biblionumber ) %] > <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber %]" title="[% operation.bibliotitle %]">[% operation.barcode %]</a> >-- >2.8.1
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 15676
:
51846
|
51891
| 52239