Lines 7-13
Link Here
|
7 |
<script type="text/javascript">//<![CDATA[ |
7 |
<script type="text/javascript">//<![CDATA[ |
8 |
function sco_init(valid_session) { |
8 |
function sco_init(valid_session) { |
9 |
if (valid_session == 1) { |
9 |
if (valid_session == 1) { |
10 |
setTimeout("location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';",120000); // TODO: syspref for timeout |
10 |
setTimeout("location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';",<!-- TMPL_VAR name="SelfCheckTimeout" -->); |
11 |
} |
11 |
} |
12 |
} |
12 |
} |
13 |
function dofocus() { // named function req'd for body onload event by some FF and IE7 security models |
13 |
function dofocus() { // named function req'd for body onload event by some FF and IE7 security models |
Lines 110-124
$(document).ready(function() {
Link Here
|
110 |
<input type="hidden" name="op" value="login" /> |
110 |
<input type="hidden" name="op" value="login" /> |
111 |
<input type="hidden" name="patronid" value="<!-- TMPL_VAR NAME="patronid" -->" /> |
111 |
<input type="hidden" name="patronid" value="<!-- TMPL_VAR NAME="patronid" -->" /> |
112 |
<!-- TMPL_IF NAME="returnitem" --> |
112 |
<!-- TMPL_IF NAME="returnitem" --> |
|
|
113 |
<!-- TMPL_IF NAME="AllowSelfCheckReturns" --> |
113 |
<input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" /> |
114 |
<input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" /> |
114 |
<input type="button" name="returnbook" value="Return this item" class="return" onclick="this.form.op.value='returnbook';this.form.submit();" /> |
115 |
<input type="button" name="returnbook" value="Return this item" class="return" onclick="this.form.op.value='returnbook';this.form.submit();" /> |
115 |
<!-- /TMPL_IF --> |
116 |
<!-- /TMPL_IF --> |
|
|
117 |
<!-- /TMPL_IF --> |
116 |
<input type="submit" name= "confirm" value="Return to Account Summary" class="back focus" /> |
118 |
<input type="submit" name= "confirm" value="Return to Account Summary" class="back focus" /> |
117 |
</form> |
119 |
</form> |
118 |
<!-- /TMPL_IF --> |
120 |
<!-- /TMPL_IF --> |
119 |
<!-- TMPL_IF NAME="confirm" --><!-- We need to confirm the issue.. --> |
121 |
<!-- TMPL_IF NAME="confirm" --><!-- We need to confirm the issue.. --> |
120 |
<div class="dialog alert"><h3>Please confirm the checkout:</h3> |
122 |
<div class="dialog alert"><h3>Please confirm the checkout:</h3> |
121 |
<p><!-- TMPL_IF NAME="confirm_renew_issue" -->This item is already checked out to you. Return it?<!-- /TMPL_IF --></p> |
123 |
<p><!-- TMPL_IF NAME="confirm_renew_issue" -->This item is already checked out to you.<!-- /TMPL_IF --></p> |
122 |
|
124 |
|
123 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" method="post"> |
125 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" method="post"> |
124 |
<input type="hidden" name="op" value="checkout" /> |
126 |
<input type="hidden" name="op" value="checkout" /> |
Lines 126-133
$(document).ready(function() {
Link Here
|
126 |
<input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" /> |
128 |
<input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" /> |
127 |
<input type="hidden" name="confirmed" value="" /> |
129 |
<input type="hidden" name="confirmed" value="" /> |
128 |
<!-- TMPL_IF NAME="renew" --> |
130 |
<!-- TMPL_IF NAME="renew" --> |
|
|
131 |
<!-- TMPL_IF NAME="AllowSelfCheckReturns" --> |
129 |
<input type="button" value="Return Item" name="confirm" class="return" onclick="this.form.op.value='returnbook';this.form.submit();" /> |
132 |
<input type="button" value="Return Item" name="confirm" class="return" onclick="this.form.op.value='returnbook';this.form.submit();" /> |
130 |
<!-- /TMPL_IF --> |
133 |
<!-- /TMPL_IF --> |
|
|
134 |
<!-- /TMPL_IF --> |
131 |
<input type="button" value="Renew Item" <!-- TMPL_UNLESS NAME="renew" --> name="confirm"<!-- /TMPL_UNLESS --> class="renew" onclick="this.form.confirmed.value='1';this.form.submit();" /> |
135 |
<input type="button" value="Renew Item" <!-- TMPL_UNLESS NAME="renew" --> name="confirm"<!-- /TMPL_UNLESS --> class="renew" onclick="this.form.confirmed.value='1';this.form.submit();" /> |
132 |
<input type="button" value="Cancel" class="cancel" onclick="this.form.op.value='';this.form.submit();return true;" /> |
136 |
<input type="button" value="Cancel" class="cancel" onclick="this.form.op.value='';this.form.submit();return true;" /> |
133 |
</form> |
137 |
</form> |
Lines 175-181
Sorry, This Self-Checkout Station has lost authentication. Please contact the a
Link Here
|
175 |
<!-- TMPL_IF NAME="validuser" --> |
179 |
<!-- TMPL_IF NAME="validuser" --> |
176 |
<div id="newcheckout" class="sco_entry"> |
180 |
<div id="newcheckout" class="sco_entry"> |
177 |
<form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl" onsubmit="return checkout_confirm('<!-- TMPL_VAR NAME='patronid' -->');"> |
181 |
<form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl" onsubmit="return checkout_confirm('<!-- TMPL_VAR NAME='patronid' -->');"> |
178 |
<fieldset><legend> Check out or return an item: </legend> |
182 |
<fieldset><legend> Check out<!--TMPL_IF NAME="AllowSelfCheckReturns" -->, return<!--/TMPL_IF --> or renew an item: </legend> |
179 |
<label for="barcode">Scan a new item or enter its barcode:</label> |
183 |
<label for="barcode">Scan a new item or enter its barcode:</label> |
180 |
<input id="barcode" name="barcode" size="20" class="focus" /> |
184 |
<input id="barcode" name="barcode" size="20" class="focus" /> |
181 |
<input type="hidden" name="op" value="checkout" /> |
185 |
<input type="hidden" name="op" value="checkout" /> |
Lines 209-215
Sorry, This Self-Checkout Station has lost authentication. Please contact the a
Link Here
|
209 |
<input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" /> |
213 |
<input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" /> |
210 |
<input type="hidden" name="confirmed" value="" /> |
214 |
<input type="hidden" name="confirmed" value="" /> |
211 |
<!-- TMPL_IF NAME="norenew" --> |
215 |
<!-- TMPL_IF NAME="norenew" --> |
212 |
<input type="button" value="Return Item" name="confirm" class="return" onclick="this.form.op.value='returnbook';this.form.submit();" /> |
216 |
<!-- TMPL_IF NAME="AllowSelfCheckReturns" --> |
|
|
217 |
<input type="button" value="Return Item" name="confirm" class="return" onclick="this.form.op.value='returnbook';this.form.submit();" /> |
218 |
<!-- TMPL_ELSE --> |
219 |
<span>No renewals allowed</span> |
220 |
<!-- /TMPL_IF --> |
213 |
<!-- TMPL_ELSE --> |
221 |
<!-- TMPL_ELSE --> |
214 |
<input type="button" value="Renew Item" <!-- TMPL_UNLESS NAME="renew" --> name="confirm"<!-- /TMPL_UNLESS --> class="renew" onclick="this.form.confirmed.value='1';this.form.submit();" /> |
222 |
<input type="button" value="Renew Item" <!-- TMPL_UNLESS NAME="renew" --> name="confirm"<!-- /TMPL_UNLESS --> class="renew" onclick="this.form.confirmed.value='1';this.form.submit();" /> |
215 |
<!-- /TMPL_IF --> |
223 |
<!-- /TMPL_IF --> |
Lines 227-234
Sorry, This Self-Checkout Station has lost authentication. Please contact the a
Link Here
|
227 |
<!-- TMPL_ELSE --><!-- not validuser --> |
235 |
<!-- TMPL_ELSE --><!-- not validuser --> |
228 |
<div class="sco_entry" > |
236 |
<div class="sco_entry" > |
229 |
<form id="mainform" action="/cgi-bin/koha/sco/sco-main.pl" name="mainform" method="post"> |
237 |
<form id="mainform" action="/cgi-bin/koha/sco/sco-main.pl" name="mainform" method="post"> |
|
|
238 |
<!-- TMPL_IF NAME="authbylogin" --> |
239 |
<fieldset class="checkout"> |
240 |
<legend>Please login with your username and password</legend> |
241 |
<label for="patronlogin">Username:</label> |
242 |
<input type="text" id="patronlogin" class="focus" size="20" name="patronlogin" /> |
243 |
<label for="patronpw">Password:</label> |
244 |
<input type="password" id="patronpw" size="20" name="patronpw" /> |
245 |
<!-- TMPL_ELSE --> |
230 |
<fieldset class="checkout"><label for="patronid">Please enter your card number:</label> |
246 |
<fieldset class="checkout"><label for="patronid">Please enter your card number:</label> |
231 |
<input type="text" id="patronid" class="focus" size="20" name="patronid" /> |
247 |
<input type="text" id="patronid" class="focus" size="20" name="patronid" /> |
|
|
248 |
<!-- /TMPL_IF --> |
232 |
|
249 |
|
233 |
<!-- TMPL_LOOP NAME="INPUTS" --><input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="value" -->"><!-- /TMPL_LOOP --> |
250 |
<!-- TMPL_LOOP NAME="INPUTS" --><input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="value" -->"><!-- /TMPL_LOOP --> |
234 |
<input type="hidden" name="op" value="login" /> |
251 |
<input type="hidden" name="op" value="login" /> |