webstaff: tweak headings chooser to take less vertical space
authorGalen Charlton <gmc@esilibrary.com>
Tue, 1 Sep 2015 16:30:32 +0000 (16:30 +0000)
committerJason Stephenson <jstephenson@mvlc.org>
Mon, 14 Sep 2015 19:44:17 +0000 (15:44 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/templates/staff/cat/share/t_authority_browser.tt2
Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js

index f7f2043..ec7428c 100644 (file)
@@ -2,36 +2,36 @@
 <div>
 <ul>
     <li ng-repeat="main in main_headings">
-        {{main.heading}}
-        <div class="row form-inline">
+        <div class="form-inline">
             <button class="btn btn-xs btn-primary" ng-click="applyHeading({hdg : main.headingField})" >[% l('Apply') %]</button>
-            <span style="font-family: 'Lucida Console', Monaco, monospace;">
+            {{main.heading}}
+            (<span style="font-family: 'Lucida Console', Monaco, monospace;">
                 <span ng-repeat="sf in main.headingField.subfields">
                     <span class="marcsfcodedelimiter">‡{{sf.0}}</span> {{sf.1}}
                 </span>
-            </span>
+            </span>)
         </div>
         <ul ng-if="main.seefrom_headings || main.seealso_headings">
             <li ng-repeat="seefrom in main.seefrom_headings">
-                [% l('See from: [_1]', '{{seefrom.heading}}') %]
-                <div class="row form-inline">
+                <div class="form-inline">
                     <button class="btn btn-xs btn-warning" ng-click="applyHeading({hdg : seefrom.headingField})">[% l('Apply') %]</button>
-                    <span style="font-family: 'Lucida Console', Monaco, monospace;">
+                    [% l('See from: [_1]', '{{seefrom.heading}}') %]
+                    (<span style="font-family: 'Lucida Console', Monaco, monospace;">
                         <span ng-repeat="sf in seefrom.headingField.subfields">
                             <span class="marcsfcodedelimiter">‡{{sf.0}}</span> {{sf.1}}
                         </span>
-                    </span>
+                    </span>)
                 </div>
             </li>
             <li ng-repeat="seealso in main.seealso_headings">
-                [% l('See also: [_1]', '{{seealso.heading}}') %]
-                <div class="row form-inline">
+                <div class="form-inline">
                     <button class="btn btn-xs btn-warning" ng-click="applyHeading({hdg : seealso.headingField})">[% l('Apply') %]</button>
-                    <span style="font-family: 'Lucida Console', Monaco, monospace;">
+                    [% l('See also: [_1]', '{{seealso.heading}}') %]
+                    (<span style="font-family: 'Lucida Console', Monaco, monospace;">
                         <span ng-repeat="sf in seealso.headingField.subfields">
                             <span class="marcsfcodedelimiter">‡{{sf.0}}</span> {{sf.1}}
                         </span>
-                    </span>
+                    </span>)
                 </div>
             </li>
         </ul>
index 97574cc..415f32d 100644 (file)
@@ -397,7 +397,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap'])
                     var args = { changed : false };
                     $modal.open({
                         templateUrl: './cat/share/t_authority_link_dialog',
-                        size: 'md',
+                        size: 'lg',
                         controller: ['$scope', '$modalInstance', function($scope, $modalInstance) {
                             $scope.controlSet = cs;
                             $scope.bibField = fieldCopy;
@@ -1306,7 +1306,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap'])
             function ($scope , $http) {
 
                 $scope.page = 0;
-                $scope.limit = 10;
+                $scope.limit = 5;
                 $scope.main_headings = [];
 
                 function getHeadingString(headingField) {