webstaff: browser: closed dates / research missing dump() func
authorBill Erickson <berickxx@gmail.com>
Wed, 29 Jul 2015 13:33:26 +0000 (09:33 -0400)
committerKathy Lussier <klussier@masslnc.org>
Tue, 2 Feb 2016 19:58:52 +0000 (14:58 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/staff/admin/local/t_splash.tt2
Open-ILS/web/js/ui/default/staff/admin/local/app.js

index 9505bc3..701286b 100644 (file)
       </a>
     </div>
   </div>
+  <div class="row new-entry">
+    <div class="col-md-3">
+      <span class="glyphicon glyphicon-pencil"></span>
+      <a target="_self" href="./admin/local/actor/closed_dates">
+        [% l('Closed Dates Editor') %]
+      </a>
+    </div>
+  </div>
 
 </div>
 
index e2ecfa8..b3716f7 100644 (file)
@@ -14,7 +14,14 @@ angular.module('egLocalAdmin',
     // non-conify routes come first
     $routeProvider.when('/admin/local/money/cash_reports', {
         template: eframe_template,
-        controller: 'CashReportsCtl', // non-conify
+        controller: 'EmbedXHTMLCtl', // non-conify
+        resolve : resolver
+    });
+   
+    // non-conify routes come first
+    $routeProvider.when('/admin/local/actor/closed_dates', {
+        template: eframe_template,
+        controller: 'EmbedXHTMLCtl', // non-conify
         resolve : resolver
     });
 
@@ -52,15 +59,21 @@ function($scope , $routeParams , $location , egCore) {
 
 }])
 
-.controller('CashReportsCtl', 
-       ['$scope','$location','egCore',
-function($scope , $location , egCore) {
-    $scope.local_admin_url = $location.absUrl().replace(
-        /\/.*/, '/xul/server/admin/cash_reports.xhtml');
+.controller('EmbedXHTMLCtl', 
+       ['$scope','$location','egCore','$timeout',
+function($scope , $location , egCore , $timeout) {
 
-    // old-school XUL admin UI's only want CGI ses values.
-    $scope.local_admin_url += '?ses=' + egCore.auth.token();
+    $scope.funcs = {};
+
+    var xul_base = '/xul/server/admin/';
+    var page_parts = $location.path().split(/\//);
+    var url = xul_base + page_parts[page_parts.length - 1] + '.xhtml';
 
+    // old-school XUL admin UI's only want CGI ses values.
+    url += '?ses=' + egCore.auth.token();
+    
     console.log('Loading local admin URL: ' + $scope.local_admin_url);
+
+    $scope.local_admin_url = $location.absUrl().replace(/\/.*/, url);
 }])