From: Bill Erickson Date: Mon, 7 Jul 2014 21:15:12 +0000 (-0400) Subject: patron holds / hold notifications X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4c4770e54d40c7b490ff4461e36cd05fdf0fcdb9;p=working%2FEvergreen.git patron holds / hold notifications Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/circ/share/t_hold_details.tt2 b/Open-ILS/src/templates/staff/circ/share/t_hold_details.tt2 index 475a9d063e..1117ae1c67 100644 --- a/Open-ILS/src/templates/staff/circ/share/t_hold_details.tt2 +++ b/Open-ILS/src/templates/staff/circ/share/t_hold_details.tt2 @@ -58,8 +58,8 @@ [% l('Notes') %]
  • - - [% l('Manual Notifications') %] + + [% l('Staff Notifications') %]
  • @@ -112,6 +112,38 @@ +
    + + + +
    +
    +
    +
    {{notify.method()}}
    +
    +
    + {{notify.notify_time() | date:'short'}} + [% l('Created by [_1]', '{{notify.notify_staff().usrname()}}') %] +
    +
    +
    +
    + +
    +
    +
    +
    {{notify.note()}}
    +
    +
    +
    +
    +
    +
    +
    + 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 f6063b0ed4..5b67f834c4 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 @@ -379,6 +379,17 @@ function($modal , $q , egCore , egAlertDialog , egConfirmDialog , egAlertDialog) }); } + $scope.show_notify_tab = function() { + $scope.detail_tab = 'notify'; + egCore.pcrud.search('ahn', + {hold : $scope.hold.id()}, + {flesh : 1, flesh_fields : {ahn : ['notify_staff']}}, + {atomic : true} + ).then(function(nots) { + $scope.hold.notifications(nots); + }); + } + $scope.delete_note = function(note) { egCore.pcrud.remove(note).then(function() { // remove the deleted note from the locally fleshed notes