webstaff: MARC editor button layout improvement
authorMike Rylander <mrylander@gmail.com>
Fri, 4 Sep 2015 20:47:43 +0000 (16:47 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Mon, 14 Sep 2015 19:44:20 +0000 (15:44 -0400)
Also, add mark-vol-transfer-dest and mark-conjoined-dest

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2
Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js

index 9dea0d4..dd6932c 100644 (file)
@@ -1,5 +1,19 @@
 <div>
   <div ng-show="bre" class="row pad-vert marcfastitemadd" ng-hide="brandNewRecord">
+    <div class="col-md-5">
+      <label>[% l('Mark for:') %]</label>
+      <div class="btn-group">
+        <span class="btn-group">
+          <button class="btn btn-default" ng-click="markOverlay()">[% l('Overlay Target') %]</button>
+        </span>
+        <span class="btn-group">
+          <button class="btn btn-default" ng-click="markVolTransfer()">[% l('Volume Transfer') %]</button>
+        </span>
+        <span class="btn-group">
+          <button class="btn btn-default" ng-click="markConjoined()">[% l('Conjoined Items') %]</button>
+        </span>
+      </div>
+    </div>
     <div class="col-md-2">
       <label><input type="checkbox" ng-model="enable_fast_add"/> [% l('Add Item') %]</label>
     </div>
@@ -27,7 +41,7 @@
     <div ng-if="bre" class="col-md-2">
       <eg-marc-edit-bibsource/>
     </div>
-    <div class="col-md-6">
+    <div class="col-md-3">
       <div class="btn-group">
         <span class="btn-group">
           <button class="btn btn-default" ng-show="record_type == 'bre'" ng-click="validateHeadings()">[% l('Validate') %]</button>
           <button class="btn btn-default" ng-click="saveRecord()">[% l('Save') %]</button>
         </span>
         <span class="btn-group">
-          <button class="btn btn-default" ng-click="seeBreaker()">[% l('Breaker') %]</button>
-        </span>
-        <span class="btn-group">
           <button ng-hide="brandNewRecord || Record().deleted()" class="btn btn-default" ng-click="deleteRecord()">[% l('Delete') %]</button>
           <button ng-if="!brandNewRecord && Record().deleted()" class="btn btn-default" ng-click="undeleteRecord()">[% l('Undelete') %]</button>
         </span>
       </div>
     </div>
-    <div class="col-md-1" ng-hide="brandNewRecord">
-      <button class="btn btn-default" ng-click="markOverlay()">[% l('Mark as Overlay Target') %]</button>
-    </div>
   </div>
 
   <div ng-show="flatEditor">
index a8df2aa..d081f0c 100644 (file)
@@ -1110,6 +1110,14 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap'])
                     alert($scope.record.toBreaker());
                 };
 
+                $scope.markConjoined = function () {
+                    egCore.hatch.setLocalItem('eg.cat.marked_conjoined_record',$scope.recordId);
+                };
+
+                $scope.markVolTransfer = function () {
+                    egCore.hatch.setLocalItem('eg.cat.marked_volume_transfer_record',$scope.recordId);
+                };
+
                 $scope.markOverlay = function () {
                     egCore.hatch.setLocalItem('eg.cat.marked_overlay_record',$scope.recordId);
                 };