From: Galen Charlton Date: Thu, 17 Sep 2015 22:45:36 +0000 (+0000) Subject: webstaff: make some MARC editor strings translateable X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=641c8ec0ce89b215f00458beeb0763e84bb81a43;p=evergreen%2Fmasslnc.git webstaff: make some MARC editor strings translateable Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/src/templates/staff/cat/bucket/record/index.tt2 b/Open-ILS/src/templates/staff/cat/bucket/record/index.tt2 index 145ddd3866..4f3c1ae634 100644 --- a/Open-ILS/src/templates/staff/cat/bucket/record/index.tt2 +++ b/Open-ILS/src/templates/staff/cat/bucket/record/index.tt2 @@ -11,6 +11,7 @@ +[% INCLUDE 'staff/cat/share/marcedit_strings.tt2' %] [% INCLUDE 'staff/circ/share/hold_strings.tt2' %] diff --git a/Open-ILS/src/templates/staff/cat/catalog/index.tt2 b/Open-ILS/src/templates/staff/cat/catalog/index.tt2 index 5abae22f20..c46a026db7 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/index.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/index.tt2 @@ -10,6 +10,7 @@ +[% INCLUDE 'staff/cat/share/marcedit_strings.tt2' %] [% INCLUDE 'staff/circ/share/circ_strings.tt2' %] diff --git a/Open-ILS/src/templates/staff/cat/share/marcedit_strings.tt2 b/Open-ILS/src/templates/staff/cat/share/marcedit_strings.tt2 new file mode 100644 index 0000000000..81b3190395 --- /dev/null +++ b/Open-ILS/src/templates/staff/cat/share/marcedit_strings.tt2 @@ -0,0 +1,12 @@ +[%# Strings for cat/services/marcedit.js %] + + diff --git a/Open-ILS/src/templates/staff/cat/z3950/index.tt2 b/Open-ILS/src/templates/staff/cat/z3950/index.tt2 index af38a12969..291b335344 100644 --- a/Open-ILS/src/templates/staff/cat/z3950/index.tt2 +++ b/Open-ILS/src/templates/staff/cat/z3950/index.tt2 @@ -13,6 +13,7 @@ +[% INCLUDE 'staff/cat/share/marcedit_strings.tt2' %] [% END %] diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js index 1a92f138d0..05d1643644 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js @@ -381,25 +381,25 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap']) '/>', scope: { tag : '=', field: '=', onKeydown: '=', contextFunctions: '=' }, replace: true, - controller : ['$scope', 'egTagTable', - function ( $scope , egTagTable) { + controller : ['$scope', 'egTagTable', 'egCore', + function ( $scope , egTagTable, egCore) { $scope.tag_options = [ function () { var options = [ - { label : 'Add 006', action : function(j1,j2,j3,j4,e) { $scope.contextFunctions.add006(e) } }, - { label : 'Add 007', action : function(j1,j2,j3,j4,e) { $scope.contextFunctions.add007(e) } }, - { label : 'Add/Replace 008', action : function(j1,j2,j3,j4,e) { $scope.contextFunctions.reify008(e) } }, + { label : egCore.strings.ADD_006, action : function(j1,j2,j3,j4,e) { $scope.contextFunctions.add006(e) } }, + { label : egCore.strings.ADD_007, action : function(j1,j2,j3,j4,e) { $scope.contextFunctions.add007(e) } }, + { label : egCore.strings.ADD_REPLACE_008, action : function(j1,j2,j3,j4,e) { $scope.contextFunctions.reify008(e) } }, ]; if (!$scope.field.isControlfield()) { options = options.concat([ - { label : 'Insert field after ', action : function(j1,j2,j3,j4,e) { $scope.contextFunctions.addDatafield(e) } }, - { label : 'Insert field before', action : function(j1,j2,j3,j4,e) { $scope.contextFunctions.addDatafield(e,true) } }, + { label : egCore.strings.INSERT_FIELD_AFTER, action : function(j1,j2,j3,j4,e) { $scope.contextFunctions.addDatafield(e) } }, + { label : egCore.strings.INSERT_FIELD_BEFORE, action : function(j1,j2,j3,j4,e) { $scope.contextFunctions.addDatafield(e,true) } }, ]); } - options.push({ label : 'Delete Field', action : function(j1,j2,j3,j4,e) { $scope.contextFunctions.deleteDatafield(e) } }); + options.push({ label : egCore.strings.DELETE_FIELD, action : function(j1,j2,j3,j4,e) { $scope.contextFunctions.deleteDatafield(e) } }); return options; }, function () { return egTagTable.getFieldTags() }