View | Details | Raw Unified | Return to bug 11431
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (-13 / +38 lines)
Lines 1-13 Link Here
1
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
1
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
2
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
2
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
3
3
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/jquery/jquery-ui.css" />
4
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/jquery/jquery-ui.css" />
4
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/bootstrap/bootstrap.min.css" />
5
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/bootstrap/bootstrap.min.css" />
5
<link rel="stylesheet" type="text/css" media="print" href="[% themelang %]/css/print.css" />
6
<link rel="stylesheet" type="text/css" media="print" href="[% themelang %]/css/print.css" />
6
[% INCLUDE intranetstylesheet.inc %]
7
[% INCLUDE intranetstylesheet.inc %]
7
[% IF ( bidi ) %]
8
[% IF ( bidi )            %]<link rel="stylesheet" type="text/css" href="[% themelang %]/css/right-to-left.css" />[% END %]
8
   <link rel="stylesheet" type="text/css" href="[% themelang %]/css/right-to-left.css" />
9
[% END %]
10
[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
9
[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
10
11
<script type="text/javascript" src="[% interface %]/lib/jquery/jquery.js"></script>
11
<script type="text/javascript" src="[% interface %]/lib/jquery/jquery.js"></script>
12
<script type="text/javascript" src="[% interface %]/lib/jquery/jquery-ui.js"></script>
12
<script type="text/javascript" src="[% interface %]/lib/jquery/jquery-ui.js"></script>
13
<script type="text/javascript" src="[% interface %]/lib/shortcut/shortcut.js"></script>
13
<script type="text/javascript" src="[% interface %]/lib/shortcut/shortcut.js"></script>
Lines 22-35 Link Here
22
22
23
<!-- koha core js -->
23
<!-- koha core js -->
24
<script type="text/javascript" src="[% themelang %]/js/staff-global.js"></script>
24
<script type="text/javascript" src="[% themelang %]/js/staff-global.js"></script>
25
25
[% INCLUDE 'validator-strings.inc' %]
26
[% INCLUDE 'validator-strings.inc' %]
27
26
[% IF ( intranetuserjs ) %]
28
[% IF ( intranetuserjs ) %]
27
    <script type="text/javascript">
29
    <script type="text/javascript">
28
    //<![CDATA[
30
        //<![CDATA[
29
    [% intranetuserjs %]
31
            [% intranetuserjs %]
30
    //]]>
32
        //]]>
31
    </script>
33
    </script>
32
[% END %]
34
[% END %]
35
33
[% IF ( virtualshelves || intranetbookbag ) %]
36
[% IF ( virtualshelves || intranetbookbag ) %]
34
<script type="text/javascript">
37
<script type="text/javascript">
35
    //<![CDATA[
38
    //<![CDATA[
Lines 46-58 Link Here
46
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be reserved.");
49
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be reserved.");
47
    //]]>
50
    //]]>
48
    </script>
51
    </script>
49
<script type="text/javascript" src="[% themelang %]/js/basket.js"></script>
52
53
    <script type="text/javascript" src="[% themelang %]/js/basket.js"></script>
50
[% END %]
54
[% END %]
55
51
[% IF LocalCoverImages %]
56
[% IF LocalCoverImages %]
52
<script type="text/javascript" src="[% themelang %]/js/localcovers.js"></script>
57
    <script type="text/javascript" src="[% themelang %]/js/localcovers.js"></script>
53
<script type="text/javascript">
58
    <script type="text/javascript">
54
//<![CDATA[
59
        //<![CDATA[
55
var NO_LOCAL_JACKET = _("No cover image available");
60
            var NO_LOCAL_JACKET = _("No cover image available");
56
//]]>
61
        //]]>
57
</script>
62
    </script>
63
[% END %]
64
65
[% IF soundon %]
66
    <script type="text/javascript">
67
        //<![CDATA[
68
            var TMPL_SOUND_PATH = "[% interface %]/[% theme %]/sound/";
69
        //]]>
70
71
        $( document ).ready(function() {
72
            if ( $(".audio-alert-action").length ) {
73
                playSoundAction();
74
            }
75
            else if ( $(".audio-alert-warning").length ) {
76
                playSoundWarning();
77
            }
78
            else if ( $(".audio-alert-success").length ) {
79
                playSoundSuccess();
80
            }
81
        });
82
    </script>
58
[% END %]
83
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/intranet-bottom.inc (+1 lines)
Lines 65-69 Link Here
65
        </div>
65
        </div>
66
    [% END %]
66
    [% END %]
67
[% END %]
67
[% END %]
68
    <span id="audio-alert"></span>
68
    </body>
69
    </body>
69
</html>
70
</html>
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js (+17 lines)
Lines 120-122 function toUC(f) { Link Here
120
function confirmDelete(message) {
120
function confirmDelete(message) {
121
    return (confirm(message) ? true : false);
121
    return (confirm(message) ? true : false);
122
}
122
}
123
124
function playSound( sound ) {
125
    sound = TMPL_SOUND_PATH + sound;
126
    document.getElementById("audio-alert").innerHTML = "<embed src='" + sound + "' hidden='true' autostart='true' loop='false' />";
127
}
128
129
function playSoundWarning() {
130
    playSound( 'critical.ogg' );
131
}
132
133
function playSoundAction() {
134
    playSound( 'opening.ogg' );
135
}
136
137
function playSoundSuccess() {
138
    playSound( 'beep.ogg' );
139
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-11 / +4 lines)
Lines 172-178 $(document).ready(function() { Link Here
172
[% IF ( NEEDSCONFIRMATION ) %]
172
[% IF ( NEEDSCONFIRMATION ) %]
173
<div class="yui-g">
173
<div class="yui-g">
174
174
175
<div id="circ_needsconfirmation" class="dialog alert">
175
<div id="circ_needsconfirmation" class="dialog alert audio-alert-action">
176
[% IF CAN_user_circulate_force_checkout %]
176
[% IF CAN_user_circulate_force_checkout %]
177
  <h3>Please confirm checkout</h3>
177
  <h3>Please confirm checkout</h3>
178
[% ELSE %]
178
[% ELSE %]
Lines 345-356 $(document).ready(function() { Link Here
345
345
346
        [% IF ( IMPOSSIBLE ) %]
346
        [% IF ( IMPOSSIBLE ) %]
347
347
348
[% IF ( soundon ) %]
349
<audio src="[% interface %]/[% theme %]/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
350
[% END %]        
351
352
<div class="yui-g">
348
<div class="yui-g">
353
<div id="circ_impossible" class="dialog alert">
349
<div id="circ_impossible" class="dialog alert audio-alert-warning">
354
<!-- RESULT OF ISSUING REQUEST -->
350
<!-- RESULT OF ISSUING REQUEST -->
355
        <ul>
351
        <ul>
356
        [% IF ( STATS ) %]
352
        [% IF ( STATS ) %]
Lines 462-476 $(document).ready(function() { Link Here
462
458
463
</div></div>
459
</div></div>
464
[% ELSE %]
460
[% ELSE %]
465
[% IF ( soundon ) %]
466
<audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
467
[% END %]
468
469
  [% IF (forceallow) %]
461
  [% IF (forceallow) %]
470
      <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
462
      <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
471
  [% END %]
463
  [% END %]
464
[% END %] <!-- /impossible -->
472
465
473
    [% END %] <!-- /impossible -->
466
<span class="audio-alert-success"></span>
474
467
475
[% IF ( issued ) %]
468
[% IF ( issued ) %]
476
<p>Item checked out</p>
469
<p>Item checked out</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-34 / +8 lines)
Lines 89-94 $(document).ready(function () { Link Here
89
</script>
89
</script>
90
</head>
90
</head>
91
<body id="circ_returns" class="circ">
91
<body id="circ_returns" class="circ">
92
<span class="audio-alert-success"></span>
92
93
93
[% INCLUDE 'header.inc' %]
94
[% INCLUDE 'header.inc' %]
94
[% INCLUDE 'checkin-search.inc' %]
95
[% INCLUDE 'checkin-search.inc' %]
Lines 174-184 $(document).ready(function () { Link Here
174
    [% IF ( waiting ) %]
175
    [% IF ( waiting ) %]
175
	<!-- waiting -->
176
	<!-- waiting -->
176
177
177
[% IF ( soundon ) %]
178
    <div id="hold-found1" class="dialog message audio-alert-action">
178
<audio src="[% interface %]/[% theme %]/sound/ending.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
179
[% END %]
180
181
<div id="hold-found1" class="dialog message">
182
        <h3>Hold found (item is already waiting):  <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
179
        <h3>Hold found (item is already waiting):  <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
183
        [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
180
        [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
184
        <h4>Hold for:</h4>
181
        <h4>Hold for:</h4>
Lines 220-229 $(document).ready(function () { Link Here
220
217
221
    [% IF ( diffbranch ) %]
218
    [% IF ( diffbranch ) %]
222
		<!-- diffbranch -->
219
		<!-- diffbranch -->
223
        [% IF ( soundon ) %]
220
        <div id="transfer-needed" class="dialog message audio-alert-action">
224
        <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
225
        [% END %]
226
        <div id="transfer-needed" class="dialog message">
227
		<h3>Hold needing transfer found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
221
		<h3>Hold needing transfer found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
228
                <h4>Hold for: </h4>
222
                <h4>Hold for: </h4>
229
                    <ul>
223
                    <ul>
Lines 263-282 $(document).ready(function () { Link Here
263
257
264
    [% IF ( transfer ) %]
258
    [% IF ( transfer ) %]
265
    <!-- transfer: item with no reservation, must be returned to its home library -->
259
    <!-- transfer: item with no reservation, must be returned to its home library -->
266
	<div id="return1" class="dialog message">
260
    <div id="return1" class="dialog message audio-alert-action">
267
            <h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber %]">[% title or "item" |html %]</a> to [% homebranchname %]<br/>( <a href="#" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&amp;branchcode=[% homebranch %]&amp;op=slip'); return true;">Print slip</a> )</h3>
261
            <h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber %]">[% title or "item" |html %]</a> to [% homebranchname %]<br/>( <a href="#" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&amp;branchcode=[% homebranch %]&amp;op=slip'); return true;">Print slip</a> )</h3>
268
        </div>
262
        </div>
269
        [% IF ( soundon ) %]
270
        <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
271
        [% END %]
272
    [% END %]
263
    [% END %]
273
264
274
    [% IF ( needstransfer ) %]
265
    [% IF ( needstransfer ) %]
275
	<!-- needstransfer -->
266
	<!-- needstransfer -->
276
        [% IF ( soundon ) %]
267
    <div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% homebranchname %]</h3>
277
        <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
278
        [% END %]
279
	<div id="item-transfer" class="dialog message"><h3> This item needs to be transferred to [% homebranchname %]</h3>
280
    Transfer now?<br />
268
    Transfer now?<br />
281
    <form method="post" action="returns.pl" name="mainform" id="mainform">
269
    <form method="post" action="returns.pl" name="mainform" id="mainform">
282
    [% IF itemnumber %]
270
    [% IF itemnumber %]
Lines 301-310 $(document).ready(function () { Link Here
301
289
302
    [% IF ( diffbranch ) %]
290
    [% IF ( diffbranch ) %]
303
	<!-- diffbranch -->
291
	<!-- diffbranch -->
304
        [% IF ( soundon ) %]
292
        <h3 class="audio-alert-action">Item consigned:</h3>
305
        <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
306
        [% END %]
307
        <h3>Item consigned:</h3>
308
        <table>
293
        <table>
309
        <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
294
        <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
310
        <tr>
295
        <tr>
Lines 333-343 $(document).ready(function () { Link Here
333
    [% IF ( reserved ) %]
318
    [% IF ( reserved ) %]
334
	<!--  reserved  -->
319
	<!--  reserved  -->
335
320
336
        [% IF ( soundon ) %]
321
    <div id="hold-found2" class="dialog message audio-alert-action">
337
        <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
338
        [% END %]
339
340
	<div id="hold-found2" class="dialog message">
341
      <h3>Hold found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
322
      <h3>Hold found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
342
        [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
323
        [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
343
        <h5>Hold for:</h5>
324
        <h5>Hold for:</h5>
Lines 385-391 $(document).ready(function () { Link Here
385
[% END %]
366
[% END %]
386
367
387
[% IF ( errmsgloop ) %]
368
[% IF ( errmsgloop ) %]
388
    <div class="dialog alert">
369
    <div class="dialog alert audio-alert-warning">
389
        <h3>Check in message</h3>
370
        <h3>Check in message</h3>
390
        [% FOREACH errmsgloo IN errmsgloop %]
371
        [% FOREACH errmsgloo IN errmsgloop %]
391
                    [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
372
                    [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
Lines 444-456 $(document).ready(function () { Link Here
444
                    [% END %]
425
                    [% END %]
445
426
446
            [% END %]
427
            [% END %]
447
[% IF ( soundon ) %]
448
<audio src="[% interface %]/[% theme %]/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
449
[% END %]
450
        [% ELSE %]
428
        [% ELSE %]
451
[% IF ( soundon ) %]
452
<audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
453
[% END %]
454
        [% END %]
429
        [% END %]
455
    </div>
430
    </div>
456
431
457
- 

Return to bug 11431