From 630e2829840e0e11fb4f2ab0b07530de2591e031 Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Fri, 19 Jan 2018 12:55:03 -0500 Subject: [PATCH] LP#1738249 - Webstaff CircLib should point to item's circ_lib plus misc This addresses some display issues in the webstaff Item Status grid. Besides, correcting the Circ Lib to be the item's and not the circulation,this also fleshes the owning lib. Additionally, I've applied miker's fix to 1743819 in order to prevent a regression. Signed-off by: Cesar Velez --- Open-ILS/src/templates/staff/cat/item/t_list.tt2 | 6 +++--- Open-ILS/web/js/ui/default/staff/circ/services/item.js | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) 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 be0a75bc14..7679b48270 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -83,10 +83,10 @@ - + - + @@ -115,7 +115,7 @@ - + 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 79a8b0fb77..80dbe8ea2a 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 @@ -30,7 +30,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog service.circFlesh = { flesh : 2, flesh_fields : { - circ : [ + combcirc : [ 'usr', 'workstation', 'checkin_workstation', @@ -41,7 +41,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog ], au : ['card'] }, - order_by : {circ : 'xact_start desc'}, + order_by : {combcirc : 'xact_start desc'}, limit : 1 } @@ -89,7 +89,6 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog return service.getCirc(copy.id()) .then(function(circ) { copyData.circ = circ; - return copyData; }); } var fetchSummary = function(circ) { @@ -131,8 +130,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog if (copyData.circ) { // flesh circ_lib locally copyData.circ.circ_lib(egCore.org.get(copyData.circ.circ_lib())); - copyData.circ.checkin_workstation( - egCore.org.get(copyData.circ.checkin_workstation())); + } var flatCopy; @@ -142,6 +140,9 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog function(c) {return c.id == copyData.copy.id()})[0]; } + // flesh acn.owning_lib + copyData.copy.call_number().owning_lib(egCore.org.get(copyData.copy.call_number().owning_lib())); + if (!flatCopy) { flatCopy = egCore.idl.toHash(copyData.copy, true); -- 2.11.0