+[% USE raw %]
+[% USE Asset %]
[%# Includes %]
[% USE Koha %]
[% USE KohaDates %]
[% INCLUDE 'doc-head-open.inc' %]
-<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha [% END %] › Self check-in</title>
+<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha [% END %] › Self check-in</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Koha [% Version %]" /> <!-- leave this for stats -->
+<meta name="generator" content="Koha [% Version | html %]" /> <!-- leave this for stats -->
[% IF ( Koha.Preference('OpacFavicon') ) %]
-<link rel="shortcut icon" href="[% Koha.Preference('OpacFavicon') %]" type="image/x-icon" />
+<link rel="shortcut icon" href="[% Koha.Preference('OpacFavicon') | url %]" type="image/x-icon" />
[% ELSE %]
-<link rel="shortcut icon" href="[% interface %]/[% theme %]/images/favicon.ico" type="image/x-icon" />
+<link rel="shortcut icon" href="[% interface | html %]/[% theme | html %]/images/favicon.ico" type="image/x-icon" />
[% END %]
-<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/lib/bootstrap/css/bootstrap.min.css" />
-<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/lib/jquery/jquery-ui.css" />
-<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/lib/font-awesome/css/font-awesome.min.css" />
-<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/sci.css" />
-[% IF ( Koha.Preference('OPACUserCSS') ) %]<style type="text/css">[% Koha.Preference('OPACUserCSS') %]</style>[% END %]
-[% IF ( Koha.Preference('SelfCheckInUserCSS') ) %]<style type="text/css">[% Koha.Preference('SelfCheckInUserCSS') %]</style>[% END %]
+[% Asset.css("lib/bootstrap/css/bootstrap.min.css") | $raw %]
+[% Asset.css("lib/jquery/jquery-ui.css") | $raw %]
+[% Asset.css("lib/font-awesome/css/font-awesome.min.css") | $raw %]
+[% Asset.css("css/sci.css") | $raw %]
+[% IF ( Koha.Preference('OPACUserCSS') ) %]<style>[% Koha.Preference('OPACUserCSS') | $raw %]</style>[% END %]
+[% IF ( Koha.Preference('SelfCheckInUserCSS') ) %]<style>[% Koha.Preference('SelfCheckInUserCSS') | $raw %]</style>[% END %]
<!--[if lt IE 9]>
- <script src="[% interface %]/[% theme %]/lib/respond.min.js"></script>
+ <script src="[% interface | html %]/[% theme | html %]/lib/respond.min.js"></script>
<![endif]-->
-<script type="text/javascript">
+<script>
function _(s) { return s } // dummy function for gettext
</script>
-<script type="text/javascript" src="[% interface %]/[% theme %]/lib/modernizr.min.js"></script>
+[% Asset.js("lib/modernizr.min.js") | $raw %]
</head>
<body id="sci_main" class="sci" onload="dofocus();" onunload="mungeHistory();">
<div class="navbar navbar-inverse navbar-static-top">
<div class="navbar-inner">
<div class="container-fluid">
- <a class="brand" href="/cgi-bin/koha/sci/sci-main.pl"><img src="[% interface %]/[% theme %]/images/koha-logo-navbar.png" alt=""></a>
+ <a class="brand" href="/cgi-bin/koha/sci/sci-main.pl"><img src="[% interface | html %]/[% theme | html %]/images/koha-logo-navbar.png" alt=""></a>
<div id="checkouthelp">
<ul class="nav pull-right">
<li><a href="/cgi-bin/koha/sci/sci-main.pl" class="helpModal-trigger" role="button" data-toggle="modal"><i class="icon help"></i> Help</a></li>
<div class="container-fluid">
<div class="row-fluid">
<div id="opacheader">
- [% Koha.Preference( 'opacheader' ) %]
+ [% Koha.Preference( 'opacheader' ) | $raw %]
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div id="masthead">
- <h1>[% LibraryName %] Self check-in</h1>
+ <h1>[% LibraryName | html %] Self check-in</h1>
[% IF ( nopermission ) %]
[%# This is what is displayed if user doesn't have permission %]
<div class="alert">
</thead>
<tbody>
[% FOREACH success_line IN success %]
- <tr><td>[% success_line.barcode %]</td><td>Checked in</td></tr>
+ <tr><td>[% success_line.barcode | html %]</td><td>Checked in</td></tr>
[% END %]
[% FOREACH error IN errors %]
<tr>
- <td>[% error.barcode %]</td>
+ <td>[% error.barcode | html %]</td>
<td>Not checked in [% PROCESS error_message messages=error.messages %]</td>
</tr>
[% END %]
</div> <!-- / .row-fluid -->
</div> <!-- / .container-fluid -->
- [% IF ( Koha.Preference('SelfCheckInMainUserBlock' ) ) %]
- <div id="SelfCheckInMainUserBlock">[% Koha.Preference('SelfCheckInMainUserBlock' ) %]</div>
+ [% IF ( Koha.Preference('SelfCheckInMainUserBlock') ) %]
+ <div id="SelfCheckInMainUserBlock">[% Koha.Preference('SelfCheckInMainUserBlock' ) | $raw %]</div>
[% END %]
</div> <!-- / .main -->
[% INCLUDE 'opac-bottom.inc' %]
[% BLOCK jsinclude %]
- [% INCLUDE 'datatables.inc' %]
- <script type="text/javascript">
+ <script>
function mungeHistory() {
// prevent back button from allowing form resubmission
var barcode = $('#barcode_input').val();
//var result = validate_barcode( barcode );
$('#sci_barcodes_table tbody').append(
- '<tr stype="font-size: initial;"><td>' +
+ '<tr style="font-size: initial;"><td>' +
barcode +
'<input type="hidden" name="barcode" value="' + barcode + '" />' +
'</td></tr>' );
var idleTime = 0;
$(document).ready(function () {
- //Increment the idle time counter every minute.
- var idleInterval = setInterval(timerIncrement, 1000); // 1 second
+ //Increment the idle time counter every second
+ var idleInterval = setInterval(timerIncrement, 1000);
//Zero the idle timer on mouse movement.
$(this).mousemove(function (e) {
function timerIncrement() {
if ( $("#sci_finish_button").is(":visible") || $("#sci_refresh_button").is(":visible") ) {
idleTime = idleTime + 1;
- idleTimeout = [% refresh_timeout %];
+ idleTimeout = [% refresh_timeout | html %];
if (idleTime >= idleTimeout ) {
- if ( $("#sci_finish_button").is(":visible") ) $("#sci_finish_button").click();
- if ( $("#sci_refresh_button").is(":visible") ) $("#sci_refresh_button").click();
+ location.href = '/cgi-bin/koha/sci/sci-main.pl';
}
}
}
</script>
- [% IF ( Koha.Preference('SelfCheckInUserJS') ) %]<script type="text/javascript">[% Koha.Preference('SelfCheckInUserJS') %]</script>[% END %]
+ [% IF ( Koha.Preference('SelfCheckInUserJS') ) %]<script>[% Koha.Preference('SelfCheckInUserJS') | $raw %]</script>[% END %]
[% END %]