From 454aefdd17c893813bf86c34fe4ec752b197f1cf 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 d8ea64b..b8a650e 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -8564,6 +8564,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 2d375bd..90d4c76 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 %]