2 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha [% END %] › Self checkout </title>
3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 <meta name="generator" content="Koha [% Version %]" /> <!-- leave this for stats -->
5 <link rel="shortcut icon" href="[% interface %]/[% theme %]/images/favicon.ico" type="image/x-icon" />
7 <script type="text/javascript" src="[% yuipath %]/utilities/utilities.js"></script>
8 <script type="text/javascript" src="[% yuipath %]/container/container-min.js"></script>
9 <script type="text/javascript" src="[% yuipath %]/menu/menu-min.js"></script>
10 <script type="text/javascript" src="[% themelang %]/lib/jquery/jquery.js"></script>
11 <script type="text/javascript" src="[% themelang %]/lib/jquery/jquery-ui.js"></script>
12 <script type="text/javascript">//<![CDATA[
13 function _(s) { return s } // dummy function for gettext
16 [% INCLUDE 'datatables.inc' %]
17 <script type="text/javascript">//<![CDATA[
19 setTimeout("location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';",[% SelfCheckTimeout %]);
21 function dofocus() { // named function req'd for body onload event by some FF and IE7 security models
22 // alert("dofocus called");
23 $(".focus:last").select();
26 function printx_window(print_type) {
27 var handler = print_type.match(slip_re) ? "printslip" : "moremember";
31 function checkout_confirm(patronid) {
32 var barcode = $("#barcode").val();
33 // alert("checkout_confirm('" + patronid + "') called for barcode '" + barcode + "'");
34 if (! barcode) { dofocus(); return false; } // no barcode
35 if (barcode == "__KOHA_NEW_CIRC__") { // magic barcode
36 window.location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';
42 // build Change Language menus
43 YAHOO.util.Event.onContentReady("changelanguage", function () {
44 $(".sublangs").each(function(){
45 var menuid = $(this).attr("id");
46 var menuid = menuid.replace("show","");
48 var oMenu = new YAHOO.widget.Menu("sub"+menuid, { zindex: 2 });
49 function positionoMenu() {
50 oMenu.align("bl", "tl");
52 oMenu.subscribe("beforeShow", function () {
53 if (this.getRoot() == this) {
58 oMenu.cfg.setProperty("context", ["show"+menuid, "bl", "tl"]);
59 function onYahooClick(p_oEvent) {
60 // Position and display the menu
63 // Stop propagation and prevent the default "click" behavior
64 YAHOO.util.Event.stopEvent(p_oEvent);
66 YAHOO.util.Event.addListener("show"+menuid, "click", onYahooClick);
67 YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionoMenu);
71 $(document).ready(function() {
73 [% IF ( patronid ) %]sco_init();[% END %]
74 $("#loanTable").dataTable($.extend(true, {}, dataTablesDefaults, {
75 "aaSorting": [ [2, "desc"], [0, "asc"] ],
77 { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
78 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
79 { "sType": "title-string", "aTargets" : [ "title-string" ] }
82 $("#logout_form").submit(function(){
83 if(confirm("Would you like to print a receipt?")){
84 window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip");
91 [% IF ( opacuserjs ) %]<script type="text/javascript">[% opacuserjs %]</script>[% END %]
92 [% IF ( SCOUserJS ) %]<script type="text/javascript">[% SCOUserJS %]</script>[% END %]
94 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/sco.css" />
95 [% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
96 [% IF ( SCOUserCSS ) %]<style type="text/css">[% SCOUserCSS %]</style>[% END %]
99 <body onload="dofocus();">
101 <div id="doc" class="yui-t7">
103 <div id="masthead"><h1>[% LibraryName %] Self checkout system</h1></div>
106 [% IF ( impossible ) %]<!-- We tried to issue, but failed. -->
107 <div class="dialog alert"><h3>Item cannot be checked out.</h3><p>Sorry, this item cannot be checked out at this station. </p>
108 [% IF ( title ) %]<p>Title: <em>[% title |html %]</em> </p>[% END %]
110 [% IF ( circ_error_UNKNOWN_BARCODE ) %]
111 <em>MESSAGE 1:</em> The system does not recognize this barcode.
112 [% ELSIF ( circ_error_max_loans_allowed ) %]
113 <em>MESSAGE 2:</em> You have checked out too many items and can't check out any more.
114 [% ELSIF ( circ_error_ISSUED_TO_ANOTHER ) %]
115 <em>MESSAGE 3:</em> This item is checked out to someone else.
116 [% ELSIF ( circ_error_NO_MORE_RENEWALS ) %]
117 <em>MESSAGE 4:</em> You cannot renew this item again.
118 [% ELSIF ( circ_error_NOT_FOR_LOAN ) %]
119 <em>MESSAGE 5:</em> This item is not for loan.
120 [% ELSIF ( circ_error_DEBT ) %]
121 <em>MESSAGE 6:</em> You owe the library [% amount %] and cannot check out.
122 [% ELSIF ( circ_error_WTHDRAWN ) %]
123 <em>MESSAGE 7:</em> This item has been withdrawn from the collection.
124 [% ELSIF ( circ_error_RESTRICTED ) %]
126 [% ELSIF ( circ_error_RESERVED ) %]
127 <em>MESSAGE 9:</em> This item is on hold for another patron.
128 [% ELSIF ( circ_error_ITEMNOTSAMEBRANCH ) %]
130 [% ELSIF ( circ_error_EXPIRED ) %]
131 <em>MESSAGE 11:</em> Your account has expired.
132 [% ELSIF ( circ_error_DEBARRED ) %]
133 <em>MESSAGE 12:</em> Your account has been suspended.
134 [% ELSIF ( circ_error_CARD_LOST ) %]
135 <em>MESSAGE 13:</em> This card has been declared lost.
136 [% ELSIF ( circ_error_GNA ) %]
138 [% ELSIF ( circ_error_INVALID_DATE ) %]
141 Please see a member of the library staff.
143 [% IF ( returnitem ) %]
144 [% IF ( AllowSelfCheckReturns ) %]
145 <form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="post">
146 <input type="hidden" name="op" value="returnbook" />
147 <input type="hidden" name="patronid" value="[% patronid %]" />
148 <input type="hidden" name="barcode" value="[% barcode %]" />
149 <input type="submit" name="returnbook" value="Return this item" class="return" />
153 <form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="post">
154 <input type="hidden" name="op" value="" />
155 <input type="hidden" name="patronid" value="[% patronid %]" />
156 <input type="hidden" name="barcode" value="[% barcode %]" />
157 <input type="submit" name= "confirm" value="Return to account summary" class="back focus" />
160 [% IF ( confirm ) %]<!-- We need to confirm the issue.. -->
161 <div class="dialog alert"><h3>Please confirm the checkout:</h3>
162 <p>[% IF ( confirm_renew_issue ) %]This item is already checked out to you.[% END %]</p>
165 [% IF ( AllowSelfCheckReturns ) %]
166 <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
167 <input type="hidden" name="op" value="returnbook" />
168 <input type="hidden" name="patronid" value="[% patronid %]" />
169 <input type="hidden" name="barcode" value="[% barcode %]" />
170 <input type="hidden" name="confirmed" value="" />
171 <input type="submit" value="Return item" name="confirm" class="return" />
176 [% UNLESS ( renew ) %]
177 <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
178 <input type="hidden" name="op" value="checkout" />
179 <input type="hidden" name="patronid" value="[% patronid %]" />
180 <input type="hidden" name="barcode" value="[% barcode %]" />
181 <input type="hidden" name="confirmed" value="1" />
182 <input type="submit" value="Renew item" name="confirm" class="renew" />
185 <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
186 <input type="hidden" name="op" value="checkout" />
187 <input type="hidden" name="patronid" value="[% patronid %]" />
188 <input type="hidden" name="barcode" value="[% barcode %]" />
189 <input type="hidden" name="confirmed" value="1" />
190 <input type="submit" value="Renew item" class="renew" />
193 <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
194 <input type="hidden" name="op" value="" />
195 <input type="hidden" name="patronid" value="[% patronid %]" />
196 <input type="submit" value="Cancel" class="cancel" />
201 [% IF ( nopermission ) %]<!-- This is what is displayed if user doesnt have permission --><div class="dialog alert"><h3>Access denied</h3>
202 Sorry, this self-checkout station has lost authentication. Please contact the administrator to resolve this problem. </div>
204 [% 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 %]
205 [% IF ( invalid_username_or_password ) %]
206 <!-- 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 %]
209 [% UNLESS ( hide_main ) %]
210 <div class="sco_head">
211 [% UNLESS ( validuser ) %]
212 <h3>Self checkout</h3>
215 <div id="checkouthelp">
216 <a href="/cgi-bin/koha/sco/help.pl">HELP</a> with the self checkout system
219 [% IF ( patronid ) %]
220 [% IF ( validuser ) %]
221 <h3 class="warning">You are logged in as [% borrowername %].</h3>
225 <div class="dialog alert"><h4>Sorry</h4><p>The userid <strong>[% patronid %]</strong> was not found in the database. Please try again.</p></div>
230 [% IF ( validuser ) %]
231 [% IF ( display_patron_image ) %]<div class="yui-ge"><div class="yui-u first">[% END %]
232 <div id="newcheckout" class="sco_entry">
233 <form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl" onsubmit="return checkout_confirm('[% patronid %]');">
234 <fieldset><legend> Check out[% IF ( AllowSelfCheckReturns ) %], return[% END %] or renew an item: </legend>
235 <label for="barcode">Scan a new item or enter its barcode:</label>
236 <input id="barcode" name="barcode" size="20" class="focus" autocomplete="off" />
237 <input type="hidden" name="op" value="checkout" />
238 <input type="hidden" name="patronid" value="[% patronid %]" />
239 <input type="submit" value="Submit" class="submit" /></fieldset>
241 <div><form method="post" action="#" id="logout_form"><input type="submit" value="Finish" class="finish" /></form></div>
242 </div> <!-- sco_entry --> <!-- newcheckout -->
243 [% IF ( display_patron_image ) %]</div> <!-- /yui-u first -->[% END %]
244 [% IF ( display_patron_image ) %]
246 <img src="/cgi-bin/koha/sco/sco-patron-image.pl?cardnumber=[% cardnumber %]" alt="" />
249 </div> <!-- /yui-ge -->
251 <div id="borrowerdetails">
252 [% IF ( issues_count ) %]
253 <table id="loanTable"><caption>Checkouts for [% borrowername %] <span class="count">([% issues_count %] total)</span></caption>
254 <!-- ISSUES TABLE ROWS -->
256 <tr><th class="anti-the">Title</th><th>Call no.</th><th class="title-string">Due</th><th class="nosort">Renew</th>[% UNLESS ( nofines ) %]<th class="nosort">Fines</th>[% END %]</tr>
260 [% FOREACH ISSUE IN ISSUES %]
261 [% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
262 <!-- FIXME: yet another jacket image breakpoint -->
263 <td>[% UNLESS ( 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">
264 [% ISSUE.author %]</span> ([% ISSUE.barcode %])</td>
265 <td>[% ISSUE.itemcallnumber %]</td>
266 [% IF ( ISSUE.overdue ) %]<td class="overdue"><span title="[% ISSUE.date_due %]">[% ISSUE.date_due | $KohaDates %]</span></td>[% ELSE %]<td><span title="[% ISSUE.date_due %]">[% ISSUE.date_due | $KohaDates %]</span></td>[% END %]
268 <form action="/cgi-bin/koha/sco/sco-main.pl" method="post">
269 <input type="hidden" name="patronid" value="[% patronid %]" />
270 <input type="hidden" name="barcode" value="[% ISSUE.barcode %]" />
271 [% IF ( ISSUE.norenew ) %]
272 [% IF ( AllowSelfCheckReturns ) %]
273 <input type="submit" value="Check in item" name="confirm" class="return" />
274 <input type="hidden" name="op" value="returnbook" />
275 <input type="hidden" name="confirmed" value="" />
277 <span>No renewals allowed</span>
280 <input type="hidden" name="op" value="checkout" />
281 <input type="hidden" name="confirmed" value="1" />
282 [% UNLESS ( ISSUE.renew ) %]<input type="submit" value="Renew item" name="confirm" class="renew" />
283 [% ELSE %]<input type="submit" value="Renew item" class="renew" />[% END %]
287 [% UNLESS ( nofines ) %]<td>[% IF ( ISSUE.charges ) %]Yes[% ELSE %]No[% END %]</td>[% END %]</tr>
293 <h3>You currently have nothing checked out.</h3>
295 </div> <!-- /yui-g -->
296 [% ELSE %]<!-- not validuser -->
297 <div class="sco_entry" >
298 <form id="mainform" action="/cgi-bin/koha/sco/sco-main.pl" name="mainform" method="post">
299 [% IF ( authbylogin ) %]
300 <fieldset class="checkout">
301 <legend>Please login with your username and password</legend>
302 <label for="patronlogin">Username:</label>
303 <input type="text" id="patronlogin" class="focus" size="20" name="patronlogin" />
304 <label for="patronpw">Password:</label>
305 <input type="password" id="patronpw" size="20" name="patronpw" />
307 <fieldset class="checkout"><label for="patronid">Please enter your card number:</label>
308 <input type="text" id="patronid" class="focus" size="20" name="patronid" autocomplete="off" />
311 [% FOREACH INPUT IN INPUTS %]<input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]">[% END %]
312 <input type="hidden" name="op" value="login" />
313 <input type="submit" value="Submit" class="submit" /></fieldset></form>
316 [% END %] <!-- ( / hide main) -->
320 [% INCLUDE 'opac-bottom.inc' %]