From dc8ebec161fdda753315f4cc871d418815be1e7f Mon Sep 17 00:00:00 2001 From: Martin Renvoize 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..2ea0ea28a1 --- /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' -%]Reserve + [%- CASE 'LostReserve' -%]Reserve lost + [%- CASE 'CancelReserve' -%]Reserve 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' %] Koha › Circulation › Transfers to send [% INCLUDE 'doc-head-close.inc' %] @@ -57,7 +58,7 @@ [% IF ( transfer.item.effective_itemtype ) %] ([% transfer.item.effective_itemtype | html %])[% END %]
Barcode: [% transfer.item.barcode | html %] -

[% transfer.reason | html %]

+

[% transfer_reason transfer=transfer %]

[% IF transfer.item.onloan %]Due [% transfer.item.onloan | $KohaDates %][% ELSE %]On shelf[% END %] [% Branches.GetName( transfer.item.homebranch ) | html %] [% transfer.item.itemcallnumber | html %] -- 2.20.1