From 49c1dbc6f06a299ecbf1780f5b3439322f5b38aa Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 3 Dec 2014 10:54:34 -0500 Subject: [PATCH] LP#1402797 Add usr and requestor columns to the hold pull list Signed-off-by: Mike Rylander Signed-off-by: Kathy Lussier --- Open-ILS/src/templates/staff/circ/holds/t_shelf_list.tt2 | 2 ++ Open-ILS/web/js/ui/default/staff/circ/services/holds.js | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) 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 e47f713c3f..598d86ee3c 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 @@ -79,6 +79,8 @@ + + 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 ee2fa79449..b155085dac 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 @@ -6,8 +6,8 @@ angular.module('egCoreMod') .factory('egHolds', - ['$modal','$q','egCore','egUser','egConfirmDialog','egAlertDialog', -function($modal , $q , egCore , egUser , egConfirmDialog , egAlertDialog) { + ['$modal','$q','egCore','egConfirmDialog','egAlertDialog', +function($modal , $q , egCore , egConfirmDialog , egAlertDialog) { var service = {}; @@ -410,10 +410,10 @@ function($modal , $q , egCore , egUser , egConfirmDialog , egAlertDialog) { hold_data.id = hold.id(); if (hold.requestor() && typeof hold.requestor() != 'object') - hold.requestor(egUser.get(hold.requestor())); + egCore.pcrud.retrieve('au',hold.requestor()).then(function(u) { hold.requestor(u) }); if (hold.usr() && typeof hold.usr() != 'object') - hold.usr(egUser.get(hold.usr())); + 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') -- 2.11.0