Browse Source

Bugzilla 1080 to add enhancement for sound. Only changed circulation.tmpl/pl and returns.tmpl/pl and added a single syspref (set to off) along with very compressed OGG files for sound which are on the open source "artistic" licence.

Works for HTML5 because it loads smoothly and no plugins required but *at
  this time* this update will only work with staff clients which are Firefox
  version >=3.5 (std for Koha) but other browsers will soon be adding support.

  Additional sounds are included for people to modify and play with, but this
  is such a simple upgrade I doubt at this time Koha needs another complex
  selector so users can add their own sounds. It could be a nice enhancement
  later, of course.

  Suggest we stick with HTML5 <audio tag because it is a standard and no
  plug-ins.

  This simple update has been running live for SMFPL.org for almost 2 weeks

  -Darrell Ulm

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
3.2.x
root 12 years ago
committed by Galen Charlton
parent
commit
b4c887f2c4
  1. 1
      circ/circulation.pl
  2. 1
      circ/returns.pl
  3. 2
      installer/data/mysql/en/mandatory/sysprefs.sql
  4. 9
      koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl
  5. 17
      koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl
  6. BIN
      koha-tmpl/intranet-tmpl/prog/sound/IM_notification.ogg
  7. BIN
      koha-tmpl/intranet-tmpl/prog/sound/beep.ogg
  8. BIN
      koha-tmpl/intranet-tmpl/prog/sound/call.ogg
  9. BIN
      koha-tmpl/intranet-tmpl/prog/sound/critical.ogg
  10. BIN
      koha-tmpl/intranet-tmpl/prog/sound/device_connect.ogg
  11. BIN
      koha-tmpl/intranet-tmpl/prog/sound/device_disconnect.ogg
  12. BIN
      koha-tmpl/intranet-tmpl/prog/sound/ending.ogg
  13. BIN
      koha-tmpl/intranet-tmpl/prog/sound/fail.ogg
  14. BIN
      koha-tmpl/intranet-tmpl/prog/sound/incoming_call.ogg
  15. BIN
      koha-tmpl/intranet-tmpl/prog/sound/loading.ogg
  16. BIN
      koha-tmpl/intranet-tmpl/prog/sound/loading_2.ogg
  17. BIN
      koha-tmpl/intranet-tmpl/prog/sound/maximize.ogg
  18. BIN
      koha-tmpl/intranet-tmpl/prog/sound/minimize.ogg
  19. BIN
      koha-tmpl/intranet-tmpl/prog/sound/new_mail_notification.ogg
  20. BIN
      koha-tmpl/intranet-tmpl/prog/sound/opening.ogg
  21. BIN
      koha-tmpl/intranet-tmpl/prog/sound/panic.ogg
  22. BIN
      koha-tmpl/intranet-tmpl/prog/sound/popup.ogg
  23. BIN
      koha-tmpl/intranet-tmpl/prog/sound/warning.ogg

1
circ/circulation.pl

@ -686,6 +686,7 @@ $template->param(
CGIorganisations => $CGIorganisations,
is_child => ($borrower->{'category_type'} eq 'C'),
circview => 1,
soundon => C4::Context->preference("SoundOn"),
);
# save stickyduedate to session

1
circ/returns.pl

@ -547,6 +547,7 @@ $template->param(
dropboxmode => $dropboxmode,
dropboxdate => $dropboxdate->output(),
overduecharges => $overduecharges,
soundon => C4::Context->preference("SoundOn"),
);
my $itemnumber = GetItemnumberFromBarcode( $query->param('barcode') );

2
installer/data/mysql/en/mandatory/sysprefs.sql

