From fca751f65dd2afbb4a7b70d6ab92f49479d22b30 Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Thu, 2 Mar 2017 23:52:30 -0500 Subject: [PATCH] LP#1522644: Make Mark for Hold Transfer option consistent with other options Makes the following changes to the Mark for Holds Transfer Destination option: 1) Changes the label from "Mark As Title Hold Transfer Destination" to "Title Hold Transfer." The 'Mark" piece is already implied in the "Mark For" button label, and the long text was pushing the menu off the screen for some displays. 2) Makes the option behave as other Mark options. If a record is already marked, it displays the marked Record ID in the menu. The mark is also removed when the "Reset Record Marks" option is clicked. 3) Pushes the reset option down to the bottom of the menu and alphabetizes the other Mark options above it. Signed-off-by: Kathy Lussier Signed-off-by: Bill Erickson --- .../templates/staff/cat/catalog/t_catalog.tt2 | 25 ++++++++++--------- .../js/ui/default/staff/cat/catalog/app.js | 5 ++++ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2 b/Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2 index 8509bf3ea1..0848890f8a 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2 @@ -33,32 +33,33 @@ [% l('Mark for:') %] diff --git a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js index 54f63960de..051797008a 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js @@ -387,9 +387,11 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e $scope.current_overlay_target = null; $scope.current_voltransfer_target = null; $scope.current_conjoined_target = null; + $scope.current_hold_transfer_dest = null; egCore.hatch.removeLocalItem('eg.cat.marked_volume_transfer_record'); egCore.hatch.removeLocalItem('eg.cat.marked_conjoined_record'); egCore.hatch.removeLocalItem('eg.cat.marked_overlay_record'); + egCore.hatch.removeLocalItem('eg.circ.hold.title_transfer_target'); } $scope.stop_unload = false; @@ -1440,7 +1442,10 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e }); } + $scope.current_hold_transfer_dest = egCore.hatch.getLocalItem ('eg.circ.hold.title_transfer_target'); + $scope.mark_hold_transfer_dest = function() { + $scope.current_hold_transfer_dest = $scope.record_id; egCore.hatch.setLocalItem( 'eg.circ.hold.title_transfer_target', $scope.record_id); ngToast.create(egCore.strings.HOLD_TRANSFER_DEST_MARKED); -- 2.43.2