).then(function(copy) {
if (!copy) {
+ egCore.audio.play('error.in_house.copy_not_found');
$scope.copyNotFound = true;
return;
}
'open-ils.circ', method, egCore.auth.token(), args
).then(function(resp) {
- if (evt = egCore.evt.parse(resp)) return alert(evt);
+ if (evt = egCore.evt.parse(resp)) {
+ egCore.audio.play('error.in_house');
+ return alert(evt);
+ }
+
+ egCore.audio.play('success.in_house');
var item = {num_uses : resp.length};
item.copy = data.copy;
// jump to the patron checkout UI
function loadPatron(user_id) {
+ egCore.audio.play('success.patron.by_barcode');
$location
.path('/circ/patron/' + user_id + '/checkout')
.search('card', $scope.args.barcode);
if (!resp || !resp[0]) {
$scope.bcNotFound = args.barcode;
$scope.selectMe = true;
+ egCore.audio.play('warning.patron.not_found');
return;
}
// opt-in disallowed at this location by patron's home library
$scope.optInRestricted = true;
$scope.selectMe = true;
+ egCore.audio.play('warning.patron.opt_in_restricted');
return;
}