From a6f1a4f27402a1b255b6876df76b73f33238af4e Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Wed, 4 Jan 2017 09:36:21 -0800 Subject: [PATCH] LP#1534787 Patron Message Center port Port patron message center from XUL client to web client. Signed-off-by: Kyle Huckins Signed-off-by: Christine Burns Signed-off-by: Kathy Lussier --- .../src/templates/staff/circ/patron/index.tt2 | 5 +++++ .../staff/circ/patron/t_message_center.tt2 | 2 ++ .../js/ui/default/staff/circ/patron/app.js | 19 +++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 Open-ILS/src/templates/staff/circ/patron/t_message_center.tt2 diff --git a/Open-ILS/src/templates/staff/circ/patron/index.tt2 b/Open-ILS/src/templates/staff/circ/patron/index.tt2 index 407668d773..0cdc45c6c6 100644 --- a/Open-ILS/src/templates/staff/circ/patron/index.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/index.tt2 @@ -145,6 +145,11 @@ angular.module('egCoreMod').run(['egStrings', function(s) { [% l('Triggered Events / Notifications') %] +
  • + + [% l('Message Center') %] + +
  • [% l('Statistical Categories') %] diff --git a/Open-ILS/src/templates/staff/circ/patron/t_message_center.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_message_center.tt2 new file mode 100644 index 0000000000..4a59e274fb --- /dev/null +++ b/Open-ILS/src/templates/staff/circ/patron/t_message_center.tt2 @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js index 630ca9ccb4..2c940096bb 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js @@ -190,6 +190,12 @@ angular.module('egPatronApp', ['ngRoute', 'ui.bootstrap', resolve : resolver }); + $routeProvider.when('/circ/patron/:id/message_center', { + templateUrl: './circ/patron/t_message_center', + controller: 'PatronMessageCenterCtrl', + resolve : resolver + }); + $routeProvider.when('/circ/patron/:id/edit_perms', { templateUrl: './circ/patron/t_edit_perms', controller: 'PatronPermsCtrl', @@ -1640,6 +1646,19 @@ function($scope, $routeParams, $location , egCore , patronSvc) { $scope.funcs = {}; }]) +.controller('PatronMessageCenterCtrl', + ['$scope','$routeParams','$location','egCore','patronSvc', +function($scope, $routeParams, $location , egCore , patronSvc) { + $scope.initTab('other', $routeParams.id); + + var url = $location.protocol() + '://' + $location.host() + + egCore.env.basePath.replace(/\/staff.*/, '/actor/user/message'); + url += '/' + encodeURIComponent($routeParams.id); + + $scope.message_center_url = url; + $scope.funcs = {}; +}]) + .controller('PatronPermsCtrl', ['$scope','$routeParams','$window','$location','egCore', function($scope , $routeParams , $window , $location , egCore) { -- 2.43.2