Bugzilla – Attachment 117842 Details for
Bug 22569
Add a 'Transfers to send' report
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22569: (QA follow-up) Make 'reason' translatable
Bug-22569-QA-follow-up-Make-reason-translatable.patch (text/plain), 3.01 KB, created by
Martin Renvoize (ashimema)
on 2021-03-05 12:35:32 UTC
(
hide
)
Description:
Bug 22569: (QA follow-up) Make 'reason' translatable
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-03-05 12:35:32 UTC
Size:
3.01 KB
patch
obsolete
>From b86335c82f90c8449798d1785847792641578b8d Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 5 Mar 2021 12:29:42 +0000 >Subject: [PATCH] Bug 22569: (QA follow-up) Make 'reason' translatable > >--- > .../prog/en/includes/transfer_reasons.inc | 15 +++++++++++++++ > .../prog/en/modules/circ/transfers_to_send.tt | 3 ++- > 2 files changed, 17 insertions(+), 1 deletion(-) > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/transfer_reasons.inc > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/transfer_reasons.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/transfer_reasons.inc >new file mode 100644 >index 0000000000..94c8cf35b1 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/transfer_reasons.inc >@@ -0,0 +1,15 @@ >+[%- BLOCK transfer_reason -%] >+ [%- SWITCH transfer.reason -%] >+ [%- CASE 'Manual' -%]Manual >+ [%- CASE 'StockrotationAdvance' -%]Stock rotation advance >+ [%- CASE 'StockrotationRepatriation' -%]Stock rotation repatriation >+ [%- CASE 'ReturnToHome' -%]Automatic return to home >+ [%- CASE 'ReturnToHolding' -%]Automatic return to holding >+ [%- CASE 'RotatingCollection' -%]Rotating collection >+ [%- CASE 'Reserve' -%]Hold >+ [%- CASE 'LostReserve' -%]Hold lost >+ [%- CASE 'CancelReserve' -%]Hold cancelled >+ [%- CASE -%][% transfer.reason | html %] >+ [%- END -%] >+[%- END -%] >+ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transfers_to_send.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transfers_to_send.tt >index 69c988fc80..7ed3c30c5e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transfers_to_send.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transfers_to_send.tt >@@ -4,6 +4,7 @@ > [% USE KohaDates %] > [% USE Branches %] > [% SET footerjs = 1 %] >+[% PROCESS 'transfer_reasons.inc' %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Circulation › Transfers to send</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -57,7 +58,7 @@ > [% IF ( transfer.item.effective_itemtype ) %] (<b>[% transfer.item.effective_itemtype | html %]</b>)[% END %] > <br />Barcode: [% transfer.item.barcode | html %] > </td> >- <td><p>[% transfer.reason | html %]</p></td> >+ <td><p>[% transfer_reason transfer=transfer %]</p></td> > <td>[% IF transfer.item.onloan %]Due [% transfer.item.onloan | $KohaDates %][% ELSE %]On shelf[% END %]</td> > <td>[% Branches.GetName( transfer.item.homebranch ) | html %]</td> > <td>[% transfer.item.itemcallnumber | html %]</td> >-- >2.20.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 22569
:
90458
|
90477
|
90486
|
90487
|
94650
|
94651
|
94658
|
94659
|
96471
|
96472
|
96473
|
96474
|
96475
|
96478
|
96479
|
96516
|
96517
|
97392
|
97393
|
107258
|
107259
|
107260
|
107306
|
107307
|
107308
|
110284
|
110285
|
110286
|
110543
|
110544
|
110545
|
116572
|
116573
|
117612
|
117613
|
117840
|
117841
|
117842
|
117843
|
117847
|
117848
|
117878
|
117879
|
117880
|
117881