1 [% INCLUDE 'doc-head-open.inc' %][% LibraryName %] › Self Checkout </title>
2 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
3 <meta name="generator" content="Koha [% Version %]" /> <!-- leave this for stats -->
4 <link rel="shortcut icon" href="[% themelang %]/includes/favicon.ico" type="image/x-icon" />
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/jquery.js"></script>
6 <script type="text/javascript" src="[% 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';",[% SelfCheckTimeout %]);
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 [% IF ( patronid ) %] sco_init(1);
45 [% ELSIF ( timedout ) %] sco_init(1);
47 $("#loanTable").tablesorter({
48 [% IF ( dateformat_metric ) %]
52 sortList: [[2, 1], [0, 0]],
54 0: { sorter: 'articles' },
56 [% UNLESS ( nofines ) %], 4: { sorter: false }[% END %]
62 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/sco.css" />
64 <body onload="dofocus();">
66 <div id="doc" class="yui-t7">
68 <div id="masthead"><h1>[% LibraryName %] Self Checkout System</h1></div>
72 [% IF ( 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 [% IF ( title ) %]<p>Title: <em>[% title |html %]</em> </p>[% END %]
76 [% IF ( circ_error_UNKNOWN_BARCODE ) %]
77 <em>MESSAGE 1:</em> The system does not recognize this barcode.
78 [% ELSIF ( circ_error_TOO_MANY ) %]
79 <em>MESSAGE 2:</em> You have borrowed too many items and can't check out any more.
80 [% ELSIF ( circ_error_ISSUED_TO_ANOTHER ) %]
81 <em>MESSAGE 3:</em> This item is checked out to someone else.
82 [% ELSIF ( circ_error_NO_MORE_RENEWALS ) %]
83 <em>MESSAGE 4:</em> You cannot renew this item again.
84 [% ELSIF ( circ_error_NOT_FOR_LOAN ) %]
85 <em>MESSAGE 5:</em> This item is not for loan.
86 [% ELSIF ( circ_error_DEBT ) %]
87 <em>MESSAGE 6:</em> You owe the library [% amount %] and cannot borrow.
88 [% ELSIF ( circ_error_WTHDRAWN ) %]
89 <em>MESSAGE 7:</em> This item has been withdrawn from the collection.
90 [% ELSIF ( circ_error_RESTRICTED ) %]
92 [% ELSIF ( circ_error_RESERVED ) %]
93 <em>MESSAGE 9:</em> This item is reserved for another patron.
94 [% ELSIF ( circ_error_ITEMNOTSAMEBRANCH ) %]
96 [% ELSIF ( circ_error_EXPIRED ) %]
97 <em>MESSAGE 11:</em> Your account has expired.
98 [% ELSIF ( circ_error_DEBARRED ) %]
99 <em>MESSAGE 12:</em> Your account has been suspended.
100 [% ELSIF ( circ_error_CARD_LOST ) %]
101 <em>MESSAGE 13:</em> This card has been declared lost.
102 [% ELSIF ( circ_error_GNA ) %]
104 [% ELSIF ( 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="[% patronid %]" />
112 [% IF ( returnitem ) %]
113 [% IF ( AllowSelfCheckReturns ) %]
114 <input type="hidden" name="barcode" value="[% barcode %]" />
115 <input type="button" name="returnbook" value="Return this item" class="return" onclick="this.form.op.value='returnbook';this.form.submit();" />
118 <input type="submit" name= "confirm" value="Return to Account Summary" class="back focus" />
121 [% IF ( confirm ) %]<!-- We need to confirm the issue.. -->
122 <div class="dialog alert"><h3>Please confirm the checkout:</h3>
123 <p>[% IF ( confirm_renew_issue ) %]This item is already checked out to you.[% END %]</p>
125 <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" method="post">
126 <input type="hidden" name="op" value="checkout" />
127 <input type="hidden" name="patronid" value="[% patronid %]" />
128 <input type="hidden" name="barcode" value="[% barcode %]" />
129 <input type="hidden" name="confirmed" value="" />
131 [% IF ( AllowSelfCheckReturns ) %]
132 <input type="button" value="Return Item" name="confirm" class="return" onclick="this.form.op.value='returnbook';this.form.submit();" />
135 <input type="button" value="Renew Item" [% UNLESS ( renew ) %] name="confirm"[% END %] class="renew" onclick="this.form.confirmed.value='1';this.form.submit();" />
136 <input type="button" value="Cancel" class="cancel" onclick="this.form.op.value='';this.form.submit();return true;" />
141 [% IF ( nopermission ) %]<!-- This is what is displayed if user doesnt have permission --><div class="dialog alert"><h3>Access Denied</h3>
142 Sorry, This Self-Checkout Station has lost authentication. Please contact the administrator to resolve this problem. </div>
144 [% IF ( timed_out ) %]<!-- This is what is displayed if login has timed out -->
145 <div class="dialog alert"><h3>Session timed out</h3>Sorry, your session has timed out, please log in again.</div>[% END %]
146 [% IF ( 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>[% END %]
147 [% IF ( invalid_username_or_password ) %]
148 <!-- 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>[% END %]
151 [% UNLESS ( hide_main ) %]
152 <div class="sco_head">
153 [% UNLESS ( validuser ) %]
154 <h3>Self Checkout</h3>
157 <div id="checkouthelp">
158 <a href="/cgi-bin/koha/sco/help.pl">HELP</a> with the self checkout system
161 [% IF ( patronid ) %]
162 [% IF ( validuser ) %]
163 <h3 class="warning">You are logged in as [% borrowername %].</h3>
164 [% IF ( display_patron_image ) %]
165 <img src="/cgi-bin/koha/sco/sco-patron-image.pl?cardnumber=[% cardnumber %]" alt="" />
170 <div class="error"><h4>Sorry</h4><p>The userid <strong>[% patronid %]</strong> was not found in the database. Please try again.</p></div>
175 [% IF ( timedout ) %]
176 <div class="error"><h4>Sorry</h4><p>Your session has timed out due to inactivity. Please sign in.</p></div>
179 [% IF ( validuser ) %]
180 <div id="newcheckout" class="sco_entry">
181 <form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl" onsubmit="return checkout_confirm('[% patronid %]');">
182 <fieldset><legend> Check out[% IF ( AllowSelfCheckReturns ) %], return[% END %] or renew an item: </legend>
183 <label for="barcode">Scan a new item or enter its barcode:</label>
184 <input id="barcode" name="barcode" size="20" class="focus" />
185 <input type="hidden" name="op" value="checkout" />
186 <input type="hidden" name="patronid" value="[% patronid %]" />
187 <input type="hidden" name="valid_session" value="1" />
188 <input type="submit" value="Submit" class="submit" /></fieldset>
190 <div><form method="post" action="/cgi-bin/koha/sco/sco-main.pl?op=logout" ><input type="submit" value="Finish" class="finish" /></form></div>
191 </div> <!-- sco_entry --> <!-- newcheckout -->
193 <div id="borrowerdetails">
194 [% IF ( issues_count ) %]
195 <table id="loanTable"><caption>Checkouts for [% borrowername %] <span class="count">([% issues_count %] total)</span></caption>
196 <!-- ISSUES TABLE ROWS -->
198 <tr><th>Title</th><th>Call No.</th><th>Due</th><th>Renew</th>[% UNLESS ( nofines ) %]<th>Fines</th>[% END %]</tr>
202 [% FOREACH ISSUE IN ISSUES %]
203 [% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
204 <!-- FIXME: yet another jacket image breakpoint -->
205 <td>[% IF ( ISSUE.amazonimages ) %] [% IF ( ISSUE.isbn ) %]<a href="/cgi-bin/koha/opac-detail.pl?bib=[% ISSUE.biblionumber |url %]"><img src="http://images.amazon.com/images/P/[% ISSUE.isbn %].01.THUMBZZZ.jpg" alt="Book Cover Image" class="thumbnail" /></a>[% END %] [% END %][% UNLESS ( ISSUE.noitemlinks ) %]<a href="/cgi-bin/koha/opac-detail.pl?bib=[% ISSUE.biblionumber %]">[% ISSUE.title |html %]</a>[% ELSE %]<strong>[% ISSUE.title |html %]</strong>[% END %]<span class="item-details">
206 [% ISSUE.author %]</span> ([% ISSUE.barcode %])</td>
207 <td>[% DEFAULT ISSUE.itemcallnumber=" " %]</td>
208 [% IF ( ISSUE.overdue ) %]<td class="overdue">[% ISSUE.date_due_display %]</td>[% ELSE %]<td>[% ISSUE.date_due_display %]</td>[% END %]
210 <form action="/cgi-bin/koha/sco/sco-main.pl" method="post">
211 <input type="hidden" name="op" value="checkout" />
212 <input type="hidden" name="patronid" value="[% ISSUE.patronid %]" />
213 <input type="hidden" name="barcode" value="[% ISSUE.barcode %]" />
214 <input type="hidden" name="confirmed" value="" />
215 [% IF ( ISSUE.norenew ) %]
216 [% IF ( ISSUE.AllowSelfCheckReturns ) %]
217 <input type="button" value="Return Item" name="confirm" class="return" onclick="this.form.op.value='returnbook';this.form.submit();" />
219 <span>No renewals allowed</span>
222 <input type="button" value="Renew Item" [% UNLESS ( ISSUE.renew ) %] name="confirm"[% END %] class="renew" onclick="this.form.confirmed.value='1';this.form.submit();" />
226 [% UNLESS ( ISSUE.nofines ) %]<td>[% IF ( ISSUE.charges ) %]Yes[% ELSE %]No[% END %]</td>[% END %]</tr>
232 <h3>You currently have nothing checked out.</h3>
235 [% ELSE %]<!-- not validuser -->
236 <div class="sco_entry" >
237 <form id="mainform" action="/cgi-bin/koha/sco/sco-main.pl" name="mainform" method="post">
238 [% IF ( 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" />
246 <fieldset class="checkout"><label for="patronid">Please enter your card number:</label>
247 <input type="text" id="patronid" class="focus" size="20" name="patronid" />
250 [% FOREACH INPUT IN INPUTS %]<input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]">[% END %]
251 <input type="hidden" name="op" value="login" />
252 <input type="submit" value="Submit" class="submit" /></fieldset></form>
255 [% END %] <!-- ( / hide main) -->
260 [% INCLUDE 'opac-bottom.inc' %]