From 9208791ab5dc5237c001f1af39f90bf493d5af4b Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 26 Feb 2014 11:03:18 +0100 Subject: [PATCH] Bug 11845 - set overlay and import status translatable in addorderiso2709.tt In addorderiso2709.tt, the text for overlay and import status come from database and is not translatable. Same as Bug 10170. Test plan : - Go to acquisition module - Display an open basket - Click on "From a staged file" - Look at table => Without patch, you see codes in "Status" column : staged, imported, ... => With patch, you see descriptions in "Status" column : Staged, Imported, ... - Click on a "Add orders" - Look at table => Without patch, you see codes in "Match?" column : no_match, auto_match, ... => With patch, you see descriptions in "Match?" column : No match, Match found, ... Signed-off-by: Nathalie CHATILLON --- .../prog/en/modules/acqui/addorderiso2709.tt | 30 ++++++++++++++++++- 1 files changed, 28 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt index 48a21b9..44d2bb8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -70,7 +70,17 @@ [% biblio_lis.citation %] - [% biblio_lis.overlay_status %] + + [% IF ( biblio_lis.overlay_status == 'no_match' ) %] + No match + [% ELSIF ( biblio_lis.overlay_status == 'match_applied' ) %] + Match applied + [% ELSIF ( biblio_lis.overlay_status == 'auto_match' ) %] + Match found + [% ELSE %] + [% biblio_lis.overlay_status %] + [% END %] + Add order [% IF ( biblio_lis.match_biblionumber ) %] @@ -112,7 +122,23 @@ [% batch_lis.file_name %] [% batch_lis.comments %] - [% batch_lis.import_status %] + + [% IF ( batch_lis.import_status == 'cleaned' ) %] + Cleaned + [% ELSIF ( batch_lis.import_status == 'imported' ) %] + Imported + [% ELSIF ( batch_lis.import_status == 'importing' ) %] + Importing + [% ELSIF ( batch_lis.import_status == 'reverted' ) %] + Reverted + [% ELSIF ( batch_lis.import_status == 'reverting' ) %] + Reverting + [% ELSIF ( batch_lis.import_status == 'staged' ) %] + Staged + [% ELSE %] + [% batch_lis.import_status %] + [% END %] + [% batch_lis.staged_date | $KohaDates with_hours => 1 %] [% batch_lis.num_biblios %] Add orders -- 1.7.2.5