CGIorganisations => $CGIorganisations,
is_child => ($borrower->{'category_type'} eq 'C'),
circview => 1,
+ soundon => C4::Context->preference("SoundOn"),
);
# save stickyduedate to session
dropboxmode => $dropboxmode,
dropboxdate => $dropboxdate->output(),
overduecharges => $overduecharges,
+ soundon => C4::Context->preference("SoundOn"),
);
my $itemnumber = GetItemnumberFromBarcode( $query->param('barcode') );
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');
<!-- /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 -->
<!-- /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" -->
<!-- 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 -->
<!-- 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 -->
<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 -->