From: Cesar Velez Date: Fri, 9 Jun 2017 21:36:16 +0000 (-0400) Subject: LP#1661685 - Adds missing Circulation Modifier column to several grids X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bebc5dc53a89d342b621216b4cc66d8c3e77e76d;p=working%2FEvergreen.git LP#1661685 - Adds missing Circulation Modifier column to several grids Some views like the Checkout,CheckIn, Holds, And Bills did not display the copy's circ_modifier field. Also added egCirc.flesh_copy_circ_modifier() Signed-off by: Cesar Velez Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 b/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 index 920ee2b9e1..e14f1178a4 100644 --- a/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 +++ b/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 @@ -78,6 +78,7 @@ + diff --git a/Open-ILS/src/templates/staff/circ/patron/t_bills_list.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_bills_list.tt2 index 6d176be1e6..b83196f422 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_bills_list.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_bills_list.tt2 @@ -78,6 +78,9 @@ label="[% l('Copy ID') %]" name="copy_id" required hidden> + + diff --git a/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 index 3210a53948..da171428b6 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 @@ -107,7 +107,7 @@ - + diff --git a/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 index 5fa3b96105..ec975ae749 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 @@ -53,6 +53,8 @@ + + {{item.hold.current_copy().circ_modifier()}} diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js index c217f252f2..baf79c9670 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js @@ -540,6 +540,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, promises.push(service.flesh_copy_location(payload.copy)); if (payload.copy) { + promises.push(service.flesh_copy_circ_modifier(payload.copy)); promises.push( service.flesh_copy_status(payload.copy) @@ -593,6 +594,19 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, return $q.all(promises); } + // fetches the full list of circ modifiers + service.flesh_copy_circ_modifier = function(copy) { + if (!copy) return $q.when(); + if (egCore.env.ccm) + return $q.when(copy.circ_modifier(egCore.env.ccm.map[copy.circ_modifier()])); + return egCore.pcrud.retrieveAll('ccm', {}, {atomic : true}).then( + function(list) { + egCore.env.absorbList(list, 'ccm'); + copy.circ_modifier(egCore.env.ccm.map[copy.circ_modifier()]); + } + ); + } + // fetches the full list of copy statuses service.flesh_copy_status = function(copy) { if (!copy) return $q.when();