LP#1570091: webstaff: tweak display of fixed fields in MARC editor
authorMike Rylander <mrylander@gmail.com>
Wed, 24 Feb 2016 14:54:29 +0000 (09:54 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 20 Apr 2016 14:51:32 +0000 (10:51 -0400)
- Add border to FF boxes
- align Source mnewmonic for the day that the seed data exists

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2
Open-ILS/src/templates/staff/css/cat.css.tt2
Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js

index 5b61974..352da20 100644 (file)
@@ -61,7 +61,7 @@
         <div class="row col-md-12">
             <eg-marc-edit-fixed-field fixed-field="Type" record="record"></eg-marc-edit-fixed-field>
             <eg-marc-edit-fixed-field fixed-field="ELvl" record="record"></eg-marc-edit-fixed-field>
-            <eg-marc-edit-fixed-field fixed-field="Srce" record="record"></eg-marc-edit-fixed-field>
+            <eg-marc-edit-fixed-field fixed-field="Source" record="record"></eg-marc-edit-fixed-field>
             <eg-marc-edit-fixed-field fixed-field="Audn" record="record"></eg-marc-edit-fixed-field>
             <eg-marc-edit-fixed-field fixed-field="Ctrl" record="record"></eg-marc-edit-fixed-field>
             <eg-marc-edit-fixed-field fixed-field="Lang" record="record"></eg-marc-edit-fixed-field>
             <eg-marc-edit-fixed-field fixed-field="Name" record="record"></eg-marc-edit-fixed-field>
             <eg-marc-edit-fixed-field fixed-field="Status" record="record"></eg-marc-edit-fixed-field>
             <eg-marc-edit-fixed-field fixed-field="ModRec" record="record"></eg-marc-edit-fixed-field>
-            <eg-marc-edit-fixed-field fixed-field="Source" record="record"></eg-marc-edit-fixed-field>
         </div>
       </div>
     </div>
index 6502673..6f51d0f 100644 (file)
@@ -41,6 +41,10 @@ input.marcedit:focus {
     max-width: 800px;
 }
 
+.fixed-field-box {
+    border: 1px solid gray;
+}
+
 .marcsfvalue {
     border-left: 0px !important;
 }
index 0a42054..c4862f9 100644 (file)
@@ -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');