From a531dcf72fbb8654cb9813da76e36372d4f2531c Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Thu, 22 Oct 2015 16:03:26 -0400 Subject: [PATCH] webstaff: Use the record id to fetch the summary record data in item status Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- Open-ILS/src/templates/staff/cat/item/t_view.tt2 | 2 +- Open-ILS/web/js/ui/default/staff/cat/item/app.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/item/t_view.tt2 b/Open-ILS/src/templates/staff/cat/item/t_view.tt2 index 82920b4324..1859865675 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_view.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_view.tt2 @@ -1,4 +1,4 @@ - + diff --git a/Open-ILS/web/js/ui/default/staff/cat/item/app.js b/Open-ILS/web/js/ui/default/staff/cat/item/app.js index aafea2e1f1..b3ba37b078 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/item/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/item/app.js @@ -242,6 +242,7 @@ function($scope , $q , $location , $routeParams , $timeout , $window , egCore , var copyId = $routeParams.id; $scope.tab = $routeParams.tab || 'summary'; $scope.context.page = 'detail'; + $scope.summaryRecord = null; $scope.edit = false; if ($scope.tab == 'edit') { @@ -252,7 +253,7 @@ function($scope , $q , $location , $routeParams , $timeout , $window , egCore , // use the cached record info if (itemSvc.copy) - $scope.summaryRecord = itemSvc.copy.call_number().record(); + $scope.recordId = itemSvc.copy.call_number().record().id(); function loadCopy(barcode) { $scope.context.itemNotFound = false; @@ -289,7 +290,6 @@ function($scope , $q , $location , $routeParams , $timeout , $window , egCore , $scope.copy = copy; $scope.recordId = copy.call_number().record().id(); - $scope.summaryRecord = itemSvc.copy.call_number().record(); $scope.args.barcode = ''; // locally flesh org units -- 2.11.0