LP#1570091: webstaff: fix transfer Volumes to Previously Marked Library
authorGalen Charlton <gmc@esilibrary.com>
Thu, 31 Mar 2016 20:47:02 +0000 (16:47 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 20 Apr 2016 14:51:32 +0000 (10:51 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

index 28bb55e..bde7ca2 100644 (file)
@@ -83,7 +83,7 @@
 
     <eg-grid-action handler="transferVolumesToRecord" group="[% l('Transfer') %]"
       label="[% l('Volumes to Previously Marked Record') %]"></eg-grid-action>
-    <eg-grid-action handler="transferVolumes" group="[% l('Transfer') %]"
+    <eg-grid-action handler="transferVolumesLibrary" group="[% l('Transfer') %]"
       label="[% l('Volumes to Previously Marked Library') %]"></eg-grid-action>
     <eg-grid-action handler="transferVolumesToRecordAndLibrary" group="[% l('Transfer') %]"
       label="[% l('Volumes to Previously Marked Record and Library') %]"></eg-grid-action>
index 098cabf..a635b9c 100644 (file)
@@ -1090,7 +1090,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
         });
     }
 
-    $scope.transferVolumes = function (new_record){
+    function transferVolumes(new_record){
         var xfer_target = egCore.hatch.getLocalItem('eg.cat.volume_transfer_target');
 
         if (xfer_target) {
@@ -1116,10 +1116,14 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
         
     }
 
+    $scope.transferVolumesToLibrary = function() {
+        transferVolumes();
+    }
+
     $scope.transferVolumesToRecordAndLibrary = function() {
         var target_record = egCore.hatch.getLocalItem('eg.cat.marked_volume_transfer_record');
         if (!target_record) return;
-        $scope.transferVolumes(target_record);
+        transferVolumes(target_record);
     }
 
     // this "transfers" selected copies to a new owning library,