From 79cf7527f3b3256e56a9fc6a0886e45440e0a068 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Mon, 12 Dec 2016 10:36:27 -0500 Subject: [PATCH] webstaff: Add sounds for in house use and patron lookup Signed-off-by: Mike Rylander Signed-off-by: Kathy Lussier --- Open-ILS/web/js/ui/default/staff/circ/in_house_use/app.js | 8 +++++++- Open-ILS/web/js/ui/default/staff/circ/patron/app.js | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/in_house_use/app.js b/Open-ILS/web/js/ui/default/staff/circ/in_house_use/app.js index 45e9e5979d..2183d96fe4 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/in_house_use/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/in_house_use/app.js @@ -79,6 +79,7 @@ function($scope, egCore, egGridDataProvider , egConfirmDialog) { ).then(function(copy) { if (!copy) { + egCore.audio.play('error.in_house.copy_not_found'); $scope.copyNotFound = true; return; } @@ -108,7 +109,12 @@ function($scope, egCore, egGridDataProvider , egConfirmDialog) { '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; diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js index bc2f390393..fcf195f76f 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js @@ -694,6 +694,7 @@ function($scope , $location , egCore , egConfirmDialog , egUser , patronSvc) { // 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); @@ -739,6 +740,7 @@ function($scope , $location , egCore , egConfirmDialog , egUser , patronSvc) { if (!resp || !resp[0]) { $scope.bcNotFound = args.barcode; $scope.selectMe = true; + egCore.audio.play('warning.patron.not_found'); return; } @@ -760,6 +762,7 @@ function($scope , $location , egCore , egConfirmDialog , egUser , patronSvc) { // 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; } -- 2.43.2