From d57d767456ae29ef8aabbbd9a5d440f6ae5f7220 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 Signed-off-by: Dawn Dale Signed-off-by: Kathy Lussier Signed-off-by: Galen Charlton Conflicts: Open-ILS/src/templates/staff/cat/item/t_list.tt2 --- Open-ILS/src/templates/staff/cat/catalog/t_holds.tt2 | 2 ++ Open-ILS/src/templates/staff/cat/item/t_list.tt2 | 2 +- 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(+), 3 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 f793a6665e..aafa7791fe 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 f448c0d293..42dd3f2304 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -65,7 +65,7 @@ {{item['_circ']['due_date'] | date:'short'}} - + 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 b2df9875a0..70354138e0 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 7487404496..eaeb4b4199 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 27aae5e1d1..204d2a5319 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 @@ -462,8 +462,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