.config(function($routeProvider, $locationProvider, $compileProvider) {
$locationProvider.html5Mode(true);
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export
-
- var resolver = {delay : ['egCore','egStartup','egUser', function(egCore, egStartup, egUser) {
- egCore.env.classLoaders.aous = function() {
- return egCore.org.settings([
- 'cat.marc_control_number_identifier'
- ]).then(function(settings) {
- // local settings are cached within egOrg. Caching them
- // again in egEnv just simplifies the syntax for access.
- egCore.env.aous = settings;
- });
- }
- egCore.env.loadClasses.push('aous');
- return egStartup.go()
- }]};
+
+ var resolver = {delay : function(egStartup) {return egStartup.go()}};
$routeProvider.when('/cat/catalog/index', {
templateUrl: './cat/catalog/t_catalog',
function ($scope , $uibModal, egCore, egAuth) {
$scope.searchStr = '';
- var cni = egCore.env.aous['cat.marc_control_number_identifier'] ||
- 'Set cat.marc_control_number_identifier in Library Settings';
+ var cni = 'Set cat.marc_control_number_identifier in Library Settings';
+ egCore.org.settings([
+ 'cat.marc_control_number_identifier'
+ ]).then(function(settings) {
+ if (settings['cat.marc_control_number_identifier']) {
+ cni = settings['cat.marc_control_number_identifier'];
+ }
+ });
var axis_list = $scope.controlSet.bibFieldBrowseAxes($scope.bibField.tag);
$scope.axis = axis_list[0];