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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (-27 / +52 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-58 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[
36
        var MSG_BASKET_EMPTY = _("Your cart is currently empty");
39
            var MSG_BASKET_EMPTY = _("Your cart is currently empty");
37
        var MSG_RECORD_IN_BASKET = _("This item is already in your cart");
40
            var MSG_RECORD_IN_BASKET = _("This item is already in your cart");
38
        var MSG_RECORD_ADDED = _("This item has been added to your cart");
41
            var MSG_RECORD_ADDED = _("This item has been added to your cart");
39
        var MSG_NRECORDS_ADDED = _(" item(s) added to your cart");
42
            var MSG_NRECORDS_ADDED = _(" item(s) added to your cart");
40
        var MSG_NRECORDS_IN_BASKET = _("already in your cart");
43
            var MSG_NRECORDS_IN_BASKET = _("already in your cart");
41
        var MSG_NO_RECORD_SELECTED = _("No item was selected");
44
            var MSG_NO_RECORD_SELECTED = _("No item was selected");
42
        var MSG_NO_RECORD_ADDED = _("No item was added to your cart");
45
            var MSG_NO_RECORD_ADDED = _("No item was added to your cart");
43
        var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?");
46
            var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?");
44
        var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?");
47
            var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?");
45
        var MSG_IN_YOUR_CART = _("Items in your cart: ");
48
            var MSG_IN_YOUR_CART = _("Items in your cart: ");
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 52-56 Link Here
52
        </div>
52
        </div>
53
    [% END %]
53
    [% END %]
54
[% END %]
54
[% END %]
55
    <span id="audio-alert"></span>
55
    </body>
56
    </body>
56
</html>
57
</html>
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js (+17 lines)
Lines 117-119 function toUC(f) { Link Here
117
function confirmDelete(message) {
117
function confirmDelete(message) {
118
    return (confirm(message) ? true : false);
118
    return (confirm(message) ? true : false);
119
}
119
}
120
121
function playSound( sound ) {
122
    sound = TMPL_SOUND_PATH + sound;
123
    document.getElementById("audio-alert").innerHTML = "<embed src='" + sound + "' hidden='true' autostart='true' loop='false' />";
124
}
125
126
function playSoundWarning() {
127
    playSound( 'critical.ogg' );
128
}
129
130
function playSoundAction() {
131
    playSound( 'opening.ogg' );
132
}
133
134
function playSoundSuccess() {
135
    playSound( 'beep.ogg' );
136
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-9 / +4 lines)
Lines 186-192 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); Link Here
186
[% IF ( NEEDSCONFIRMATION ) %]
186
[% IF ( NEEDSCONFIRMATION ) %]
187
<div class="yui-g">
187
<div class="yui-g">
188
188
189
<div id="circ_needsconfirmation" class="dialog alert">
189
<div id="circ_needsconfirmation" class="dialog alert audio-alert-action">
190
[% IF CAN_user_circulate_force_checkout %]
190
[% IF CAN_user_circulate_force_checkout %]
191
  <h3>Please confirm checkout</h3>
191
  <h3>Please confirm checkout</h3>
192
[% ELSE %]
192
[% ELSE %]
Lines 351-362 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); Link Here
351
351
352
        [% IF ( IMPOSSIBLE ) %]
352
        [% IF ( IMPOSSIBLE ) %]
353
353
354
[% IF ( soundon ) %]
355
<audio src="[% interface %]/[% theme %]/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
356
[% END %]        
357
358
<div class="yui-g">
354
<div class="yui-g">
359
<div id="circ_impossible" class="dialog alert">
355
<div id="circ_impossible" class="dialog alert audio-alert-warning">
360
<!-- RESULT OF ISSUING REQUEST -->
356
<!-- RESULT OF ISSUING REQUEST -->
361
        <ul>
357
        <ul>
362
        [% IF ( STATS ) %]
358
        [% IF ( STATS ) %]
Lines 459-469 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); Link Here
459
455
460
</div></div>
456
</div></div>
461
[% ELSE %]
457
[% ELSE %]
462
[% IF ( soundon ) %]
463
<audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
464
[% END %]
465
    [% END %] <!-- /impossible -->
458
    [% END %] <!-- /impossible -->
