From 67ad61070e7a4d011fee08ce33e308b2c3a9be6e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 31 Dec 2012 11:41:19 -0500 Subject: [PATCH] Bug 9215 - non translatable string in manage-marc-import Status information about staged MARC record batches was being pulled directly from the import_batches table where they are stored as English strings. This patch puts a check on the status value into the template so that translatable strings can be embedded. To test, apply the patch and view both the table of staged MARC record batches and details about individual batches. In the default 'en' translation you should see import statuses displayed with a capital letter ("Staged"). This indicates that the status is now being pulled from the template. Signed-off-by: Chris Cormack Signed-off-by: Jonathan Druart Signed-off-by: Jared Camins-Esakov --- .../en/modules/tools/manage-marc-import.tt | 38 +++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt index 8265b50a0f..0e350fc754 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt @@ -129,8 +129,24 @@ $(document).ready(function(){
  • Comments: [% IF ( comments ) %][% comments %][% ELSE %](none)[% END %]
  • Type: [% IF ( record_type == 'auth' ) %]Authority records[% ELSE %]Bibliographic records[% END %]
  • Staged: [% upload_timestamp %]
  • -
  • Status: [% import_status %]
  • -
  • +
  • Status: + [% IF ( import_status == 'cleaned' ) %] + Cleaned + [% ELSIF ( import_status == 'imported' ) %] + Imported + [% ELSIF ( import_status == 'importing' ) %] + Importing + [% ELSIF ( import_status == 'reverted' ) %] + Reverted + [% ELSIF ( import_status == 'reverting' ) %] + Reverting + [% ELSIF ( import_status == 'staged' ) %] + Staged + [% ELSE %] + [% import_status %] + [% END %] +
  • +
  • [% IF ( can_commit ) %]