tweak Booking administration pagse
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 13 Feb 2017 15:44:07 +0000 (10:44 -0500)
committerKathy Lussier <klussier@masslnc.org>
Sat, 18 Feb 2017 18:31:32 +0000 (13:31 -0500)
- remove admin/booking/conify/* routes in favor of
  admin/server/booking/* routes that already existed;
  as part of this, remove redudant admin EmbedBookingCtl
  controller
- alphabetize the entries on the Booking Administration splash
  page
- remove Booking links from the Server Administration splash
  page

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/staff/admin/booking/t_splash.tt2
Open-ILS/src/templates/staff/admin/server/t_splash.tt2
Open-ILS/web/js/ui/default/staff/admin/booking/app.js

index fcd79e8..f51ea00 100644 (file)
@@ -9,11 +9,11 @@
 
 [%
     interfaces = [
-     [ l('Resource Attribute Maps'), "./admin/booking/conify/resource_attr_map" ]
-    ,[ l('Resource Attribute Values'), "./admin/booking/conify/resource_attr_value" ]
-    ,[ l('Resource Attributes'), "./admin/booking/conify/resource_attr" ]
-    ,[ l('Resource Types'), "./admin/booking/conify/resource_type" ]
-    ,[ l('Resources'), "./admin/booking/conify/resource" ]
+     [ l('Resources'), "./admin/server/booking/resource" ]
+    ,[ l('Resource Attribute Maps'), "./admin/server/booking/resource_attr_map" ]
+    ,[ l('Resource Attribute Values'), "./admin/server/booking/resource_attr_value" ]
+    ,[ l('Resource Attributes'), "./admin/server/booking/resource_attr" ]
+    ,[ l('Resource Types'), "./admin/server/booking/resource_type" ]
    ];
 
    USE table(interfaces, cols=3);
index 1932120..5d8bf43 100644 (file)
     ,[ l('Authority Thesauri'), "./admin/server/cat/authority/thesaurus" ]
     ,[ l('Best-Hold Selection Sort Order'), "./admin/server/config/best_hold_order" ]
     ,[ l('Billing Types'), "./admin/server/config/billing_type" ]
-    ,[ l('Booking Resource Attribute Maps'), "./admin/server/booking/resource_attr_map" ]
-    ,[ l('Booking Resource Attribute Values'), "./admin/server/booking/resource_attr_value" ]
-    ,[ l('Booking Resource Attributes'), "./admin/server/booking/resource_attr" ]
-    ,[ l('Booking Resource Types'), "./admin/server/booking/resource_type" ]
-    ,[ l('Booking Resources'), "./admin/server/booking/resource" ]
     ,[ l('Call Number Prefixes'), "./admin/server/config/acn_prefix" ]
     ,[ l('Call Number Suffixes'), "./admin/server/config/acn_suffix" ]
     ,[ l('Circulation Duration Rules'), "./admin/server/config/rule_circ_duration" ]
index 6f12e09..46f54d8 100644 (file)
@@ -8,53 +8,9 @@ angular.module('egBookingAdmin',
     $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); 
     var resolver = {delay : function(egStartup) {return egStartup.go()}};
 
-    var eframe_template = 
-        '<eg-embed-frame url="booking_admin_url" handlers="funcs"></eg-embed-frame>';
-
-    $routeProvider.when('/admin/booking/:noun/:verb/:extra?', {
-        template: eframe_template,
-        controller: 'EmbedBookingCtl',
-        resolve : resolver
-    });
-
     // default page 
     $routeProvider.otherwise({
         templateUrl : './admin/booking/t_splash',
         resolve : resolver
     });
 }])
-
-.controller('EmbedBookingCtl',
-       ['$scope','$routeParams','$location','egCore',
-function($scope , $routeParams , $location , egCore) {
-
-    $scope.funcs = {
-        ses : egCore.auth.token(),
-    }
-
-    var booking_path = '/eg/';
-
-    if ($routeParams.noun == 'conify') {
-        booking_path += 'conify/global/booking/' + $routeParams.verb
-            + (typeof $routeParams.extra != 'undefined'
-                ? '/' + $routeParams.extra
-                : '')
-            + location.search;
-    } else {
-        booking_path += 'booking/'
-            + $routeParams.noun + '/' + $routeParams.verb
-            + (typeof $routeParams.extra != 'undefined'
-                ? '/' + $routeParams.extra
-                : '')
-            + location.search;
-    }
-
-    // embed URL must include protocol/domain or it will be loaded via
-    // push-state, resulting in an infinitely nested pages.
-    $scope.booking_admin_url =
-        $location.absUrl().replace(/\/eg\/staff.*/, booking_path);
-
-    console.log('Loading Admin Booking URL: ' + $scope.booking_admin_url);
-
-}])
-