LP#1670448: Rearrange space for bib record action buttons
authorKathy Lussier <klussier@masslnc.org>
Mon, 24 Jul 2017 22:11:41 +0000 (18:11 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 25 Jul 2017 14:11:42 +0000 (10:11 -0400)
The addition of the view/place order button pushed other action buttons to a
2nd row. We also need to make room for the forthcoming serials button. This
commit 1) changes the div classes for the navigation buttons and action buttons
so that it is now a 50/50 split of screen space and 2) moves some action items
into a 'Other Actions' menu.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2

index a2b3a5b..51357fa 100644 (file)
@@ -4,7 +4,7 @@
 </div>
 
 <div ng-show="record_id" class="row col-md-12 pad-vert">
 </div>
 
 <div ng-show="record_id" class="row col-md-12 pad-vert">
-  <div class="col-md-8">
+  <div class="col-md-6">
     <button type="button" ng-disabled="from_route" class="btn btn-default" ng-click="opac_call('rdetailStart')">
        [% l('Start') %]
     </button>
     <button type="button" ng-disabled="from_route" class="btn btn-default" ng-click="opac_call('rdetailStart')">
        [% l('Start') %]
     </button>
        [% l('Back To Results') %] ( {{ search_result_index }} / {{ search_result_hit_count }} )
     </button>
   </div>
        [% l('Back To Results') %] ( {{ search_result_index }} / {{ search_result_hit_count }} )
     </button>
   </div>
-  <div class="col-md-4">
+  <div class="col-md-6">
+    <div class="pull-right">
     <button type="button" class="btn btn-default" ng-click="selectedHoldingsVolCopyAdd()">
         [% l('Add Volumes') %]
     </button>
     <button type="button" class="btn btn-default" ng-click="selectedHoldingsVolCopyAdd()">
         [% l('Add Volumes') %]
     </button>
-    <button type="button" class="btn btn-default" ng-click="add_to_record_bucket()">
-        [% l('Add To Bucket') %]
-    </button>
-    <button type="button" class="btn btn-default" ng-click="view_place_orders()">
-        [% l('View/Place Orders') %]
-    </button>
     <div class="btn-group" uib-dropdown dropdown-append-to-body>
         <button id="mark-for-button" type="button" class="btn btn-default" uib-dropdown-toggle>
             [% l('Mark for:') %] <span class="caret"></span>
     <div class="btn-group" uib-dropdown dropdown-append-to-body>
         <button id="mark-for-button" type="button" class="btn btn-default" uib-dropdown-toggle>
             [% l('Mark for:') %] <span class="caret"></span>
             </li>
         </ul>
     </div>
             </li>
         </ul>
     </div>
+        <div class="btn-group" uib-dropdown dropdown-append-to-body>
+        <button id="other-actions-button" type="button" class="btn btn-default" uib-dropdown-toggle>
+            [% l('Other Actions:') %] <span class="caret"></span>
+        </button>
+        <ul uib-dropdown-menu role="menu" aria-labelledby="other-actions-button">
+             <li role="menuitem">
+                    <a ng-click="add_to_record_bucket()">
+                        [% l('Add To Bucket') %]
+                    </a>
+            </li>
+            <li role="menuitem">
+                   <a ng-click="view_place_orders()">
+                        [% l('View/Place Orders') %]
+                   </a>
+            </li>
+        </ul>
+        </div>
+    </div>
   </div>
 </div>
 
   </div>
 </div>