From a1a01f7c692203786a5a0158b613a0985a5ff4c3 Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Tue, 25 Oct 2016 10:12:56 -0700 Subject: [PATCH] LP#1621178 Copy Status Picker Add copy status field to patron items out, patron checkout, patron hold, item holds pane, holds shelf, and item status grids. Signed-off-by: Kyle Huckins Changes to be committed: modified: Open-ILS/src/templates/staff/cat/catalog/t_holds.tt2 modified: Open-ILS/src/templates/staff/cat/item/t_list.tt2 modified: Open-ILS/src/templates/staff/circ/holds/t_shelf_list.tt2 modified: Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 modified: Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 modified: Open-ILS/src/templates/staff/circ/patron/t_items_out.tt2 modified: Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js modified: Open-ILS/web/js/ui/default/staff/circ/services/holds.js --- Open-ILS/src/templates/staff/cat/catalog/t_holds.tt2 | 2 ++ Open-ILS/src/templates/staff/cat/item/t_list.tt2 | 1 + Open-ILS/src/templates/staff/circ/holds/t_shelf_list.tt2 | 2 ++ 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/src/templates/staff/circ/patron/t_items_out.tt2 | 1 + Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js | 2 +- Open-ILS/web/js/ui/default/staff/circ/services/holds.js | 8 +++++++- 8 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/catalog/t_holds.tt2 b/Open-ILS/src/templates/staff/cat/catalog/t_holds.tt2 index c88663f5f3..31ff5b0832 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_holds.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_holds.tt2 @@ -88,6 +88,8 @@ + diff --git a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 index 596a24b4d1..37146a8f96 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -56,6 +56,7 @@ + diff --git a/Open-ILS/src/templates/staff/circ/holds/t_shelf_list.tt2 b/Open-ILS/src/templates/staff/circ/holds/t_shelf_list.tt2 index 1e3cfa4fd3..87dde9b66e 100644 --- a/Open-ILS/src/templates/staff/circ/holds/t_shelf_list.tt2 +++ b/Open-ILS/src/templates/staff/circ/holds/t_shelf_list.tt2 @@ -89,6 +89,8 @@ + 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 861841988e..6c4d2978ea 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 @@ -109,6 +109,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 1406f48abf..2e12f431a1 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 @@ -73,6 +73,8 @@ + 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 270ef908fe..a5a1ed71b9 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 @@ -91,6 +91,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 51135918e2..799cb7fa23 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 @@ -98,7 +98,7 @@ function($scope, $q, $routeParams, $timeout, egCore , egUser, patronSvc , $ { flesh : 4, flesh_fields : { circ : ['target_copy', 'workstation', 'checkin_workstation'], - acp : ['call_number', 'holds_count'], + acp : ['call_number', 'holds_count', 'status'], acn : ['record'], bre : ['simple_record'] }, diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/holds.js b/Open-ILS/web/js/ui/default/staff/circ/services/holds.js index 2b2ed7740d..a35d7872ff 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/holds.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/holds.js @@ -450,8 +450,14 @@ function($uibModal , $q , egCore , egConfirmDialog , egAlertDialog) { egCore.pcrud.retrieve('au',hold.usr()).then(function(u) { hold.usr(u) }); // current_copy is not always fleshed in the API - if (hold.current_copy() && typeof hold.current_copy() != 'object') + if (hold.current_copy() && typeof hold.current_copy() != 'object') { hold.current_copy(hold_data.copy); + + // likewise, current_copy's status isn't fleshed in the API + if(hold.current_copy().status() && typeof hold.current_copy().status() != 'object') + egCore.pcrud.retrieve('ccs',hold.current_copy().status() + ).then(function(c) { hold.current_copy().status(c) }); + } } return service; -- 2.11.0