From fb2efae80ebaf7a3427cb3586bc42b3d823bf199 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Mon, 26 Mar 2018 14:52:27 -0400 Subject: [PATCH] LP#1759350: Allow translation of fixed field mnemonics Signed-off-by: Mike Rylander Signed-off-by: Ben Shum --- .../templates/staff/cat/share/t_marcedit.tt2 | 128 +++++++++--------- .../ui/default/staff/cat/services/marcedit.js | 5 +- 2 files changed, 67 insertions(+), 66 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 b/Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 index c9dfdbcbca..7ec1ee14c1 100644 --- a/Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 +++ b/Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 @@ -59,92 +59,92 @@
- - - - - - + + + + + +
- - - - - - + + + + + +
- - - - - - + + + + + +
- - - - - - + + + + + +
- - - - - + + + + +
- - - - - - + + + + + +
- - - - + + + +
- - - - + + + +
- - - - - - + + + + + +
- - - - - - + + + + + +
- - - - - - + + + + + +
- - - + + +
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 c4708ea92b..1085e6312e 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 @@ -222,15 +222,16 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap']) transclude: true, restrict: 'E', template: '
'+ - '
'+ + '
'+ '
'+ '
', - scope: { record: "=", fixedField: "@" }, + scope: { record: "=", fixedField: "@", fixedFieldLabel: "@" }, replace: true, controller : ['$scope', '$element', 'egTagTable', function ( $scope , $element , egTagTable) { $($element).removeClass('fixed-field-box'); $($element).children().css({ display : 'none' }); + $scope.fixedFieldLabel = $scope.fixedFieldLabel || $scope.fixedField; $scope.me = null; $scope.content = null; // this is where context menus dump their values $scope.item_container = []; -- 2.43.2