a03fbc065a0a6487c82d1244ae81ec80da757819
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / sco / sco-main.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryName" --> -- Self Checkout 
2 <script type="text/javascript" src="<TMPL_VAR NAME="themelang">/js/sco.js"></script>
3 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/css/sco.css" />
4 <body <!-- TMPL_IF NAME="redirect" -->  onload="openWindow('<!-- TMPL_VAR NAME ="redirect" -->')"<!-- TMPL_ELSE --> onload="sco_init(1);"<!-- /TMPL_IF -->>
5 <br />
6 <div id="masthead"><h1><!-- TMPL_IF NAME="opacsmallimage" --><img alt="<!-- TMPL_VAR NAME="LibraryName" -->" src="<!-- TMPL_VAR NAME='opacsmallimage' -->" /><!-- /TMPL_IF -->
7 <!-- TMPL_VAR NAME="LibraryName" --> Self Checkout System </h1>
8 <br />
9 </div>
10 <div id="main">
11
12 <!-- TMPL_IF NAME="impossible" --><!-- We tried to issue, but failed. -->
13 <div class="error"><h3>Item cannot be issued.</h3><p>Sorry, This item cannot be checked out at this station.  </p>
14 <p><em>Title:</em> <!-- TMPL_VAR NAME="title" --> </p>
15 <p><em>Error type:</em> <!-- TMPL_VAR NAME="impossible" --></p>
16 <form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" method="post">
17 <input type="hidden" name="op" value="login" />
18 <input type="hidden" name="userid" value='<!-- TMPL_VAR NAME="userid" -->' />
19 <!-- TMPL_IF NAME="returnitem" -->
20 <input type="hidden" name="barcode" value='<!-- TMPL_VAR NAME="barcode" -->' />
21 <input type="button" name="returnbook" value="Return this item" class="submit" onclick="this.form.op.value='returnbook';this.form.submit();"  />
22 <!-- /TMPL_IF -->
23 <input type="submit" name= "confirm" value="Return to Account Summary" class="submit" />
24 </div>
25 <!-- /TMPL_IF -->
26 <!-- TMPL_IF NAME="confirm" --><!-- We need to confirm the issue.. -->
27 <div class="error"><h3>Please confirm the issue:</h3>
28 <p><em><!-- TMPL_VAR NAME="confirm" --></em></p>
29 <br />
30 <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" method="post">
31 <input type="hidden" id="op" name="op" value="checkout" />
32 <input type="hidden" name="userid" value='<!-- TMPL_VAR NAME="userid" -->' />
33 <input type="hidden" name="barcode" value='<!-- TMPL_VAR NAME="barcode" -->' />
34 <input type="hidden" id="confirmation"  name="confirmed" value=""  />
35 <!-- TMPL_IF NAME="renew" -->
36 <input type="button" value="Return Item" name="confirm" class="submit" onclick="this.form.op.value='returnbook';this.form.submit();"  />
37 <!-- /TMPL_IF -->
38 <input type="button" value="Renew Item" <!-- TMPL_UNLESS NAME="renew" --> name="confirm"<!-- /TMPL_UNLESS --> class="submit" onclick="this.form.confirmed.value='1';this.form.submit();" />
39 <input type="button" value="Cancel" class="submit" onclick="this.form.op.value='';this.form.submit();return true;"  />
40 </form>
41 </div>
42 <!-- /TMPL_IF -->
43
44 <!-- TMPL_IF NAME="nopermission" --><!-- This is what is displayed if user doesnt have permission --><div class="error"><h3>Access Denied</h3>
45 Sorry, This Self-Checkout Station has lost authentication.  Please contact the administrator to resolve this problem. </div>
46 <!-- /TMPL_IF -->
47 <!-- TMPL_IF NAME="timed_out" --><!-- This is what is displayed if login has timed out -->
48 <div class="error"><h3>Session timed out</h3>Sorry, your session has timed out, please login again.</div><!-- /TMPL_IF -->
49 <!-- TMPL_IF NAME="different_ip" --><!-- This is what is displayed if user doesnt have permission --><div class="error"><h3>Session Lost</h3>You are accessing koha from a different ip address! please login again.</div><!-- /TMPL_IF -->
50 <!-- TMPL_IF NAME="invalid_username_or_password" -->
51 <!-- This is what is displayed if user doesnt have permission --><div class="error"><h3>Record not found</h3><p>Your Userid was not found in the database.  Please try again.</p></div><!-- /TMPL_IF -->
52
53
54 <!-- TMPL_UNLESS NAME="hide_main" -->
55         <div id="content-block">
56         <div class="sco_head">
57         <!-- TMPL_UNLESS NAME="validuser" --> 
58         <h3> <!-- TMPL_VAR NAME="libraryname" --> Self Checkout </h3>
59         <!-- /TMPL_UNLESS -->
60         <div id="checkouthelp">
61                 <p><a href="/cgi-bin/koha/sco/help.pl">HELP</a> with the self checkoutsystem</p>
62         </div>
63
64         <!-- TMPL_IF NAME="userid" -->
65         <!-- TMPL_IF NAME="validuser" -->
66         <h3 class="warning">You are logged in as <!-- TMPL_VAR NAME="borrowername" -->.</h3>
67         <!-- /TMPL_IF -->
68         </div>
69         <!-- TMPL_IF NAME="nouser" -->
70         <div class="error"><h4>Sorry</h4><p>The userid <!-- TMPL_VAR NAME="userid" --> was not found in the database.  Please try again.</p></div>
71         <br />
72         <!-- /TMPL_IF -->
73         <!-- /TMPL_IF -->
74         <!-- TMPL_IF NAME="timedout" -->
75         <div class="error"><h4>Sorry</h4><p>Your session has timed out due to inactivity.  Please sign in.</p></div>
76         <br />
77         <!-- /TMPL_IF -->
78         <!-- TMPL_UNLESS NAME="validuser" -->
79         <div class="sco_entry" >
80         <form id="mainform" action="/cgi-bin/koha/sco/sco-main.pl" name="myForm" method="post">
81       <input type="hidden" name="koha_login_context" value="sco" />
82         <p class="checkout"><label for="userid">Please enter your cardnumber:</label> 
83         <input type="text" id="userid" class="firstField" size="10" name="userid" onblur="ValidateCode();" />
84         <!-- TMPL_LOOP NAME="INPUTS" --><input type="hidden" name="<!-- TMPL_VAR NAME="name" -->" value="<!-- TMPL_VAR NAME="value" -->"><!-- /TMPL_LOOP -->
85         <input type="hidden" name="op" value="login" />
86         <input  type="submit" value="Submit" class="submit" /></p></form>
87         </div>
88         <!-- /TMPL_UNLESS -->
89         <!-- TMPL_IF NAME="validuser" -->
90         <div id="newcheckout" class="sco_entry">
91         <form id='mainform' name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl" onsubmit=" if(this.valid_session == 0) { if(confirm('Session has expired.  Click \'OK\' to continue processing this item.  Click Cancel if you are not <!-- TMPL_VAR NAME="userid" -->.')){ this.op.value='logout'; this.userid.value=''; } return true;}; " >
92         <h4> Check out or return an item: </h4>
93         <label for="barcode">Scan a new item or enter its barcode:</label>
94         <input id="barcode" name="barcode" size="14" maxlength="14" class="unfocus" onfocus="this.className='focus';" onblur="this.className='unfocus';" />
95         <input type="hidden" name="op" value="checkout" />
96         <input type="hidden" name="userid" value="<!-- TMPL_VAR name="userid" -->" />
97         <input type="hidden" name="valid_session" value="1">
98         <input type="submit" value="Submit" class="submit" />
99         </form>
100         <p class='alert'><form method="post" action="/cgi-bin/koha/sco/sco-main.pl?op=logout" >Scan next item, or <input type="submit" value="Click here if done." class="submit" /></form></p>
101         </div> <!-- sco_entry -->
102         </div> <!-- newcheckout -->
103
104         <div id="borrowerdetails">
105         <h2>Issues for <!-- TMPL_VAR NAME='borrowername' --></h2>
106         <!-- TMPL_IF NAME="issues_count" -->
107         <div class="table"><table><caption>Issues <span class="count">(<!-- TMPL_VAR NAME="issues_count" --> total)</span></caption>
108         <!-- ISSUES TABLE ROWS -->
109         <tr><th colspan="2">Title</th><th>Call No.</th><th>Due</th><th>Renew</th><!-- TMPL_UNLESS NAME="nofines" --><th>Fines</th><!-- /TMPL_UNLESS --></tr>
110         <!-- TMPL_LOOP NAME="ISSUES" -->
111         <!-- TMPL_IF NAME="overdue" --><tr class="overdue"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
112         <td><!-- TMPL_IF NAME="itemtypeimages" --> <img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" /><!-- /TMPL_IF --></td>
113         <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" --></a><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="title" --><!-- /TMPL_UNLESS --><span class="item-details">
114         <!-- TMPL_VAR NAME="author" --></span></td>
115         <td><!-- TMPL_VAR NAME="classification" --></td>
116         <!-- TMPL_IF NAME="overdue" --><td class="overdue"><!-- TMPL_VAR NAME="date_due" --></td><!-- TMPL_ELSE --><td><!-- TMPL_VAR NAME="date_due" --></td><!-- /TMPL_IF -->
117         <td>
118         <!-- TMPL_IF NAME="status" -->
119         <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=<!-- TMPL_VAR NAME="itemnumber" -->&amp;bornum=<!-- TMPL_VAR NAME="borrowernumber" -->">Renew</a>
120         <!-- TMPL_ELSE -->
121         Not renewable<!-- /TMPL_IF -->
122         </td>
123         <!-- TMPL_UNLESS NAME="nofines" --><td><!-- TMPL_IF NAME="charges" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td><!-- /TMPL_UNLESS --></tr>
124         <!-- /TMPL_LOOP -->
125         </table>
126         </div>
127         <!-- TMPL_ELSE -->
128         <h3>You currently have nothing checked out.</h3>
129         <!-- /TMPL_IF -->
130         </div> <!-- borrowerdetails -->
131         <!-- /TMPL_IF -->
132 <!-- /TMPL_UNLESS --> <!-- ( / hide main) -->   
133         
134         <div id="checkoutfooter">
135
136         </div>
137
138 </div>
139 </body>
140 </html>
141
142
143
144