From 3952c2028974d1e589b2d37d3a07aa38bc28a9c9 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 22 Oct 2013 12:55:02 -0400 Subject: [PATCH] Bug 8015: QA Followup * Add bug number to database update * Fix capitalization errors * Fix JavaScript string translation errors Signed-off-by: Galen Charlton --- installer/data/mysql/updatedatabase.pl | 4 ++-- .../tools/marc_modification_templates.tt | 20 +++++++++---------- .../prog/en/modules/tools/tools-home.tt | 2 +- tools/marc_modification_templates.pl | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 85128f7ee5..2d4f4d51ef 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -7686,7 +7686,7 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } -$DBversion = "3.11.00.XXX"; +$DBversion = "3.13.00.XXX"; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do("CREATE TABLE IF NOT EXISTS marc_modification_templates ( template_id int(11) NOT NULL auto_increment, @@ -7724,7 +7724,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do("INSERT INTO permissions (module_bit, code, description) VALUES ('13', 'marc_modification_templates', 'Manage marc modification templates')"); - print "Upgrade to $DBversion done ( Added tables for MARC Modification Framework )\n"; + print "Upgrade to $DBversion done ( Bug 8015: Added tables for MARC Modification Framework )\n"; SetVersion($DBversion); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt index 1003271373..899dec1b34 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt @@ -141,7 +141,7 @@ function clearFormElements(divId) { } function confirmDelete() { - var agree = confirm("Are you sure you wish to delete this template?"); + var agree = confirm(_("Are you sure you wish to delete this template?")); return agree; } @@ -187,10 +187,10 @@ function editAction( mmta_id, ordering, action, field_number, from_field, from_s document.getElementById('description').value = description; window.modaction_legend_innerhtml = document.getElementById('modaction_legend').innerhtml; - document.getElementById('modaction_legend').innerhtml = "Edit Action " + ordering; + document.getElementById('modaction_legend').innerhtml = _("Edit action") + ordering; window.action_submit_value = document.getElementById('action_submit').value; - document.getElementById('action_submit').value = "Update Action"; + document.getElementById('action_submit').value = _("Update action"); show('cancel_edit'); } @@ -287,7 +287,7 @@ function setSelectByValue( selectId, value ) { Actions for this template - Change Order + Change order Order Action Description @@ -298,19 +298,19 @@ function setSelectByValue( selectId, value ) { [% FOREACH ActionsLoo IN ActionsLoop %] - + Go up - + Go top - + Go bottom - + Go down @@ -391,7 +391,7 @@ function setSelectByValue( selectId, value ) {
- Add A New Action + Add a new action

- +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt index 8ae069f7e8..4ab38c99c3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt @@ -150,7 +150,7 @@ --> [% IF ( CAN_user_tools_marc_modification_templates ) %] -
MARC Modification Templates
+
MARC modification templates
Manage templates for modifying MARC records during import.
[% END %] diff --git a/tools/marc_modification_templates.pl b/tools/marc_modification_templates.pl index e815f604ec..f9c3ee1cea 100755 --- a/tools/marc_modification_templates.pl +++ b/tools/marc_modification_templates.pl @@ -32,7 +32,7 @@ my $template_id = $cgi->param('template_id'); my ($template, $loggedinuser, $cookie) = get_template_and_user({ - template_name => "tools/marc_modification_templates.tmpl", + template_name => "tools/marc_modification_templates.tt", query => $cgi, type => "intranet", authnotrequired => 0, -- 2.39.5