From e949ada0a1d6d98f1836a5f9e96fbbadc85bd416 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 Signed-off-by: Terran McCanna Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- Open-ILS/src/templates/staff/cat/item/t_list.tt2 | 6 +++--- Open-ILS/web/js/ui/default/staff/circ/services/item.js | 6 ++++-- 2 files changed, 7 insertions(+), 5 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 64bf4987ea..521d780f75 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -86,10 +86,10 @@ - + - + @@ -118,7 +118,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 4e752bdcbb..16b97fab8a 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 @@ -131,8 +131,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 +141,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.43.2