})
.controller('WorkLogCtrl',
- ['$scope','$q','$routeParams','$window','$location','$timeout','egCore','egGridDataProvider','egWorkLog',
-function($scope , $q , $routeParams , $window , $location , $timeout , egCore , egGridDataProvider , egWorkLog ) {
+ ['$scope','$q','$routeParams','$window','$timeout','egCore','egGridDataProvider','egWorkLog',
+function($scope , $q , $routeParams , $window , $timeout , egCore , egGridDataProvider , egWorkLog ) {
var work_log_entries = [];
var patron_log_entries = [];
if (!angular.isArray(log_entries)) log_entries = [log_entries];
angular.forEach(log_entries, function(log_entry) {
$window.open(
- $location.path(
- '/cat/item/' + log_entry.item_id
- ).absUrl(),
+ egCore.env.basePath + '/cat/item/' + log_entry.item_id,
'_blank'
).focus();
});
if (!angular.isArray(log_entries)) log_entries = [log_entries];
angular.forEach(log_entries, function(log_entry) {
$window.open(
- $location.path(
- '/circ/patron/' + log_entry.patron_id + '/checkout'
- ).absUrl(),
+ egCore.env.basePath +
+ '/circ/patron/' + log_entry.patron_id + '/checkout',
'_blank'
).focus();
});