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=53d9228d173694038ade957efdd155309ee1dfa2;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 --- 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 c79561f1f4..8cf15315e6 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 @@ -77,6 +77,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 c98d0411b5..19baf4cd65 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 @@ -74,6 +74,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 b2df9875a0..5d120c4125 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 @@ -106,7 +106,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 2e12f431a1..249cf80935 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 @@ -52,6 +52,9 @@ + + + {{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 d669400d96..fd993705db 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 @@ -538,6 +538,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) @@ -586,6 +587,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();