From 038a4007470834cb449e5110c2bb395a86efe0a7 Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Fri, 24 May 2019 17:16:00 +0000 Subject: [PATCH] lp1789257 Items Out Monograph Part Column Retrieve and display the label of all monograph parts for copy listed in the Items Out table To test ------- [1] Apply the patch. [2] Check out an item that has one or more monograph parts linked to it. [3] Verify that the Monograph Part column is available in the Items Out grid and displays the part label(s). An example of an item in the Concerto set that has a part is CONC70001420. Signed-off-by: Kyle Huckins Signed-off-by: Garry Collum Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/circ/patron/t_items_out.tt2 | 1 + Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/t_items_out.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_items_out.tt2 index c425ad1b65..6c10e6fda0 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_items_out.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_items_out.tt2 @@ -106,6 +106,7 @@ + diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js b/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js index 92184a11fa..f0a795fa2c 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js @@ -108,7 +108,8 @@ function($scope , $q , $routeParams , $timeout , egCore , egUser , patronSvc , { flesh : 4, flesh_fields : { circ : ['target_copy', 'workstation', 'checkin_workstation'], - acp : ['call_number', 'holds_count', 'status', 'circ_lib', 'location', 'floating', 'age_protect'], + acp : ['call_number', 'holds_count', 'status', 'circ_lib', 'location', 'floating', 'age_protect', 'parts'], + acpm : ['part'], acn : ['record', 'owning_lib', 'prefix', 'suffix'], bre : ['wide_display_entry'] }, @@ -140,6 +141,9 @@ function($scope , $q , $routeParams , $timeout , egCore , egUser , patronSvc , isbn : function() {return circ.target_copy().dummy_isbn()} }) } + circ._parts = circ.target_copy().parts().map(function(part) { + return part.label() + }).join(','); // call open-ils to get overdue notice count and Last notice date -- 2.43.2