466
459
460
<span class="audio-alert-success"></span>
461
467
[% IF ( issued ) %]
462
[% IF ( issued ) %]
468
<p>Item checked out</p>
463
<p>Item checked out</p>
469
[% END %]
464
[% END %]
(-)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 172-182 $(document).ready(function () { Link Here
172
    [% IF ( waiting ) %]
173
    [% IF ( waiting ) %]
173
	<!-- waiting -->
174
	<!-- waiting -->
174
175
175
[% IF ( soundon ) %]
176
    <div id="hold-found1" class="dialog message audio-alert-action">
176
<audio src="[% interface %]/[% theme %]/sound/ending.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
177
[% END %]
178
179
<div id="hold-found1" class="dialog message">
180
        <h3>Hold found (item is already waiting):  <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
177
        <h3>Hold found (item is already waiting):  <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
181
        [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
178
        [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
182
        <h4>Hold for:</h4>
179
        <h4>Hold for:</h4>
Lines 215-224 $(document).ready(function () { Link Here
215
212
216
    [% IF ( diffbranch ) %]
213
    [% IF ( diffbranch ) %]
217
		<!-- diffbranch -->
214
		<!-- diffbranch -->
218
        [% IF ( soundon ) %]
215
        <div id="transfer-needed" class="dialog message audio-alert-action">
219
        <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
220
        [% END %]
221
        <div id="transfer-needed" class="dialog message">
222
		<h3>Hold needing transfer found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
216
		<h3>Hold needing transfer found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
223
                <h4>Hold for: </h4>
217
                <h4>Hold for: </h4>
224
                    <ul>
218
                    <ul>
Lines 255-274 $(document).ready(function () { Link Here
255
249
256
    [% IF ( transfer ) %]
250
    [% IF ( transfer ) %]
257
    <!-- transfer: item with no reservation, must be returned to its home library -->
251
    <!-- transfer: item with no reservation, must be returned to its home library -->
258
	<div id="return1" class="dialog message">
252
    <div id="return1" class="dialog message audio-alert-action">
259
            <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>
253
            <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>
260
        </div>
254
        </div>
261
        [% IF ( soundon ) %]
262
        <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
263
        [% END %]
264
    [% END %]
255
    [% END %]
265
256
266
    [% IF ( needstransfer ) %]
257
    [% IF ( needstransfer ) %]
267
	<!-- needstransfer -->
258
	<!-- needstransfer -->
268
        [% IF ( soundon ) %]
259
    <div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% homebranchname %]</h3>
269
        <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
270
        [% END %]
271
	<div id="item-transfer" class="dialog message"><h3> This item needs to be transferred to [% homebranchname %]</h3>
272
    Transfer now?<br />
260
    Transfer now?<br />
273
    <form method="post" action="returns.pl" name="mainform" id="mainform">
261
    <form method="post" action="returns.pl" name="mainform" id="mainform">
274
    [% IF itemnumber %]
262
    [% IF itemnumber %]
Lines 291-300 $(document).ready(function () { Link Here
291
279
292
    [% IF ( diffbranch ) %]
280
    [% IF ( diffbranch ) %]
293
	<!-- diffbranch -->
281
	<!-- diffbranch -->
294
        [% IF ( soundon ) %]
282
        <h3 class="audio-alert-action">Item consigned:</h3>
295
        <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
296
        [% END %]
297
        <h3>Item consigned:</h3>
298
        <table>
283
        <table>
299
        <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
284
        <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
300
        <tr>
285
        <tr>
Lines 319-329 $(document).ready(function () { Link Here
319
    [% IF ( reserved ) %]
304
    [% IF ( reserved ) %]
320
	<!--  reserved  -->
305
	<!--  reserved  -->
321
306
322
        [% IF ( soundon ) %]
307
    <div id="hold-found2" class="dialog message audio-alert-action">
323
        <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
324
        [% END %]
325
326
	<div id="hold-found2" class="dialog message">
327
      <h3>Hold found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
308
      <h3>Hold found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
328
        [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
309
        [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
329
        <h5>Hold for:</h5>
310
        <h5>Hold for:</h5>
Lines 369-375 $(document).ready(function () { Link Here
369
[% END %]
350
[% END %]
370
351
371
[% IF ( errmsgloop ) %]
352
[% IF ( errmsgloop ) %]
372
    <div class="dialog alert">
353
    <div class="dialog alert audio-alert-warning">
373
        <h3>Check in message</h3>
354
        <h3>Check in message</h3>
374
        [% FOREACH errmsgloo IN errmsgloop %]
355
        [% FOREACH errmsgloo IN errmsgloop %]
375
                    [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
356
                    [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
Lines 424-436 $(document).ready(function () { Link Here
424
                        <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %]</p>
405
                        <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %]</p>
425
                    [% END %]
406
                    [% END %]
426
            [% END %]
407
            [% END %]
427
[% IF ( soundon ) %]
428
<audio src="[% interface %]/[% theme %]/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
429
[% END %]
430
        [% ELSE %]
408
        [% ELSE %]
431
[% IF ( soundon ) %]
432
<audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
433
[% END %]
434
        [% END %]
409
        [% END %]
435
    </div>
410
    </div>
436
411
437
- 

Return to bug 11431