1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryName" --> › Self Checkout </title>
2 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
3 <meta name="generator" content="Koha <!-- TMPL_VAR NAME="Version" -->" /> <!-- leave this for stats -->
4 <link rel="shortcut icon" href="<!-- TMPL_VAR NAME="themelang" -->/includes/favicon.ico" type="image/x-icon" />
5 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/jquery.js"></script>
6 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
7 <script type="text/javascript">//<![CDATA[
8 function sco_init(valid_session) {
9 if (valid_session == 1) {
10 setTimeout("location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';",120000); // TODO: syspref for timeout
13 function dofocus() { // named function req'd for body onload event by some FF and IE7 security models
14 // alert("dofocus called");
15 $(".focus:last").select();
18 function checkout_confirm(patronid) {
19 var barcode = $("#barcode").val();
20 // alert("checkout_confirm('" + patronid + "') called for barcode '" + barcode + "'");
21 if (! barcode) { dofocus(); return false; } // no barcode
22 if (barcode == "__KOHA_NEW_CIRC__") { // magic barcode
23 window.location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';
26 if (this.valid_session == 0) {
27 // probably should force logout like above ? --atz 6/09
28 if (confirm('Session has expired. Click \'OK\' to continue processing this item. Click Cancel if you are not ' + patronid)){
29 this.op.value='logout';
30 this.patronid.value='';
36 $.tablesorter.addParser({
38 is: function(s) {return false; },
39 format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
43 $(document).ready(function() {
44 <!-- TMPL_IF NAME="patronid" --> sco_init(1);
45 <!-- TMPL_ELSIF NAME="timedout" --> sco_init(1);
47 $("#loanTable").tablesorter({
48 <!-- TMPL_IF NAME="dateformat_metric" -->
52 sortList: [[2, 1], [0, 0]],
54 0: { sorter: 'articles' },
56 <!-- TMPL_UNLESS NAME="nofines" -->, 4: { sorter: false }<!-- /TMPL_UNLESS -->
62 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/css/sco.css" />
64 <body onload="dofocus();">
66 <div id="doc" class="yui-t7">
68 <div id="masthead"><h1><!-- TMPL_VAR NAME="LibraryName" --> Self Checkout System</h1></div>
72 <!-- TMPL_IF NAME="impossible" --><!-- We tried to issue, but failed. -->
73 <div class="dialog alert"><h3>Item cannot be checked out.</h3><p>Sorry, This item cannot be checked out at this station. </p>
74 <!-- TMPL_IF NAME="title" --><p>Title: <em><!-- TMPL_VAR NAME="title" escape="html" --></em> </p><!-- /TMPL_IF -->
76 <!-- TMPL_IF NAME="circ_error_UNKNOWN_BARCODE" -->
77 <em>MESSAGE 1:</em> The system does not recognize this barcode.
78 <!-- TMPL_ELSIF NAME="circ_error_TOO_MANY" -->
79 <em>MESSAGE 2:</em> You have borrowed too many items and can't check out any more.
80 <!-- TMPL_ELSIF NAME="circ_error_ISSUED_TO_ANOTHER" -->
81 <em>MESSAGE 3:</em> This item is checked out to someone else.
82 <!-- TMPL_ELSIF NAME="circ_error_NO_MORE_RENEWALS" -->
83 <em>MESSAGE 4:</em> You cannot renew this item again.
84 <!-- TMPL_ELSIF NAME="circ_error_NOT_FOR_LOAN" -->
85 <em>MESSAGE 5:</em> This item is not for loan.
86 <!-- TMPL_ELSIF NAME="circ_error_DEBT" -->
87 <em>MESSAGE 6:</em> You owe the library <!-- TMPL_VAR NAME="amount" --> and cannot borrow.
88 <!-- TMPL_ELSIF NAME="circ_error_WTHDRAWN" -->
89 <em>MESSAGE 7:</em> This item has been withdrawn from the collection.
90 <!-- TMPL_ELSIF NAME="circ_error_RESTRICTED" -->
92 <!-- TMPL_ELSIF NAME="circ_error_RESERVED" -->
93 <em>MESSAGE 9:</em> This item is reserved for another patron.
94 <!-- TMPL_ELSIF NAME="circ_error_ITEMNOTSAMEBRANCH" -->
96 <!-- TMPL_ELSIF NAME="circ_error_EXPIRED" -->
97 <em>MESSAGE 11:</em> Your account has expired.
98 <!-- TMPL_ELSIF NAME="circ_error_DEBARRED" -->
99 <em>MESSAGE 12:</em> Your account has been suspended.
100 <!-- TMPL_ELSIF NAME="circ_error_CARD_LOST" -->
101 <em>MESSAGE 13:</em> This card has been declared lost.
102 <!-- TMPL_ELSIF NAME="circ_error_GNA" -->
104 <!-- TMPL_ELSIF NAME="circ_error_INVALID_DATE" -->
107 Please see a member of the library staff.
109 <form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" method="post">
110 <input type="hidden" name="op" value="login" />
111 <input type="hidden" name="patronid" value="<!-- TMPL_VAR NAME="patronid" -->" />
112 <!-- TMPL_IF NAME="returnitem" -->
113 <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();" />
116 <input type="submit" name= "confirm" value="Return to Account Summary" class="back focus" />
119 <!-- TMPL_IF NAME="confirm" --><!-- We need to confirm the issue.. -->
120 <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 <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" method="post">
124 <input type="hidden" name="op" value="checkout" />
125 <input type="hidden" name="patronid" value="<!-- TMPL_VAR NAME="patronid" -->" />
126 <input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" />
127 <input type="hidden" name="confirmed" value="" />
128 <!-- TMPL_IF NAME="renew" -->
129 <input type="button" value="Return Item" name="confirm" class="return" onclick="this.form.op.value='returnbook';this.form.submit();" />
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();" />
132 <input type="button" value="Cancel" class="cancel" onclick="this.form.op.value='';this.form.submit();return true;" />
137 <!-- TMPL_IF NAME="nopermission" --><!-- This is what is displayed if user doesnt have permission --><div class="dialog alert"><h3>Access Denied</h3>
138 Sorry, This Self-Checkout Station has lost authentication. Please contact the administrator to resolve this problem. </div>
140 <!-- TMPL_IF NAME="timed_out" --><!-- This is what is displayed if login has timed out -->
141 <div class="dialog alert"><h3>Session timed out</h3>Sorry, your session has timed out, please log in again.</div><!-- /TMPL_IF -->
142 <!-- TMPL_IF NAME="different_ip" --><!-- This is what is displayed if user doesnt have permission --><div class="dialog alert"><h3>Session Lost</h3>You are accessing Self-Checkout from a different IP address! please log in again.</div><!-- /TMPL_IF -->
143 <!-- TMPL_IF NAME="invalid_username_or_password" -->
144 <!-- This is what is displayed if user doesnt have permission --><div class="dialog alert"><h3>Record not found</h3><p>Your userid was not found in the database. Please try again.</p></div><!-- /TMPL_IF -->
147 <!-- TMPL_UNLESS NAME="hide_main" -->
148 <div class="sco_head">
149 <!-- TMPL_UNLESS NAME="validuser" -->
150 <h3>Self Checkout</h3>
151 <!-- /TMPL_UNLESS -->
153 <div id="checkouthelp">
154 <a href="/cgi-bin/koha/sco/help.pl">HELP</a> with the self checkout system
157 <!-- TMPL_IF NAME="patronid" -->
158 <!-- TMPL_IF NAME="validuser" -->
159 <h3 class="warning">You are logged in as <!-- TMPL_VAR NAME="borrowername" -->.</h3>
160 <!-- TMPL_IF NAME="display_patron_image" -->
161 <img src="/cgi-bin/koha/sco/sco-patron-image.pl?cardnumber=<!-- TMPL_VAR NAME="cardnumber" -->" alt="" />
165 <!-- TMPL_IF NAME="nouser" -->
166 <div class="error"><h4>Sorry</h4><p>The userid <strong><!-- TMPL_VAR NAME="patronid" --></strong> was not found in the database. Please try again.</p></div>
171 <!-- TMPL_IF NAME="timedout" -->
172 <div class="error"><h4>Sorry</h4><p>Your session has timed out due to inactivity. Please sign in.</p></div>
175 <!-- TMPL_IF NAME="validuser" -->
176 <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' -->');">
178 <fieldset><legend> Check out or return an item: </legend>
179 <label for="barcode">Scan a new item or enter its barcode:</label>
180 <input id="barcode" name="barcode" size="20" class="focus" />
181 <input type="hidden" name="op" value="checkout" />
182 <input type="hidden" name="patronid" value="<!-- TMPL_VAR name="patronid" -->" />
183 <input type="hidden" name="valid_session" value="1" />
184 <input type="submit" value="Submit" class="submit" /></fieldset>
186 <div><form method="post" action="/cgi-bin/koha/sco/sco-main.pl?op=logout" ><input type="submit" value="Finish" class="finish" /></form></div>
187 </div> <!-- sco_entry --> <!-- newcheckout -->
189 <div id="borrowerdetails">
190 <!-- TMPL_IF NAME="issues_count" -->
191 <table id="loanTable"><caption>Checkouts for <!-- TMPL_VAR NAME='borrowername' --> <span class="count">(<!-- TMPL_VAR NAME="issues_count" --> total)</span></caption>
192 <!-- ISSUES TABLE ROWS -->
194 <tr><th>Title</th><th>Call No.</th><th>Due</th><th>Renew</th><!-- TMPL_UNLESS NAME="nofines" --><th>Fines</th><!-- /TMPL_UNLESS --></tr>
198 <!-- TMPL_LOOP NAME="ISSUES" -->
199 <!-- TMPL_UNLESS name="__odd__" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_UNLESS -->
200 <!-- FIXME: yet another jacket image breakpoint -->
201 <td><!-- TMPL_IF NAME="amazonimages" --> <!-- TMPL_IF NAME="isbn" --><a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><img src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01.THUMBZZZ.jpg" alt="Book Cover Image" class="thumbnail" /></a><!-- /TMPL_IF --> <!-- /TMPL_IF --><!-- TMPL_UNLESS NAME="noitemlinks" --><a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a><!-- TMPL_ELSE --><strong><!-- TMPL_VAR NAME="title" escape="html" --></strong><!-- /TMPL_UNLESS --><span class="item-details">
202 <!-- TMPL_VAR NAME="author" --></span> (<!-- TMPL_VAR NAME="barcode" -->)</td>
203 <td><!-- TMPL_VAR NAME="itemcallnumber" DEFAULT=" " --></td>
204 <!-- TMPL_IF NAME="overdue" --><td class="overdue"><!-- TMPL_VAR NAME="date_due_display" --></td><!-- TMPL_ELSE --><td><!-- TMPL_VAR NAME="date_due_display" --></td><!-- /TMPL_IF -->
206 <form action="/cgi-bin/koha/sco/sco-main.pl" method="post">
207 <input type="hidden" name="op" value="checkout" />
208 <input type="hidden" name="patronid" value="<!-- TMPL_VAR NAME="patronid" -->" />
209 <input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" />
210 <input type="hidden" name="confirmed" value="" />
211 <!-- TMPL_IF NAME="norenew" -->
212 <input type="button" value="Return Item" name="confirm" class="return" onclick="this.form.op.value='returnbook';this.form.submit();" />
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();" />
218 <!-- TMPL_UNLESS NAME="nofines" --><td><!-- TMPL_IF NAME="charges" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td><!-- /TMPL_UNLESS --></tr>
224 <h3>You currently have nothing checked out.</h3>
227 <!-- TMPL_ELSE --><!-- not validuser -->
228 <div class="sco_entry" >
229 <form id="mainform" action="/cgi-bin/koha/sco/sco-main.pl" name="mainform" method="post">
230 <fieldset class="checkout"><label for="patronid">Please enter your card number:</label>
231 <input type="text" id="patronid" class="focus" size="20" name="patronid" />
233 <!-- 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" />
235 <input type="submit" value="Submit" class="submit" /></fieldset></form>
238 <!-- /TMPL_UNLESS --> <!-- ( / hide main) -->
243 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->