Bug 22538: Add a noticeable alert about waiting holds
[koha-equinox.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / sco / sco-main.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE KohaDates %]
5 [% USE AudioAlerts %]
6 [% USE To %]
7 [% USE Price %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha [% END %] &rsaquo; Self checkout </title>
10 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11 <meta name="generator" content="Koha [% Version | html %]" /> <!-- leave this for stats -->
12 [% IF ( Koha.Preference('OpacFavicon') ) %]
13 <link rel="shortcut icon" href="[% Koha.Preference('OpacFavicon') | url %]" type="image/x-icon" />
14 [% ELSE %]
15 <link rel="shortcut icon" href="[% interface | html %]/[% theme | html %]/images/favicon.ico" type="image/x-icon" />
16 [% END %]
17 [% Asset.css("lib/bootstrap/css/bootstrap.min.css") | $raw %]
18 [% Asset.css("lib/jquery/jquery-ui.css") | $raw %]
19 [% Asset.css("lib/font-awesome/css/font-awesome.min.css") | $raw %]
20 [% Asset.css("css/sco.css") | $raw %]
21 [% IF ( Koha.Preference('OPACUserCSS') ) %]<style>[% Koha.Preference('OPACUserCSS') | $raw %]</style>[% END %]
22 [% IF ( Koha.Preference('SCOUserCSS') ) %]<style>[% Koha.Preference('SCOUserCSS') | $raw %]</style>[% END %]
23 <!--[if lt IE 9]>
24     <script src="[% interface | html %]/[% theme | html %]/lib/respond.min.js"></script>
25 <![endif]-->
26 <script>
27     function _(s) { return s } // dummy function for gettext
28 </script>
29 [% Asset.js("lib/modernizr.min.js") | $raw %]
30 </head>
31 <body id="sco_main" class="sco" onload="dofocus();" onunload="mungeHistory();">
32 [% INCLUDE 'masthead-sco.inc' %]
33
34     <div class="main">
35         <div class="container-fluid">
36             <div class="row-fluid">
37                 [% IF ( display_patron_image ) %]
38                     <div class="span10">
39                 [% ELSE %]
40                     <div class="span12">
41                 [% END %]
42
43                     <div id="masthead"><h1>[% LibraryName | html %] Self checkout system</h1></div>
44
45                     [% IF ( impossible ) %]<!-- We tried to issue, but failed. -->
46                         <div class="alert">
47                             <span class="sco-alert-warning noissue"></span>
48                             <h3>Item cannot be checked out.</h3>
49                             <p>Sorry, this item cannot be checked out at this station.</p>
50                             [% IF ( title ) %]
51                                 <p>Title: <em>[% title | html %]</em> </p>
52                             [% END %]
53
54                             <p>
55                                 [% IF ( circ_error_UNKNOWN_BARCODE ) %]
56                                     The system does not recognize this barcode.
57                                 [% ELSIF ( circ_error_max_loans_allowed ) %]
58                                     You have checked out too many items and can't check out any more.
59                                 [% ELSIF ( circ_error_ISSUED_TO_ANOTHER ) %]
60                                     This item is checked out to someone else.
61                                 [% ELSIF ( circ_error_NO_MORE_RENEWALS ) %]
62                                     You cannot renew this item again.
63                                 [% ELSIF ( circ_error_NOT_FOR_LOAN ) %]
64                                     This item is not for loan.
65                                 [% ELSIF ( circ_error_DEBT ) %]
66                                     You owe the library [% DEBT | $Price %] and cannot check out.
67                                 [% ELSIF ( circ_error_WTHDRAWN ) %]
68                                     This item has been withdrawn from the collection.
69                                 [% ELSIF ( circ_error_RESTRICTED ) %]
70                                     This item is restricted.
71                                 [% ELSIF ( circ_error_RESERVED ) %]
72                                     This item is on hold for another patron.
73                                 [% ELSIF ( circ_error_ITEMNOTSAMEBRANCH ) %]
74                                     This item belongs to another branch.
75                                 [% ELSIF ( circ_error_EXPIRED ) %]
76                                     Your account has expired.
77                                 [% ELSIF ( circ_error_DEBARRED ) %]
78                                     Your account has been suspended.
79                                 [% ELSIF ( circ_error_CARD_LOST ) %]
80                                     This card has been declared lost.
81                                 [% ELSIF ( circ_error_GNA ) %]
82                                     Your contact information seems to be incomplete.
83                                 [% ELSIF ( circ_error_INVALID_DATE ) %]
84                                     Due date is not valid.
85                                 [% END %]
86                                 Please see a member of the library staff.
87                             </p>
88
89                             [% IF ( returnitem && Koha.Preference('AllowSelfCheckReturns') ) %]
90                                 <form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="post">
91                                     <input type="hidden" name="op" value="returnbook" />
92                                     <input type="hidden" name="patronid" value="[% patronid | html %]" />
93                                     <input type="hidden" name="barcode" value="[% barcode | html %]" />
94                                     <input type="hidden" name="newissues" value="[% newissues | html %]" />
95                                     <button type="submit" name="returnbook" class="btn"><i class="fa fa-undo"></i> Return this item</button>
96                                 </form>
97                             [% END %]
98
99                             <form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="post">
100                                 <input type="hidden" name="op" value="" />
101                                 <input type="hidden" name="patronid" value="[% patronid | html %]" />
102                                 <input type="hidden" name="barcode" value="[% barcode | html %]" />
103                                 <input type="hidden" name="newissues" value="[% newissues | html %]" />
104                                 <input type="submit" name= "confirm" value="Return to account summary" class="btn back focus" />
105                             </form>
106                         </div> <!-- / .alert -->
107                     [% END # / IF ( impossible %]
108
109                     [% IF ( confirm ) %]<!-- We need to confirm the issue.. -->
110                         <div class="alert"><h3>Please confirm the checkout:</h3>
111                             <span class="sco-alert-warning confirm"></span>
112                             [% IF ( confirm_renew_issue ) %]
113                                 <p>This item is already checked out to you.</p>
114                             [% END %]
115
116                             [% IF ( renew && Koha.Preference('AllowSelfCheckReturns') ) %]
117                                 <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
118                                     <input type="hidden" name="op" value="returnbook" />
119                                     <input type="hidden" name="patronid" value="[% patronid | html %]" />
120                                     <input type="hidden" name="barcode" value="[% barcode | html %]" />
121                                     <input type="hidden" name="confirmed" value="" />
122                                     <input type="hidden" name="newissues" value="[% newissues | html %]" />
123                                     <button type="submit" name="returnbook" class="btn"><i class="fa fa-undo"></i> Return this item</button>
124                                 </form>
125                             [% END %]
126
127                             [% UNLESS ( renew ) %]
128                                 <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
129                                     <input type="hidden" name="op" value="renew" />
130                                     <input type="hidden" name="patronid" value="[% patronid | html %]" />
131                                     <input type="hidden" name="barcode" value="[% barcode | html %]" />
132                                     <input type="hidden" name="confirmed" value="1" />
133                                     <input type="hidden" name="newissues" value="[% newissues | html %]" />
134                                     <button type="submit" name="confirm" class="btn"><i class="fa fa-refresh"></i> Renew item</button>
135                                   </form>
136                             [% ELSE %]
137                                 <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
138                                     <input type="hidden" name="op" value="renew" />
139                                     <input type="hidden" name="patronid" value="[% patronid | html %]" />
140                                     <input type="hidden" name="barcode" value="[% barcode | html %]" />
141                                     <input type="hidden" name="confirmed" value="1" />
142                                     <input type="hidden" name="newissues" value="[% newissues | html %]" />
143                                     <button type="submit" class="btn"><i class="fa fa-refresh"></i> Renew item</button>
144                                 </form>
145                             [% END %]
146
147                             <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
148                                 <input type="hidden" name="op" value="" />
149                                 <input type="hidden" name="patronid" value="[% patronid | html %]" />
150                                 <input type="hidden" name="newissues" value="[% newissues | html %]" />
151                                 <button type="submit" class="btn"><i class="fa fa-cancel"></i> Cancel</button>
152                             </form>
153                         </div>
154                     [% END # / IF confirm %]
155
156                     [% IF ( nopermission ) %]
157                         <!-- This is what is displayed if user doesn't have permission -->
158                         <div class="alert">
159                         <span class="sco-alert-warning nopermission"></span>
160                             <h3>Access denied</h3>
161                             <p>Sorry, this self-checkout station has lost authentication.  Please contact the administrator to resolve this problem.</p>
162                         </div>
163                     [% END %]
164
165                     [% IF ( different_ip ) %]
166                         <!-- This is what is displayed if user doesn't have permission -->
167                         <div class="alert">
168                             <span class="sco-alert-warning sessionlost"></span>
169                             <h3>Session lost</h3>
170                             <p>You are accessing self-checkout from a different IP address! please log in again.</p>
171                         </div>
172                     [% END %]
173
174                     [% IF ( invalid_username_or_password ) %]
175                         <!-- This is what is displayed if user doesn't have permission -->
176                         <div class="alert">
177                             <span class="sco-alert-warning notfound"></span>
178                             <h3>Record not found</h3>
179                             <p>Your userid was not found in the database.  Please try again.</p>
180                         </div>
181                     [% END %]
182
183                     [% IF ( issued ) %]
184                     <span class="sco-alert-success issue"></span>
185                     <div class="alert alert-info">
186                         <p>Item checked out</p>
187                     </div>
188                     [% ELSIF ( renewed ) %]
189                     <span class="sco-alert-success renew"></span>
190                     <div class="alert alert-info">
191                         <p>Item renewed</p>
192                     </div>
193                     [% ELSIF ( returned == 0 ) %]
194                     <span class="sco-alert-warning return"></span>
195                     <div class="alert alert-info">
196                         <p>Item not checked in: please see circulation staff for assistance</p>
197                     </div>
198                     [% ELSIF ( returned == 1 ) %]
199                     <span class="sco-alert-success return"></span>
200                     <div class="alert alert-info">
201                         <p>Item checked in</p>
202                     </div>
203                     [% END %]
204
205
206                     [% UNLESS ( hide_main ) %]
207
208                         [% IF ( patronid ) %]
209                             [% IF ( validuser ) %]
210                                 <div class="alert alert-info">You are logged in as [% borrowername | html %].</div>
211                                 [% INCLUDE 'opac-note.inc' %]
212                                 [% IF patron_has_hold_fee %]
213                                     <div class="alert">A hold fee was charged to your account for collecting this item.</div>
214                                 [% END %]
215                             [% END %]
216
217                             [% IF ( nouser ) %]
218                                 <div class="alert">
219                                     <h4>Sorry</h4>
220                                     <p>The userid <strong>[% patronid | html %]</strong> was not found in the database.  Please try again.</p>
221                                 </div>
222                             [% END %]
223                         [% END # / IF patronid %]
224
225                         [% IF ( validuser ) %]
226                             <div id="newcheckout" class="sco_entry">
227                                 <form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl" onsubmit="return checkout_confirm('[% patronid | html %]');">
228                                     <fieldset>
229                                         <legend>Check out[% IF ( Koha.Preference('AllowSelfCheckReturns') ) %], return[% END %] or renew an item: </legend>
230                                         <div class="input-append">
231                                             <label for="barcode">Scan a new item or enter its barcode:</label>
232                                             <input id="barcode" name="barcode" size="20" type="text" class="focus" autocomplete="off" />
233                                             <button type="submit" class="btn">Submit</button>
234                                         </div>
235                                         <input type="hidden" name="op" value="checkout" />
236                                         <input type="hidden" name="patronid" value="[% patronid | html %]" />
237                                         <input type="hidden" name="newissues" value="[% newissues | html %]" />
238                                     </fieldset>
239                                 </form>
240
241                                 <div>
242                                     <form method="post" action="#" id="logout_form">
243                                         <button type="submit" class="btn"><i class="fa fa-check"></i> Finish</button>
244                                     </form>
245                                 </div>
246                             </div> <!-- / #newcheckout -->
247                 </div> <!-- / .span12/12 -->
248                 [% IF ( display_patron_image ) %]
249                     <div class="span2">
250                         <img src="/cgi-bin/koha/sco/sco-patron-image.pl?borrowernumber=[% borrowernumber | uri %]&csrf_token=[% csrf_token | uri %]" alt="" />
251                     </div>
252                 [% END %]
253             </div> <!-- / .row-fluid -->
254         </div> <!-- / .container-fluid -->
255
256         <div class="container-fluid">
257             <div class="row-fluid">
258                     <div class="span12">
259                         <div class="tabbable">
260                             <ul class="nav nav-tabs">
261                                 <li class="active"><a href="#checkouts-tab" data-toggle="tab">Checkouts ([% issues_count | html %])</a></li>
262                                 <li>
263                                     <a href="#holds-tab" data-toggle="tab">
264                                         [% IF waiting_holds_count %]
265                                             <i class="fa fa-exclamation"></i>
266                                         [% END %]
267                                         Holds ([% HOLDS.count | html %])
268                                     </a>
269                                 </li>
270                                 <li><a href="#account-tab" data-toggle="tab">Fines and charges ([% total | $Price %])</a></li>
271                             </ul>
272                             <div class="tab-content">
273                                 <div id="checkouts-tab" class="tab-pane active">
274                                     <div id="borrowerdetails">
275                                         [% IF ( issues_count ) %]
276                                             <table id="loanTable" class="table table-bordered table-striped">
277                                                 <caption>Checkouts for [% borrowername | html %] <span class="count">([% issues_count | html %] total)</span></caption>
278                                                 <!-- ISSUES TABLE ROWS -->
279                                                 <thead>
280                                                     <tr>
281                                                         <th class="noshow">Checked out on</th>
282                                                         <th class="anti-the">Title</th>
283                                                         <th>Call no.</th>
284                                                         <th class="title-string">Due</th>
285                                                         <th class="nosort">Renew</th>
286                                                         [% UNLESS ( nofines ) %]
287                                                             <th>Fines</th>
288                                                         [% END %]
289                                                     </tr>
290                                                 </thead>
291                                                 <tbody>
292                                                     [% FOREACH ISSUE IN ISSUES %]
293                                                         <tr>
294                                                             <td>[% ISSUE.issuedate | html %]</td>
295                                                             <td>
296                                                                 [% UNLESS ( noitemlinks ) %]
297                                                                     <a href="/cgi-bin/koha/opac-detail.pl?bib=[% ISSUE.  biblionumber | uri %]">[% ISSUE.title | html %]</a>
298                                                                 [% ELSE %]
299                                                                     <strong>[% ISSUE.title | html %]</strong>
300                                                                 [% END %]
301                                                                 [% IF ( newissues.match(ISSUE.barcode)) %]
302                                                                     <span class="label label-info">NEW</span>
303                                                                 [% END %]
304                                                                 <span class="item-details">[% ISSUE.author | html %]</span>
305                                                                 ([% ISSUE.barcode | html %])
306                                                             </td>
307                                                             <td>[% ISSUE.itemcallnumber | html %]</td>
308                                                             [% IF ( ISSUE.overdue ) %]
309                                                                 <td class="overdue"><span title="[% ISSUE.date_due | html %]">[% ISSUE.date_due | $KohaDates  as_due_date => 1 %]</span></td>
310                                                             [% ELSE   %]
311                                                                 <td><span title="[% ISSUE.date_due | html %]">[% ISSUE.date_due | $KohaDates  as_due_date => 1 %]</span></td>
312                                                             [% END %]
313                                                             <td>
314                                                                 <form action="/cgi-bin/koha/sco/sco-main.pl" method="post">
315                                                                     <input type="hidden" name="patronid" value="[% patronid | html %]" />
316                                                                     <input type="hidden" name="barcode" value="[% ISSUE.barcode | html %]" />
317                                                                     <input type="hidden" name="newissues" value="[% newissues | html %]" />
318                                                                     [% IF ISSUE.can_be_renewed %]
319                                                                         <input type="hidden" name="op" value="checkout" />
320                                                                         <input type="hidden" name="confirmed" value="1" />
321                                                                         [% UNLESS ( ISSUE.renew ) %]
322                                                                             <input type="submit" value="Renew item"  name="confirm  " class="btn renew" />
323                                                                         [% ELSE %]
324                                                                             <input type="submit" value="Renew item" class="btn renew" />
325                                                                         [% END %]
326                                                                     [% ELSE %]
327                                                                         [% IF ISSUE.renew_error == 'auto_renew' OR ISSUE.renew_error == 'auto_too_soon' %]
328                                                                             <span>This item has been scheduled for automatic renewal and cannot be renewed</span>
329                                                                         [% ELSIF ISSUE.renew_error == 'onsite_checkout' %]
330                                                                             <span>This is a on-site checkout, it cannot be renewed.</span>
331                                                                         [% ELSE %]
332                                                                             <span>No renewals allowed</span>
333                                                                         [% END %]
334                                                                         [% IF Koha.Preference('AllowSelfCheckReturns') %]
335                                                                             <input type="submit" value="Check in item" name="confirm" class="btn return" />
336                                                                             <input type="hidden" name="op" value="returnbook" />
337                                                                             <input type="hidden" name="confirmed" value=""  />
338                                                                         [% END %]
339                                                                     [% END %]
340                                                                 </form>
341                                                             </td>
342                                                             [% UNLESS ( nofines ) %]
343                                                                 <td>
344                                                                     [% IF ( ISSUE.charges ) %]Yes[% ELSE %]No[% END %]
345                                                                 </td>
346                                                             [% END %]
347                                                         </tr>
348                                                     [% END # / FOREACH ISSUE %]
349                                                 </tbody>
350                                             </table>
351                                         [% ELSE %]
352                                             <h3>You currently have nothing checked out.</h3>
353                                         [% END # / IF issues_count %]
354                                     </div> <!-- / #borrowerdetails -->
355                                 </div>
356                                 <div id="holds-tab" class="tab-pane">
357                                     [% IF HOLDS.count > 0 %]
358                                         [% PROCESS 'holds-table.inc' HOLDS = HOLDS, SuspendHoldsOpac = SuspendHoldsOpac, showpriority = showpriority, AutoResumeSuspendedHolds = AutoResumeSuspendedHolds, onlyinfo = 'true' %]
359                                     [% ELSE %]
360                                         <h3>You currently have no pending holds.</h3>
361                                     [% END %]
362                                 </div>
363                                 <div id="account-tab" class="tab-pane">
364                                     [% PROCESS 'account-table.inc' %]
365                                 </div>
366                             </div>
367                         </div>
368                         [% ELSE # IF validuser %]
369                             <div class="sco_entry" >
370                                 <form id="mainform" action="/cgi-bin/koha/sco/sco-main.pl" name="mainform" method="post">
371                                     <fieldset class="checkout brief">
372                                         [% IF ( Koha.Preference('SelfCheckoutByLogin') ) %]
373                                             <legend>Log in to your account</legend>
374                                             <label for="patronlogin">Login:</label>
375                                             <input type="text" id="patronlogin" class="focus" size="20" name="patronlogin" />
376                                             <label for="patronpw">Password:</label>
377                                             <input type="password" id="patronpw" size="20" name="patronpw" />
378                                             <fieldset class="action">
379                                                 <button type="submit" class="btn">Log in</button>
380                                             </fieldset>
381                                         [% ELSE %]
382                                             <div class="input-append">
383                                                 <label for="patronid">Please enter your card number:</label>
384                                                 <input type="text" id="patronid" class="focus" size="20" name="patronid" autocomplete="off" />
385                                                 <button type="submit" class="btn">Submit</button>
386                                             </div>
387                                         [% END %]
388
389                                         [% FOREACH INPUT IN INPUTS %]
390                                             <input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]">
391                                         [% END %]
392                                         <input type="hidden" name="op" value="login" />
393                                     </fieldset>
394                                 </form>
395                             </div> <!-- / .sco_entry -->
396                         [% END # / IF validuser %]
397                     [% END # / UNLESS ( hide_main %]
398                     [% IF ( Koha.Preference('SCOMainUserBlock' ) ) %]<div id="scomainuserblock">[% Koha.Preference('SCOMainUserBlock' ) | $raw %]</div>[% END %]
399                 </div> <!-- / .span12 -->
400             </div> <!-- / .row-fluid -->
401         </div> <!-- / .container-fluid -->
402     </div> <!-- / .main -->
403     <span id="audio-alert"></span>
404
405 [% INCLUDE 'opac-bottom.inc' %]
406 [% BLOCK jsinclude %]
407     [% INCLUDE 'datatables.inc' %]
408     <script>
409         //<![CDATA[
410         function mungeHistory() {
411             // prevent back button from allowing form resubmission
412             if (history && history.pushState) {
413                 history.replaceState(null, document.title, window.location.href);
414             }
415         }
416         var mainTimeout;
417         function sco_init() {
418             mainTimeout = setTimeout(function() {
419                 location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout';
420             }, [% SelfCheckTimeout | html %]);
421         }
422         function dofocus() {    // named function req'd for body onload event by some FF and IE7 security models
423             // alert("dofocus called");
424             $(".focus:last").select();
425         }
426         var slip_re = /slip/;
427         function printx_window(print_type) {
428           var handler = print_type.match(slip_re) ? "printslip" : "moremember";
429
430           return false;
431         }
432         function checkout_confirm(patronid) {
433             var   barcode = $("#barcode").val();
434             // alert("checkout_confirm('" + patronid + "') called for barcode '" + barcode + "'");
435             if (! barcode) { dofocus(); return false; }    // no barcode
436             if (barcode == "__KOHA_NEW_CIRC__") {   // magic barcode
437                 window.location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';
438                 return false;
439             }
440             return true;
441         }
442         [% IF Koha.Preference('AudioAlerts') %]
443             var AUDIO_ALERTS = JSON.parse( "[% To.json(AudioAlerts.AudioAlerts) | $raw %]" );
444             $( document ).ready(function() {
445                 if ( AUDIO_ALERTS ) {
446                     for ( var k in AUDIO_ALERTS ) {
447                         var alert = AUDIO_ALERTS[k];
448                         if ( $( alert.selector ).length ) {
449                             playSound( alert.sound );
450                             break;
451                         }
452                     }
453                 }
454             });
455             function playSound( sound ) {
456                 if (  ( sound.indexOf('http://') == 0 || sound.indexOf('https://') == 0 )  ) {
457                     document.getElementById("audio-alert").innerHTML = '<audio src="' + sound + '" autoplay="autoplay" autobuffer="autobuffer"></audio>';
458                 }
459             }
460         [% END %]
461
462
463         $(document).ready(function() {
464             dofocus();
465             [% IF ( patronid ) %]sco_init();[% END %]
466             $("#loanTable").dataTable($.extend(true, {}, dataTablesDefaults, {
467                 "order": [ 0 ],
468                 "columnDefs": [
469                     { "targets": [ "nosort" ], "sortable": false, "searchable": false },
470                     { "targets": [ "noshow" ], "visible": false, "searchable": false },
471                     { "type": "anti-the", "targets" : [ "anti-the" ] },
472                     { "type": "title-string", "targets" : [ "title-string" ] }
473                 ]
474             }));
475
476             $("#logout_form").submit(function(){
477                 clearTimeout(mainTimeout);
478                 [% IF Koha.Preference('SelfCheckReceiptPrompt') %]
479                     var confirmStart = Date.now();
480                     if(confirm(_("Would you like to print a receipt?"))){
481                         if ( (Date.now() - confirmStart) < [% SelfCheckTimeout | html %] ) {
482                             window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber | html %]&amp;print=qslip");
483                         } else {
484                             alert(_("Timeout while waiting for print confirmation"));
485                         }
486                     }
487                 [% END %]
488
489                 return true;
490             });
491     });
492     //]]>
493     </script>
494
495     [% IF ( Koha.Preference('SCOUserJS') ) %]<script>[% Koha.Preference('SCOUserJS') | $raw %]</script>[% END %]
496 [% END %]