webstaff: integrate Manage Authorities UI
authorMike Rylander <mrylander@gmail.com>
Tue, 7 Apr 2015 19:00:22 +0000 (15:00 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 19 Aug 2015 17:39:15 +0000 (13:39 -0400)
Will require modification to de-XUL-ify in a later sprint

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/templates/staff/cat/catalog/t_manageauthorities.tt2 [new file with mode: 0644]
Open-ILS/src/templates/staff/navbar.tt2
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

diff --git a/Open-ILS/src/templates/staff/cat/catalog/t_manageauthorities.tt2 b/Open-ILS/src/templates/staff/cat/catalog/t_manageauthorities.tt2
new file mode 100644 (file)
index 0000000..e073258
--- /dev/null
@@ -0,0 +1 @@
+<eg-embed-frame save-space="150" url="manageauthorities_url"></eg-embed-frame>
index de0b1cd..c61df45 100644 (file)
               [% l('Link Checker') %]
             </a>
           </li>
+          <li class="divider"></li>
+          <li>
+            <a href="./cat/catalog/manageAuthorities" target="_self">
+              <span class="glyphicon glyphicon-lock"></span>
+              [% l('Manage Authorities') %]
+            </a>
+          </li>
        </ul>
       </li>
 
index ab678eb..cea473e 100644 (file)
@@ -72,6 +72,12 @@ angular.module('egCatalogApp', ['ui.bootstrap','ngRoute','egCoreMod','egGridMod'
         resolve : resolver
     });
 
+    $routeProvider.when('/cat/catalog/manageAuthorities', {
+        templateUrl: './cat/catalog/t_manageauthorities',
+        controller: 'ManageAuthoritiesCtrl',
+        resolve : resolver
+    });
+
     $routeProvider.otherwise({redirectTo : '/cat/catalog/index'});
 })
 
@@ -372,6 +378,12 @@ function($scope , $location) {
     $scope.vandelay_url = $location.absUrl().replace(/\/staff.*/, '/vandelay/vandelay');
 }])
 
+.controller('ManageAuthoritiesCtrl',
+       ['$scope','$location',
+function($scope , $location) {
+    $scope.manageauthorities_url = $location.absUrl().replace(/\/staff.*/, '/cat/authority/list');
+}])
+
 .controller('BatchEditCtrl',
        ['$scope','$location','$routeParams',
 function($scope , $location , $routeParams) {