@ -282,3 +282,5 @@ INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES
INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('AutoSelfCheckAllowed', '0', 'For corporate and special libraries which want web-based self-check available from any PC without the need for a manual staff login. Most libraries will want to leave this turned off. If on, requires self-check ID and password to be entered in AutoSelfCheckID and AutoSelfCheckPass sysprefs.', '', 'YesNo');
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AutoSelfCheckID','','Staff ID with circulation rights to be used for automatic web-based self-check. Only applies if AutoSelfCheckAllowed syspref is turned on.','','free');
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AutoSelfCheckPass','','Password to be used for automatic web-based self-check. Only applies if AutoSelfCheckAllowed syspref is turned on.','','free');
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('soundon','0','Enable to turn on HTML5 circulation sounds Firefox >=3.5 only','','YesNo');

9
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl

@ -281,6 +281,11 @@ function refocus(calendar) {
<!-- /TMPL_IF --> <!-- NEEDSCONFIRMATION -->
<!-- TMPL_IF NAME="IMPOSSIBLE" -->
<!-- TMPL_IF NAME="soundon" -->
<audio src="/intranet-tmpl/prog/sound/critical.ogg" autoplay autobuffer></audio>
<!-- /TMPL_IF -->
<div class="yui-g">
<div id="circ_impossible" class="dialog alert">
<!-- RESULT OF ISSUING REQUEST -->
@ -339,6 +344,10 @@ function refocus(calendar) {
<!-- /TMPL_IF -->
</div></div>
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="soundon" -->
<audio src="/intranet-tmpl/prog/sound/beep.ogg" autoplay autobuffer></audio>
<!-- /TMPL_IF -->
<!--/TMPL_IF --> <!-- /impossible -->
<!-- TMPL_IF NAME="issued" -->

17
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl

@ -92,6 +92,11 @@ function Dopop(link) {
<!-- case of a reservation found, and display info -->
<!-- TMPL_IF Name="waiting" -->
<!-- waiting -->
<!-- TMPL_IF NAME="soundon" -->
<audio src="/intranet-tmpl/prog/sound/ending.ogg" autoplay autobuffer></audio>
<!-- /TMPL_IF -->
<div class="dialog message">
<h3>Hold Found (item is already waiting): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="itembiblionumber" -->"><!-- TMPL_VAR Name="title" escape="html" --></a></h3>
<!-- TMPL_IF NAME="reservenotes" --><h4>Notes: <!-- TMPL_VAR Name="reservenotes" --></h4><!-- /TMPL_IF -->
@ -217,6 +222,11 @@ function Dopop(link) {
<!-- case of simple return no issue or transfer but with a reservation -->
<!-- TMPL_IF Name="reserved" -->
<!-- reserved -->
<!-- TMPL_IF NAME="soundon" -->
<audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay autobuffer></audio>
<!-- /TMPL_IF -->
<div class="dialog message">
<h3>Hold Found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="itembiblionumber" -->"><!-- TMPL_VAR Name="title" escape="html" --></a></h3>
<!-- TMPL_IF NAME="reservenotes" --><h4>Notes: <!-- TMPL_VAR Name="reservenotes" --></h4><!-- /TMPL_IF -->
@ -281,6 +291,13 @@ function Dopop(link) {
<p class="problem">Item is withdrawn.</p>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
<!-- TMPL_IF NAME="soundon" -->
<audio src="/intranet-tmpl/prog/sound/critical.ogg" autoplay autobuffer></audio>
<!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="soundon" -->
<audio src="/intranet-tmpl/prog/sound/beep.ogg" autoplay autobuffer></audio>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</div>
<!-- /TMPL_IF -->

BIN
koha-tmpl/intranet-tmpl/prog/sound/IM_notification.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/beep.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/call.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/critical.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/device_connect.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/device_disconnect.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/ending.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/fail.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/incoming_call.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/loading.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/loading_2.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/maximize.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/minimize.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/new_mail_notification.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/opening.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/panic.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/popup.ogg

Binary file not shown.

BIN
koha-tmpl/intranet-tmpl/prog/sound/warning.ogg

Binary file not shown.
Loading…
Cancel
Save