From 275d24ece6f3d722c9c8f682ab0f79566590e603 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 24 Feb 2016 09:54:29 -0500 Subject: [PATCH] LP#1570091: webstaff: tweak display of fixed fields in MARC editor - Add border to FF boxes - align Source mnewmonic for the day that the seed data exists Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Bill Erickson --- Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 | 3 +-- Open-ILS/src/templates/staff/css/cat.css.tt2 | 4 ++++ Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js | 2 ++ 3 files changed, 7 insertions(+), 2 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 5b61974c94..352da20c2a 100644 --- a/Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 +++ b/Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 @@ -61,7 +61,7 @@
- + @@ -145,7 +145,6 @@ -
diff --git a/Open-ILS/src/templates/staff/css/cat.css.tt2 b/Open-ILS/src/templates/staff/css/cat.css.tt2 index 6502673156..6f51d0f478 100644 --- a/Open-ILS/src/templates/staff/css/cat.css.tt2 +++ b/Open-ILS/src/templates/staff/css/cat.css.tt2 @@ -41,6 +41,10 @@ input.marcedit:focus { max-width: 800px; } +.fixed-field-box { + border: 1px solid gray; +} + .marcsfvalue { border-left: 0px !important; } 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 0a420540a0..c4862f9861 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 @@ -197,6 +197,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap']) replace: true, controller : ['$scope', '$element', 'egTagTable', function ( $scope , $element , egTagTable) { + $($element).removeClass('fixed-field-box'); $($element).children().css({ display : 'none' }); $scope.me = null; $scope.content = null; // this is where context menus dump their values @@ -225,6 +226,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap']) if (ff.fixed_field == $scope.fixedField && ff.rec_type == $scope.rtype) { $scope.me = ff; $scope.ready = true; + $($element).addClass('fixed-field-box'); $($element).children().css({ display : 'inline' }); var input = $($element).find('input'); -- 2.43.2