]> git.koha-community.org Git - koha.git/commit
Bug 11431: Add additional sound options
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 22 Dec 2014 10:58:48 +0000 (05:58 -0500)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 4 Nov 2015 15:32:57 +0000 (12:32 -0300)
commit220ff161e9cd3130cb3e1f5a03e882c1868e5143
tree741c7af7fa7c8c3ea46551bd1213098e41bcfb63
parent7df384c17dfce72f58b8bc02dae8b7c663231894
Bug 11431: Add additional sound options

This patch set replaces and extends Koha's current sound options.
This is implemented be removing the existing sound system, and
re-engineering using a table of selector/sound combinations such that
the highest precedence selector that is found in the DOM will trigger
and audio alert. The existing audio behaviors are implemented as a set
of default audio alerts.

Test Plan:
1) Apply this patch set
2) Run updatedatabase.pl
3) Enable the AudioAlerts system preference
4) Test existing sounds
5) Enter the new alerts editor in the admin section
6) Add a new audo alert with the following selector:
    "body:contains('Check in message')",
   choose any sound alert you wish, make sure it's not one of the 3
   sounds already used! Make this selector precedence 1
4) Browse to the checkins page, you should hear the default sound
5) Attempt to return an invalid barcode, you should hear your custom sound!

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
18 files changed:
Koha/AudioAlert.pm [new file with mode: 0644]
Koha/AudioAlerts.pm [new file with mode: 0644]
Koha/Object.pm
Koha/Template/Plugin/Koha.pm
admin/audio_alerts.pl [new file with mode: 0755]
circ/circulation.pl
circ/returns.pl
koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc
koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc
koha-tmpl/intranet-tmpl/prog/en/includes/intranet-bottom.inc
koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js
koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/audio_alerts.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/audio_alerts.tt [new file with mode: 0644]