From dcf52caab8f188d250ac82fd9e6b95fa07a1f320 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 9 Aug 2017 16:41:53 -0400 Subject: [PATCH] LP#1709476 Copy summary aged circ display repair Always check active and aged circs (via "aacs" class) for circs to display for a given copy in the item status Quick Summary and Recent Circ History tabs. When a aged circ is encountered, display the '' tag in lieu of the patron's name. To test: [1] Checkout and checkin a copy. [2] Checkout and checkin the same copy to a different patron [3] Manually delete the 2nd circulation in the database. [4] Load the Item Status interface for the copy. [5] Confirm chekout time, etc. for the 2nd show in the Quick Summary circulation data. [6] Confirm the patron displayed under the 'Recent Circ History' tab shows '' Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/cat/item/t_circs_pane.tt2 | 7 +++++-- Open-ILS/web/js/ui/default/staff/cat/item/app.js | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/item/t_circs_pane.tt2 b/Open-ILS/src/templates/staff/cat/item/t_circs_pane.tt2 index 8a165b32e1..be36803831 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_circs_pane.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_circs_pane.tt2 @@ -23,7 +23,7 @@ [% l('') | html %] - + @@ -109,13 +109,16 @@
[% l('Patron') %]
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 7bd717d3b6..8d73b9d456 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 @@ -1449,11 +1449,11 @@ function($scope , $q , $location , $routeParams , $timeout , $window , egCore , delete $scope.prev_circ_usr; if (!copyId) return; - egCore.pcrud.search('circ', + egCore.pcrud.search('aacs', {target_copy : copyId}, { flesh : 2, flesh_fields : { - circ : [ + aacs : [ 'usr', 'workstation', 'checkin_workstation', @@ -1463,7 +1463,7 @@ function($scope , $q , $location , $routeParams , $timeout , $window , egCore , ], au : ['card'] }, - order_by : {circ : 'xact_start desc'}, + order_by : {aacs : 'xact_start desc'}, limit : 1 } -- 2.43.2