[open-ils-commits] [GIT] Evergreen ILS branch master updated. a6f1a4f27402a1b255b6876df76b73f33238af4e

Evergreen Git git at git.evergreen-ils.org
Tue Feb 7 00:33:13 EST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  a6f1a4f27402a1b255b6876df76b73f33238af4e (commit)
      from  79fafc21338b69fbd8ec0f6b567f9dc47bb799bd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a6f1a4f27402a1b255b6876df76b73f33238af4e
Author: Kyle Huckins <khuckins at catalystdevworks.com>
Date:   Wed Jan 4 09:36:21 2017 -0800

    LP#1534787 Patron Message Center port
    
    Port patron message center from XUL client to
    web client.
    
    Signed-off-by: Kyle Huckins <khuckins at catalystdevworks.com>
    Signed-off-by: Christine Burns <christine.burns at bc.libraries.coop>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>

diff --git a/Open-ILS/src/templates/staff/circ/patron/index.tt2 b/Open-ILS/src/templates/staff/circ/patron/index.tt2
index 407668d..0cdc45c 100644
--- a/Open-ILS/src/templates/staff/circ/patron/index.tt2
+++ b/Open-ILS/src/templates/staff/circ/patron/index.tt2
@@ -146,6 +146,11 @@ angular.module('egCoreMod').run(['egStrings', function(s) {
             </a>
           </li>
           <li>
+            <a href="./circ/patron/{{patron().id()}}/message_center">
+              [% l('Message Center') %]
+            </a>
+          </li>
+          <li>
             <a href="./circ/patron/{{patron().id()}}/stat_cats">
               [% l('Statistical Categories') %]
             </a>
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 0000000..4a59e27
--- /dev/null
+++ b/Open-ILS/src/templates/staff/circ/patron/t_message_center.tt2
@@ -0,0 +1,2 @@
+<!-- insert the patron registration UI -->
+<eg-embed-frame url="message_center_url" handlers="funcs"></eg-embed-frame>
\ 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 630ca9c..2c94009 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) {

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/templates/staff/circ/patron/index.tt2 |    5 +++++
 .../staff/circ/patron/t_message_center.tt2         |    2 ++
 .../web/js/ui/default/staff/circ/patron/app.js     |   19 +++++++++++++++++++
 3 files changed, 26 insertions(+), 0 deletions(-)
 create mode 100644 Open-ILS/src/templates/staff/circ/patron/t_message_center.tt2


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list