]> git.evergreen-ils.org Git - Evergreen.git/commit
more sound hooks during check-in for transits, holds, etc.
authorJason Etheridge <jason@esilibrary.com>
Wed, 20 Jul 2011 20:51:46 +0000 (16:51 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 25 Jul 2011 15:41:46 +0000 (11:41 -0400)
commita75c19a8ceabcd2bf43ae937623e79dfbe7244fd
tree0e91b6e8380c00f2aaa8acc1f97eaa41555d221c
parentb82f69844875d05272cc6d93d90b2160f0f9acf4
more sound hooks during check-in for transits, holds, etc.

Adds util.sound.special which can be used like this:

    util.sound.special('foo');

and looks for a URL constant matching this:

    urls['AUDIO_special_foo']

Also give util.sound a more programmable delay via custom.js:

    var _sound_delay_interval = 50000;

Here are the new hooks for check-in and how you might use them:

    urls['AUDIO_special_checkin.cataloging'] = '/xul/server/skin/media/custom/cataloging.wav';
    urls['AUDIO_special_checkin.error'] = '/xul/server/skin/media/custom/error.wav';
    urls['AUDIO_special_checkin.hold_capture_delayed'] = '/xul/server/skin/media/custom/hold_capture_delayed.wav';
    urls['AUDIO_special_checkin.hold_shelf'] = '/xul/server/skin/media/custom/hold_shelf.wav';
    urls['AUDIO_special_checkin.no_change'] = '/xul/server/skin/media/custom/no_change.wav';
    urls['AUDIO_special_checkin.not_found'] = '/xul/server/skin/media/custom/not_found.wav';
    urls['AUDIO_special_checkin.reservation_shelf'] = '/xul/server/skin/media/custom/reservation_shelf.wav';
    urls['AUDIO_special_checkin.success'] = '/xul/server/skin/media/custom/success.wav';
    urls['AUDIO_special_checkin.transit'] = '/xul/server/skin/media/custom/transit.wav';
    urls['AUDIO_special_checkin.transit_for_hold'] = '/xul/server/skin/media/custom/transit_for_hold.wav';

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/xul/staff_client/chrome/content/util/fancy_prompt.xul
Open-ILS/xul/staff_client/chrome/content/util/sound.js
Open-ILS/xul/staff_client/server/circ/util.js
Open-ILS/xul/staff_client/server/skin/custom.js.example