LP#1402797 Code layout cleanup
authorMike Rylander <mrylander@gmail.com>
Fri, 13 Feb 2015 18:17:32 +0000 (13:17 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 25 Feb 2015 16:16:09 +0000 (11:16 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js

index ae699b2..7580a14 100644 (file)
@@ -36,14 +36,20 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap'])
     return {
         restrict: 'E',
         replace: true,
-        template: '<input style="font-family: \'Lucida Console\', Monaco, monospace;" ng-model="content" size="{{content.length * 1.1}}" maxlength="{{max}}" class="" type="text"/>',
+        template: '<input '+
+                      'style="font-family: \'Lucida Console\', Monaco, monospace;" '+
+                      'ng-model="content" '+
+                      'size="{{content.length * 1.1}}" '+
+                      'maxlength="{{max}}" '+
+                      'class="" '+
+                      'type="text" '+
+                  '/>',
         scope: {
             field: '=',
             onKeydown: '=',
             subfield: '=',
             content: '=',
             contextItemContainer: '@',
-            idPath: '=',
             max: '@',
             itype: '@'
         },
@@ -161,7 +167,14 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap'])
     return {
         transclude: true,
         restrict: 'E',
-        template: '<span><eg-marc-edit-editable itype="ind" field="field" content="ind" max="1" on-keydown="onKeydown" id="r{{field.record.subfield(\'901\',\'c\')[1]}}f{{field.position}}i{{indNumber}}"/></span>',
+        template: '<span><eg-marc-edit-editable '+
+                      'itype="ind" '+
+                      'field="field" '+
+                      'content="ind" '+
+                      'max="1" '+
+                      'on-keydown="onKeydown" '+
+                      'id="r{{field.record.subfield(\'901\',\'c\')[1]}}f{{field.position}}i{{indNumber}}"'+
+                      '/></span>',
         scope: { ind : '=', field: '=', onKeydown: '=', indNumber: '@' },
         replace: false,
     }
@@ -171,7 +184,14 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap'])
     return {
         transclude: true,
         restrict: 'E',
-        template: '<span><eg-marc-edit-editable itype="tag" field="field" content="tag" max="3" on-keydown="onKeydown" id="r{{field.record.subfield(\'901\',\'c\')[1]}}f{{field.position}}tag"/></span>',
+        template: '<span><eg-marc-edit-editable '+
+                      'itype="tag" '+
+                      'field="field" '+
+                      'content="tag" '+
+                      'max="3" '+
+                      'on-keydown="onKeydown" '+
+                      'id="r{{field.record.subfield(\'901\',\'c\')[1]}}f{{field.position}}tag"'+
+                      '/></span>',
         scope: { tag : '=', field: '=', onKeydown: '=' },
         replace: false
     }
@@ -197,7 +217,14 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap'])
         restrict: 'E',
         template: '<div>'+
                     '<span><eg-marc-edit-tag class="marctag" field="field" tag="field.tag" on-keydown="onKeydown"/></span>'+
-                    '<span><eg-marc-edit-editable itype="cfld" field="field" class="marcdata" content="field.data" on-keydown="onKeydown" id="r{{field.record.subfield(\'901\',\'c\')[1]}}f{{field.position}}data"/></span>'+
+                    '<span><eg-marc-edit-editable '+
+                      'itype="cfld" '+
+                      'field="field" '+
+                      'class="marcdata" '+
+                      'content="field.data" '+
+                      'on-keydown="onKeydown" '+
+                      'id="r{{field.record.subfield(\'901\',\'c\')[1]}}f{{field.position}}data"'+
+                      '/></span>'+
                   '</div>',
         scope: { field: "=", onKeydown: '=' }
     }
@@ -208,8 +235,21 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap'])
         transclude: true,
         restrict: 'E',
         template: '<div>'+
-                    '<span><eg-marc-edit-editable class="marctag" content="tag" on-keydown="onKeydown" id="leadertag" disabled="disabled"/></span>'+
-                    '<span><eg-marc-edit-editable class="marcdata" itype="ldr" max="{{record.leader.length}}" content="record.leader" id="r{{record.subfield(\'901\',\'c\')[1]}}leaderdata" on-keydown="onKeydown"/></span>'+
+                    '<span><eg-marc-edit-editable '+
+                      'class="marctag" '+
+                      'content="tag" '+
+                      'on-keydown="onKeydown" '+
+                      'id="leadertag" '+
+                      'disabled="disabled"'+
+                      '/></span>'+
+                    '<span><eg-marc-edit-editable '+
+                      'class="marcdata" '+
+                      'itype="ldr" '+
+                      'max="{{record.leader.length}}" '+
+                      'content="record.leader" '+
+                      'id="r{{record.subfield(\'901\',\'c\')[1]}}leaderdata" '+
+                      'on-keydown="onKeydown"'+
+                      '/></span>'+
                   '</div>',
         controller : ['$scope',
             function ( $scope ) {