From 16f2447321c3c28fe2a8f8206467c6740dcb3359 Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Wed, 14 Jun 2017 17:14:14 -0400 Subject: [PATCH] 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 --- .../src/templates/staff/circ/checkin/t_checkin_table.tt2 | 1 + Open-ILS/src/templates/staff/circ/patron/t_bills_list.tt2 | 5 +++++ Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 | 1 + Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 | 2 ++ Open-ILS/web/js/ui/default/staff/circ/patron/holds.js | 1 + Open-ILS/web/js/ui/default/staff/circ/services/circ.js | 8 +++++++- 6 files changed, 17 insertions(+), 1 deletion(-) 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 e14f1178a4..0ccf9e4bbe 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 da171428b6..c9c59bbfa6 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 ec975ae749..c59c43e108 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 @@ -55,6 +55,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 1e51cde659..41e0223308 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 @@ -58,6 +58,7 @@ function($scope, $q, $routeParams, egCore, egUser, patronSvc, //var ids = patronSvc.hold_ids.slice(offset, offset + count); return egHolds.fetch_holds(patronSvc.hold_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 baf79c9670..00dc29332a 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)); @@ -540,6 +539,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) @@ -594,6 +594,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(); -- 2.43.2