From 20d0aff0e88544cdddfb4a6b90fc73ed652c84bd 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 was not translatable. Ths patch fixes that. 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 Signed-off-by: Marcel de Rooy This is an improvement. Only the translation of auto_match as Match found could perhaps be further improved. Signed-off-by: Galen Charlton --- .../prog/en/modules/acqui/addorderiso2709.tt | 30 +++++++++++++++++-- 1 file 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 48a21b9fe0..44d2bb8c93 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 -- 2.20.1