From: Galen Charlton Date: Tue, 6 Feb 2018 21:56:56 +0000 (-0500) Subject: LP#1738249: sort out circ or renewal workstation X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7aa3855797f1efa1702dcbe5c99f4e813bfb6134;p=contrib%2FConifer.git 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 Signed-off-by: Jason Stephenson --- 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 99a34494b8..09a073dda3 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -89,7 +89,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 b3ecd9f4c7..963c0c92c4 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++; flatCopy.copy_alert_count = copyData.copy.copy_alerts().filter(function(aca) {