Revert "LP#1737812 Remove dead record-level transfer selection"
authorDan Wells <dbw2@calvin.edu>
Mon, 4 Jun 2018 19:42:55 +0000 (15:42 -0400)
committerDan Wells <dbw2@calvin.edu>
Mon, 4 Jun 2018 19:43:30 +0000 (15:43 -0400)
This reverts commit 623159481f6658e0736ebef01b1d86ec1aef2513.

When this branch is ready to push, please squash this and the commit
it reverts.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

index 140a540..5d49ad3 100644 (file)
                 </a>
             </li>
             <li role="menuitem">
+                <a ng-click="markVolTransfer()" href="">
+                    [% l('Volume Transfer') %]
+                    <span class="target-record-aside" ng-if="current_voltransfer_target">[% l('(Currently [_1])', '{{current_voltransfer_target}}') %]</span>
+                </a>
+            </li>
+            <li role="menuitem">
                 <a ng-click="clearRecordMarks()" href="">[% l('Reset Record Marks') %]</a>
             </li>
         </ul>
index 5f225ea..c3505ab 100644 (file)
@@ -443,6 +443,13 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
         ngToast.create(egCore.strings.MARK_CONJ_TARGET);
     };
 
+    $scope.markVolTransfer = function () {
+        ngToast.create(egCore.strings.MARK_VOL_TARGET);
+        $scope.current_voltransfer_target = $scope.record_id;
+        egCore.hatch.setLocalItem('eg.cat.marked_volume_transfer_record',$scope.record_id);
+        egCore.hatch.removeLocalItem('eg.cat.volume_transfer_target');
+    };
+
     $scope.markOverlay = function () {
         $scope.current_overlay_target = $scope.record_id;
         egCore.hatch.setLocalItem('eg.cat.marked_overlay_record',$scope.record_id);