From 79fa09d2ac0963a58a20489c0291873583760a99 Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Tue, 12 Jun 2018 14:20:03 -0400 Subject: [PATCH] LP#1773417 Revamp item and call number tranfers This commit attempts to achieve the goals of both simplification and feature completeness/flexibility. In brief, limit the number of marking and transfer options, then have the code decide the right action to take given the circumstances. There are now just two "marking" actions, one at the record level, one at the holdings level. The holdings level mark will automatically mark the destination as specifically as possible from the selected row, which means either to the library or call number (vol) level. We are also now down to two transfer options: transfer the selected item, or transfer the selected call number. Either option will use as much given context as possible, then fill in any blanks with reasonable defaults and actions. As part of the change, a number of functions and variables are also renamed. This is all done for clarification, and in most cases is due to the variable or function now being used more generally (i.e. it is used in both the item and vol context, so it is confusing to be named 'volume_transfer_target', etc.). Finally, clear up a fair bit of now redundant and unused code. Signed-off-by: Dan Wells Signed-off-by: Mike Rylander --- .../src/templates/staff/cat/catalog/t_holdings.tt2 | 20 +------------------- Open-ILS/web/js/ui/default/staff/cat/catalog/app.js | 1 - 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 b/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 index 38490be6dd..db8479a9b8 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 @@ -49,9 +49,6 @@ label="[% l('Request Items') %]"> - - -<<<<<<< HEAD -======= - - - - - ->>>>>>> 77ed2fe... LP#1737812: Simplify holdings tranfser options 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 d37993a534..2988d9504c 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 @@ -1417,7 +1417,6 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e // or vol-collapsed row egCore.hatch.removeLocalItem('eg.cat.transfer_target_vol'); } - ngToast.create(egCore.strings.MARK_HOLDINGS_TARGET); } -- 2.11.0