From f614519a1dfd590eacb6222daf1afa19d8950cd6 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 19 Jun 2014 09:17:06 -0400 Subject: [PATCH] Bug 11431 [3] - Add ability to customize the warning, action, and success sounds --- installer/data/mysql/updatedatabase.pl | 7 +++++++ .../prog/en/includes/doc-head-close.inc | 6 +++++- koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js | 11 +++++++---- .../en/modules/admin/preferences/circulation.pref | 15 +++++++++++++++ 4 files changed, 34 insertions(+), 5 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 0ff7180..d4b8e97 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -8574,6 +8574,13 @@ $DBversion = "3.17.00.XXX"; if ( CheckVersion($DBversion) ) { $dbh->do(q{UPDATE systempreferences SET variable = 'AudioAlerts' WHERE variable = 'soundon'}); + $dbh->do(q{ + INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type ) VALUES + ( 'OverrideAudioAlertWarning', '', NULL, 'URL to an audio file to replace the default warning sound.', 'free' ), + ( 'OverrideAudioAlertAction', '', NULL, 'URL to an audio file to replace the default "action required" sound.', 'free' ), + ( 'OverrideAudioAlertSuccess', '', NULL, 'URL to an audio file to replace the default success sound.', 'free' ) + }); + print "Upgrade to $DBversion done (Bug 11169 - Add OPACAcquisitionDetails syspref)\n"; SetVersion($DBversion); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc index 9a0b9f5..7ef8746 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc @@ -1,3 +1,4 @@ +[% USE Koha %] @@ -65,7 +66,10 @@ [% IF AudioAlerts %]