// embed URL must include protocol/domain or it will be loaded via
// push-state, resulting in an infinitely nested pages.
$scope.acq_url =
- $location.absUrl().replace(/\/eg\/staff.*/, acq_path);
+ $location.absUrl().replace(/\/eg\/staff\/.*/, acq_path);
console.log('Loading Acq URL: ' + $scope.acq_url);
// embed URL must include protocol/domain or it will be loaded via
// push-state, resulting in an infinitely nested pages.
$scope.acq_admin_url =
- $location.absUrl().replace(/\/eg\/staff.*/, acq_path);
+ $location.absUrl().replace(/\/eg\/staff\/.*/, acq_path);
console.log('Loading Admin Acq URL: ' + $scope.acq_admin_url);
// have to use the full URL, not just the path, to ensure
// the embeded page is not a nested version of this page (ad infinitum)
$scope.address_alert_url = $location.absUrl().replace(
- /\/eg\/staff.*/, '/eg/conify/global/actor/address_alert');
+ /\/eg\/staff\/.*/, '/eg/conify/global/actor/address_alert');
console.log($scope.address_alert_url);
// embed URL must include protocol/domain or it will be loaded via
// push-state, resulting in an infinitely nested pages.
$scope.local_admin_url =
- $location.absUrl().replace(/\/eg\/staff.*/, conify_path);
+ $location.absUrl().replace(/\/eg\/staff\/.*/, conify_path);
console.log('Loading local admin URL: ' + $scope.local_admin_url);
// embed URL must include protocol/domain or it will be loaded via
// push-state, resulting in an infinitely nested pages.
$scope.local_admin_url =
- $location.absUrl().replace(/\/eg\/staff.*/, conify_path);
+ $location.absUrl().replace(/\/eg\/staff\/.*/, conify_path);
console.log('Loading local admin URL: ' + $scope.local_admin_url);
// embed URL must include protocol/domain or it will be loaded via
// push-state, resulting in an infinitely nested pages.
$scope.server_admin_url =
- $location.absUrl().replace(/\/eg\/staff.*/, conify_path);
+ $location.absUrl().replace(/\/eg\/staff\/.*/, conify_path);
console.log('Loading server admin URL: ' + $scope.server_admin_url);
// embed URL must include protocol/domain or it will be loaded via
// push-state, resulting in an infinitely nested pages.
$scope.server_admin_url =
- $location.absUrl().replace(/\/eg\/staff.*/, conify_path);
+ $location.absUrl().replace(/\/eg\/staff\/.*/, conify_path);
console.log('Loading server admin URL: ' + $scope.server_admin_url);
var user_id = $routeParams.user_id;
var url = $location.absUrl().replace(
- /\/eg\/staff.*/, '/xul/server/patron/user_edit.xhtml');
+ /\/eg\/staff\/.*/, '/xul/server/patron/user_edit.xhtml');
url += '?usr=' + encodeURIComponent(user_id);
// embed URL must include protocol/domain or it will be loaded via
// push-state, resulting in an infinitely nested pages.
$scope.booking_url =
- $location.absUrl().replace(/\/eg\/staff.*/, booking_path);
+ $location.absUrl().replace(/\/eg\/staff\/.*/, booking_path);
console.log('Loading Booking URL: ' + $scope.booking_url);
var booking_path = '/eg/conify/global/booking/resource';
$scope.booking_admin_url =
- $location.absUrl().replace(/\/eg\/staff.*/, booking_path);
+ $location.absUrl().replace(/\/eg\/staff\/.*/, booking_path);
}]
});
}
// The URL is otherwise generated through user navigation.
if ($scope.catalog_url) return;
- var url = $location.absUrl().replace(/\/staff.*/, '/opac/advanced');
+ var url = $location.absUrl().replace(/\/staff\/.*/, '/opac/advanced');
// A record ID in the path indicates a request for the record-
// specific page.
$scope.parts_url = $location
.absUrl()
.replace(
- /\/staff.*/,
+ /\/staff\/.*/,
'/conify/global/biblio/monograph_part?r='+$scope.record_id
);
}
.controller('URLVerifyCtrl',
['$scope','$location',
function($scope , $location) {
- $scope.verifyurls_url = $location.absUrl().replace(/\/staff.*/, '/url_verify/sessions');
+ $scope.verifyurls_url = $location.absUrl().replace(/\/staff\/.*/, '/url_verify/sessions');
}])
.controller('VandelayCtrl',
.controller('ManageAuthoritiesCtrl',
['$scope','$location',
function($scope , $location) {
- $scope.manageauthorities_url = $location.absUrl().replace(/\/staff.*/, '/cat/authority/list');
+ $scope.manageauthorities_url = $location.absUrl().replace(/\/staff\/.*/, '/cat/authority/list');
}])
.controller('BatchEditCtrl',
['$scope','$location','$routeParams',
function($scope , $location , $routeParams) {
- $scope.batchedit_url = $location.absUrl().replace(/\/eg.*/, '/opac/extras/merge_template');
+ $scope.batchedit_url = $location.absUrl().replace(/\/eg\/.*/, '/opac/extras/merge_template');
if ($routeParams.container_type) {
switch ($routeParams.container_type) {
case 'bucket':
break;
case 'triggered_events':
- var url = $location.absUrl().replace(/\/staff.*/, '/actor/user/event_log');
+ var url = $location.absUrl().replace(/\/staff\/.*/, '/actor/user/event_log');
url += '?copy_id=' + encodeURIComponent(copyId);
$scope.triggered_events_url = url;
$scope.funcs = {};
function($scope, $routeParams, $location , egCore , patronSvc) {
$scope.initTab('other', $routeParams.id);
- var url = $location.absUrl().replace(/\/staff.*/, '/actor/user/event_log');
+ var url = $location.absUrl().replace(/\/staff\/.*/, '/actor/user/event_log');
url += '?patron_id=' + encodeURIComponent($routeParams.id);
$scope.triggered_events_url = url;
$scope.initTab('other', $routeParams.id);
var url = $location.protocol() + '://' + $location.host()
- + egCore.env.basePath.replace(/\/staff.*/, '/actor/user/message');
+ + egCore.env.basePath.replace(/\/staff\/.*/, '/actor/user/message');
url += '/' + encodeURIComponent($routeParams.id);
$scope.message_center_url = url;
$scope.initTab('other', $routeParams.id);
var url = $location.absUrl().replace(
- /\/eg\/staff.*/, '/xul/server/patron/user_edit.xhtml');
+ /\/eg\/staff\/.*/, '/xul/server/patron/user_edit.xhtml');
url += '?usr=' + encodeURIComponent($routeParams.id);
});
$scope.catalog_url =
- $location.absUrl().replace(/\/staff.*/, '/opac/advanced');
+ $location.absUrl().replace(/\/staff\/.*/, '/opac/advanced');
$scope.handle_page = function(url) {
}
var booking_path = '/eg/conify/global/booking/resource';
$scope.booking_admin_url =
- $location.absUrl().replace(/\/eg\/staff.*/, booking_path);
+ $location.absUrl().replace(/\/eg\/staff\/.*/, booking_path);
}]
});
}