if (!$scope.cat_query) return;
if ($event && $event.keyCode != 13) return; // input ng-keypress
$window.location.href =
- '/eg/staff/cat/catalog/results?query=' +
+ '/eg2/staff/catalog/search?query=' +
encodeURIComponent($scope.cat_query);
}
}])
args.lead_id,
args.records.map(function(val) { return val.id; })
).then(function() {
- $window.open(egCore.env.basePath + 'cat/catalog/record/' + args.lead_id);
+ $window.open('/eg2/staff/catalog/record/' + args.lead_id);
});
});
});
// TODO: probably want to set a limit on the number of
// new tabs one could choose to open at once
angular.forEach(records, function(rec) {
- var url = egCore.env.basePath +
- 'cat/catalog/record/' +
- rec.id;
+ var url = '/eg2/staff/catalog/record/' + rec.id;
$timeout(function() { $window.open(url, '_blank') });
});
}
}
$scope.show_in_catalog = function() {
- window.open('/eg/staff/cat/catalog/record/' + $scope.args.recordId + '/catalog', '_blank');
+ window.open('/eg2/staff/catalog/record/' + $scope.args.recordId, '_blank');
}
$scope.print_labels = function() {
}
$scope.show_record_holds = function() {
- window.open('/eg/staff/cat/catalog/record/' + $scope.args.recordId + '/holds', '_blank');
+ window.open('/eg2/staff/catalog/record/' + $scope.args.recordId + '/holds', '_blank');
}
$scope.add_item_alerts = function() {
$scope.showBibHolds = function () {
angular.forEach(gatherSelectedRecordIds(), function (r) {
- var url = egCore.env.basePath + 'cat/catalog/record/' + r + '/holds';
+ var url = '/eg2/staff/catalog/record/' + r + '/holds';
$timeout(function() { $window.open(url, '_blank') });
});
}
$scope.showInCatalog = function() {
var items = $scope.gridControls.selectedItems();
// relying on cant_showInCatalog to protect us
- var url = egCore.env.basePath +
- 'cat/catalog/record/' + items[0].tcn();
+ var url = '/eg2/staff/catalog/record/' + items[0].tcn();
$timeout(function() { $window.open(url, '_blank') });
};
$scope.cant_showInCatalog = function() {
egCore.strings.GO_TO_RECORD,
egCore.strings.GO_BACK
).result.then(function() {
- $window.open(egCore.env.basePath + 'cat/catalog/record/' + result.id());
+ $window.open('/eg2/staff/catalog/record/' + result.id());
});
}
}
}]
}).result.then(function () {
if (recId) {
- $window.location.href = egCore.env.basePath + 'cat/catalog/record/' + recId;
+ $window.location.href = '/eg2/staff/catalog/record/' + recId;
}
});
}
$scope.local_overlay_target = 0;
egCore.hatch.removeLocalItem('eg.cat.marked_overlay_record');
console.debug('overlay complete, target removed');
- $window.open(egCore.env.basePath + 'cat/catalog/record/' + overlay_target);
+ $window.open('/eg2/staff/catalog/record/' + overlay_target);
}
);
});
recordIds.push(i.acn.record());
});
angular.forEach(recordIds, function (r) {
- var url = egCore.env.basePath + 'cat/catalog/record/' + r + '/holds';
+ var url = '/eg2/staff/catalog/record/' + r + '/holds';
$timeout(function() { $window.open(url, '_blank') });
});
}
service.show_holds_for_title = function(items) {
var focus = items.length == 1;
angular.forEach(items, function(item) {
- var url = egCore.env.basePath +
- 'cat/catalog/record/' +
- item.mvr.doc_id() +
- '/holds';
+ var url = '/eg2/staff/catalog/record/' + item.mvr.doc_id() + '/holds';
$timeout(function() { var x = $window.open(url, '_blank'); if (focus) x.focus() });
});
}
service.show_holds_for_title_wide = function(items) {
var focus = items.length == 1;
angular.forEach(items, function(item) {
- var url = egCore.env.basePath +
- 'cat/catalog/record/' +
- item.hold.record_id +
- '/holds';
+ var url = '/eg2/staff/catalog/record/' + item.hold.record_id + '/holds';
$timeout(function() { var x = $window.open(url, '_blank'); if (focus) x.focus() });
});
}
service.show_in_catalog = function(copy_list){
angular.forEach(copy_list, function(copy){
- window.open('/eg/staff/cat/catalog/record/'+copy['call_number.record.id']+'/catalog', '_blank')
+ window.open('/eg2/staff/catalog/record/'+copy['call_number.record.id'], '_blank')
});
}
$scope.retrieveLastRecord = function() {
var last_record = egCore.hatch.getLocalItem("eg.cat.last_record_retrieved");
if (last_record) {
- $window.location.href =
- egCore.env.basePath + 'cat/catalog/record/' + last_record;
+ $window.location.href =
+ '/eg2/staff/catalog/record/' + last_record;
}
}