From c7cd7f3b79dd6f7b66020a156194232d371be2b2 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 6 Feb 2018 16:56:56 -0500 Subject: [PATCH] LP#1738249: sort out circ or renewal workstation This patch uses accs to work out the name of the workstation of the most recent renewal, if it exists, or the original checkout. It implicitly handles the case where the workstation on the original circulation is null. As a bonus, this patch adds an explicit "Last Renewal Workstation" to the item status grid. Signed-off-by: Galen Charlton Signed-off-by: Cesar Velez --- Open-ILS/src/templates/staff/cat/item/t_list.tt2 | 3 ++- Open-ILS/web/js/ui/default/staff/circ/services/item.js | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 index 6980917bde..24c72e961f 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -86,7 +86,8 @@ - + + diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/item.js b/Open-ILS/web/js/ui/default/staff/circ/services/item.js index 9dc319e2f7..380cd319d2 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/item.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/item.js @@ -152,6 +152,11 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog flatCopy._circ_summary = egCore.idl.toHash(copyData.circ_summary, true); flatCopy._circ_lib = copyData.circ.circ_lib(); flatCopy._duration = copyData.circ.duration(); + flatCopy._circ_ws = flatCopy._circ_summary.last_renewal_workstation ? + flatCopy._circ_summary.last_renewal_workstation : + flatCopy._circ_summary.checkout_workstation ? + flatCopy._circ_summary.checkout_workstation : + ''; } flatCopy.index = service.index++; service.copies.unshift(flatCopy); -- 2.11.0