From: Cesar Velez Date: Wed, 14 Jun 2017 21:14:14 +0000 (-0400) Subject: LP#1661685 - Adds circ library column to staff webclient grids X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6a7d3543eea3614fb9cb5a25a344721585f0bb5f;p=working%2FEvergreen.git LP#1661685 - Adds circ library column to staff webclient grids Circulation Library was missing as an option from several grids Added also function to flesh out circ_lib.shortname to display name. 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 f651e1a144..d0a3a69a31 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 @@ -79,6 +79,7 @@ path="acn.label" hidden> + 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 b83196f422..db1d85c888 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 @@ -81,6 +81,11 @@ + + + + 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 15f9ea83bb..656cb6a7bc 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 @@ -108,6 +108,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 cc4cbbbdae..3c979f62fd 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 @@ -56,6 +56,8 @@ {{item.hold.current_copy().circ_modifier()}} + + {{item.hold.current_copy().circ_lib().shortname()}} diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/holds.js b/Open-ILS/web/js/ui/default/staff/circ/patron/holds.js index ddbf1d8692..532330c8dd 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/holds.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/holds.js @@ -53,6 +53,7 @@ function($scope, $q, $routeParams, egCore, egUser, patronSvc, var ids = patronSvc.hold_ids.slice(offset, offset + count); return egHolds.fetch_holds(ids).then(null, null, function(hold_data) { + egCirc.flesh_copy_circ_library(hold_data.copy); patronSvc.holds.push(hold_data); return hold_data; } 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 fd993705db..5254e4fdc8 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 @@ -121,7 +121,6 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, // options : non-parameter controls. e.g. "override", "check_barcode" service.checkout = function(params, options) { if (!options) options = {}; - console.debug('egCirc.checkout() : ' + js2JSON(params) + ' : ' + js2JSON(options)); @@ -538,6 +537,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, promises.push(service.flesh_copy_location(payload.copy)); if (payload.copy) { + promises.push(service.flesh_copy_circ_library(payload.copy)); promises.push(service.flesh_copy_circ_modifier(payload.copy)); promises.push( service.flesh_copy_status(payload.copy) @@ -587,6 +587,12 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, return $q.all(promises); } + service.flesh_copy_circ_library = function(copy) { + if (!copy) return $q.when(); + + return $q.when(copy.circ_lib(egCore.org.get( copy.circ_lib() ))); + } + // fetches the full list of circ modifiers service.flesh_copy_circ_modifier = function(copy) { if (!copy) return $q.when();