From: Mike Rylander Date: Thu, 30 Oct 2014 13:57:11 +0000 (-0400) Subject: LP#1402797 Add patron barcode and alias to hold lists where appropriate X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e705bbe28430a26c9da76ea0edbde5fb6484256c;p=evergreen%2Fpines.git LP#1402797 Add patron barcode and alias to hold lists where appropriate Signed-off-by: Mike Rylander Signed-off-by: Kathy Lussier --- 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 62af9180d0..b21146d9ea 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_holds.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_holds.tt2 @@ -59,6 +59,8 @@ + {{item.patron_barcode}} + {{item.patron_alias}} @@ -78,6 +80,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 df026fa945..6a61744849 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 @@ -48,6 +48,8 @@ + + @@ -67,6 +69,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 161722c6a7..a22201818c 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','egAlertDialog','egConfirmDialog','egAlertDialog', -function($modal , $q , egCore , egAlertDialog , egConfirmDialog , egAlertDialog) { + ['$modal','$q','egCore','egUser','egConfirmDialog','egAlertDialog', +function($modal , $q , egCore , egUser , egConfirmDialog , egAlertDialog) { var service = {}; @@ -366,6 +366,12 @@ function($modal , $q , egCore , egAlertDialog , egConfirmDialog , egAlertDialog) hold.current_shelf_lib(egCore.org.get(hold.current_shelf_lib())); hold_data.id = hold.id(); + if (hold.requestor() && typeof hold.requestor() != 'object') + hold.requestor(egUser.get(hold.requestor())); + + if (hold.usr() && typeof hold.usr() != 'object') + hold.usr(egUser.get(hold.usr())); + // current_copy is not always fleshed in the API if (hold.current_copy() && typeof hold.current_copy() != 'object') hold.current_copy(hold_data.copy);