Lines 56-114
Link Here
|
56 |
|
56 |
|
57 |
<div id="masthead"><h1>[% LibraryName | html %] Self checkout system</h1></div> |
57 |
<div id="masthead"><h1>[% LibraryName | html %] Self checkout system</h1></div> |
58 |
|
58 |
|
59 |
[% IF ( impossible ) %]<!-- We tried to issue, but failed. --> |
59 |
[% FOREACH item IN impossible %]<!-- We tried to issue, but failed. --> |
60 |
<div class="alert alert-warning"> |
60 |
<div class="alert alert-warning"> |
61 |
<span class="sco-alert-warning noissue"></span> |
61 |
<span class="sco-alert-warning noissue"></span> |
62 |
<h2>Item cannot be checked out.</h2> |
62 |
<h2>Item cannot be checked out.</h2> |
63 |
<p>Sorry, this item cannot be checked out at this station.</p> |
63 |
<p>Sorry, this item cannot be checked out at this station.</p> |
64 |
[% IF ( title ) %] |
64 |
[% IF ( item.title ) %] |
65 |
<p>Title: <em>[% title | html %]</em> </p> |
65 |
<p>Title: <em>[% item.title | html %]</em> </p> |
66 |
[% END %] |
66 |
[% END %] |
67 |
|
67 |
|
68 |
<p> |
68 |
<p> |
69 |
[% IF ( circ_error_UNKNOWN_BARCODE ) %] |
69 |
[% IF ( item.circ_error_UNKNOWN_BARCODE ) %] |
70 |
<span id="ce_unknown_barcode">The system does not recognize this barcode.</span> |
70 |
<span id="ce_unknown_barcode">The system does not recognize this barcode.</span> |
71 |
[% ELSIF ( circ_error_max_loans_allowed ) %] |
71 |
[% ELSIF ( item.circ_error_max_loans_allowed ) %] |
72 |
<span id="ce_max_loans_allowed">You have reached the maximum limit of items checked out.</span> |
72 |
<span id="ce_max_loans_allowed">You have reached the maximum limit of items checked out.</span> |
73 |
[% ELSIF ( circ_error_ISSUED_TO_ANOTHER ) %] |
73 |
[% ELSIF ( item.circ_error_ISSUED_TO_ANOTHER ) %] |
74 |
<span id="ce_issued_to_another">This item is checked out to someone else.</span> |
74 |
<span id="ce_issued_to_another">This item is checked out to someone else.</span> |
75 |
[% ELSIF ( circ_error_NO_MORE_RENEWALS ) %] |
75 |
[% ELSIF ( item.circ_error_NO_MORE_RENEWALS ) %] |
76 |
<span id="ce_no_more_renewals">You cannot renew this item again.</span> |
76 |
<span id="ce_no_more_renewals">You cannot renew this item again.</span> |
77 |
[% ELSIF ( circ_error_NOT_FOR_LOAN ) %] |
77 |
[% ELSIF ( item.circ_error_NOT_FOR_LOAN ) %] |
78 |
<span id="ce_not_for_loan">This item is not for loan.</span> |
78 |
<span id="ce_not_for_loan">This item is not for loan.</span> |
79 |
[% ELSIF ( circ_error_DEBT ) %] |
79 |
[% ELSIF ( item.circ_error_DEBT ) %] |
80 |
<span id="ce_too_much_debt">You owe the library [% DEBT | $Price with_symbol => 1%] and cannot check out.</span> |
80 |
<span id="ce_too_much_debt">You owe the library [% item.DEBT | $Price with_symbol => 1%] and cannot check out.</span> |
81 |
[% ELSIF ( circ_error_WTHDRAWN ) %] |
81 |
[% ELSIF ( item.circ_error_WTHDRAWN ) %] |
82 |
<span id="ce_wthdrawn">This item has been withdrawn from the collection.</span> |
82 |
<span id="ce_wthdrawn">This item has been withdrawn from the collection.</span> |
83 |
[% ELSIF ( circ_error_RESTRICTED ) %] |
83 |
[% ELSIF ( item.circ_error_RESTRICTED ) %] |
84 |
<span id="ce_restricted">This item is restricted.</span> |
84 |
<span id="ce_restricted">This item is restricted.</span> |
85 |
[% ELSIF ( circ_error_RESERVED ) %] |
85 |
[% ELSIF ( item.circ_error_RESERVED ) %] |
86 |
<span id="ce_reserved">This item is on hold for another patron.</span> |
86 |
<span id="ce_reserved">This item is on hold for another patron.</span> |
87 |
[% ELSIF ( circ_error_ITEMNOTSAMEBRANCH ) %] |
87 |
[% ELSIF ( item.circ_error_ITEMNOTSAMEBRANCH ) %] |
88 |
<span id="ce_itemnotsamebranch">This item belongs to another library.</span> |
88 |
<span id="ce_itemnotsamebranch">This item belongs to another library.</span> |
89 |
[% ELSIF ( circ_error_EXPIRED ) %] |
89 |
[% ELSIF ( item.circ_error_EXPIRED ) %] |
90 |
<span id="ce_expired">Your account has expired.</span> |
90 |
<span id="ce_expired">Your account has expired.</span> |
91 |
[% ELSIF ( circ_error_DEBARRED ) %] |
91 |
[% ELSIF ( item.circ_error_DEBARRED ) %] |
92 |
<span id="ce_debarred">Your account has been suspended.</span> |
92 |
<span id="ce_debarred">Your account has been suspended.</span> |
93 |
[% ELSIF ( circ_error_CARD_LOST ) %] |
93 |
[% ELSIF ( item.circ_error_CARD_LOST ) %] |
94 |
<span id="ce_card_lost">This library card has been declared lost.</span> |
94 |
<span id="ce_card_lost">This library card has been declared lost.</span> |
95 |
[% ELSIF ( circ_error_GNA ) %] |
95 |
[% ELSIF ( item.circ_error_GNA ) %] |
96 |
<span id="ce_gna">Your contact information seems to be incomplete.</span> |
96 |
<span id="ce_gna">Your contact information seems to be incomplete.</span> |
97 |
[% ELSIF ( circ_error_INVALID_DATE ) %] |
97 |
[% ELSIF ( item.circ_error_INVALID_DATE ) %] |
98 |
<span id="ce_invalid_date">Due date is not valid.</span> |
98 |
<span id="ce_invalid_date">Due date is not valid.</span> |
99 |
[% ELSIF ( circ_error_ADDITIONAL_MATERIALS ) %] |
99 |
[% ELSIF ( item.circ_error_ADDITIONAL_MATERIALS ) %] |
100 |
<span id="ce_addtional_materials">Item must be checked out at a circulation desk.</span> |
100 |
<span id="ce_addtional_materials">Item must be checked out at a circulation desk.</span> |
101 |
[% END %] |
101 |
[% END %] |
102 |
<span id ="ce_see_staff">Please see a member of the library staff.</span> |
102 |
<span id ="ce_see_staff">Please see a member of the library staff.</span> |
103 |
</p> |
103 |
</p> |
104 |
|
104 |
|
105 |
[% IF ( returnitem && Koha.Preference('SCOAllowCheckin') ) %] |
105 |
[% IF ( item.returnitem && Koha.Preference('SCOAllowCheckin') ) %] |
106 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="post"> |
106 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="post"> |
107 |
[% INCLUDE 'csrf-token.inc' %] |
107 |
[% INCLUDE 'csrf-token.inc' %] |
108 |
<legend class="sr-only">Return</legend> |
108 |
<legend class="sr-only">Return</legend> |
109 |
<input type="hidden" name="op" value="cud-returnbook" /> |
109 |
<input type="hidden" name="op" value="cud-returnbook" /> |
110 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
110 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
111 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
111 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
112 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
112 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
113 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
113 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
114 |
<button type="submit" name="returnbook" class="btn btn-primary"><i class="fa fa-undo" aria-hidden="true"></i> Return this item</button> |
114 |
<button type="submit" name="returnbook" class="btn btn-primary"><i class="fa fa-undo" aria-hidden="true"></i> Return this item</button> |
Lines 119-137
Link Here
|
119 |
<legend class="sr-only">Error</legend> |
119 |
<legend class="sr-only">Error</legend> |
120 |
<input type="hidden" name="op" value="" /> |
120 |
<input type="hidden" name="op" value="" /> |
121 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
121 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
122 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
122 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
123 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
123 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
124 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
124 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
125 |
<input type="submit" name= "confirm" value="Return to account summary" class="btn btn-info back focus" /> |
125 |
<input type="submit" name= "confirm" value="Return to account summary" class="btn btn-info back focus" /> |
126 |
</form> |
126 |
</form> |
127 |
</div> <!-- / .alert --> |
127 |
</div> <!-- / .alert --> |
128 |
[% END # / IF ( impossible %] |
128 |
[% END # / FOREACH impossible %] |
129 |
|
129 |
|
130 |
[% IF ( confirm ) %]<!-- We need to confirm the issue.. --> |
130 |
[% FOREACH c IN confirm %]<!-- We need to confirm the issue.. --> |
131 |
<div class="alert alert-warning"><h2>Please confirm the checkout:</h2> |
131 |
<div class="alert alert-warning"><h2>Please confirm the checkout:</h2> |
132 |
<span class="sco-alert-warning confirm"></span> |
132 |
<span class="sco-alert-warning confirm"></span> |
133 |
[% IF ( confirm_renew_issue ) %] |
133 |
[% IF ( c.confirm_renew_issue ) %] |
134 |
<p>This item is already checked out to you: <b>[% confirm | html %]</b> <i>([% barcode | html %])</i></p> |
134 |
<p>This item is already checked out to you: <b>[% c.confirm | html %]</b> <i>([% c.barcode | html %])</i></p> |
135 |
[% END %] |
135 |
[% END %] |
136 |
|
136 |
|
137 |
[% IF ( renew && Koha.Preference('SCOAllowCheckin') ) %] |
137 |
[% IF ( renew && Koha.Preference('SCOAllowCheckin') ) %] |
Lines 140-146
Link Here
|
140 |
<legend class="sr-only">Return</legend> |
140 |
<legend class="sr-only">Return</legend> |
141 |
<input type="hidden" name="op" value="cud-returnbook" /> |
141 |
<input type="hidden" name="op" value="cud-returnbook" /> |
142 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
142 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
143 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
143 |
<input type="hidden" name="barcode" value="[% c.barcode | html %]" /> |
144 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
144 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
145 |
<input type="hidden" name="confirmed" value="" /> |
145 |
<input type="hidden" name="confirmed" value="" /> |
146 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
146 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
Lines 148-160
Link Here
|
148 |
</form> |
148 |
</form> |
149 |
[% END %] |
149 |
[% END %] |
150 |
|
150 |
|
151 |
[% UNLESS ( renew ) %] |
151 |
[% UNLESS ( c.renew ) %] |
152 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post"> |
152 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post"> |
153 |
[% INCLUDE 'csrf-token.inc' %] |
153 |
[% INCLUDE 'csrf-token.inc' %] |
154 |
<legend class="sr-only">Renew</legend> |
154 |
<legend class="sr-only">Renew</legend> |
155 |
<input type="hidden" name="op" value="cud-renew" /> |
155 |
<input type="hidden" name="op" value="cud-renew" /> |
156 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
156 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
157 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
157 |
<input type="hidden" name="barcode" value="[% c.barcode | html %]" /> |
158 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
158 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
159 |
<input type="hidden" name="confirmed" value="1" /> |
159 |
<input type="hidden" name="confirmed" value="1" /> |
160 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
160 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
Lines 166-172
Link Here
|
166 |
<legend class="sr-only">Renew</legend> |
166 |
<legend class="sr-only">Renew</legend> |
167 |
<input type="hidden" name="op" value="cud-renew" /> |
167 |
<input type="hidden" name="op" value="cud-renew" /> |
168 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
168 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
169 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
169 |
<input type="hidden" name="barcode" value="[% c.barcode | html %]" /> |
170 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
170 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
171 |
<input type="hidden" name="confirmed" value="1" /> |
171 |
<input type="hidden" name="confirmed" value="1" /> |
172 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
172 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
Lines 183-189
Link Here
|
183 |
<button type="submit" class="btn btn-primary"><i class="fa fa-cancel" aria-hidden="true"></i> Cancel</button> |
183 |
<button type="submit" class="btn btn-primary"><i class="fa fa-cancel" aria-hidden="true"></i> Cancel</button> |
184 |
</form> |
184 |
</form> |
185 |
</div> |
185 |
</div> |
186 |
[% END # / IF confirm %] |
186 |
[% END # / FOREACH confirm %] |
187 |
|
187 |
|
188 |
[% IF ( nopermission ) %] |
188 |
[% IF ( nopermission ) %] |
189 |
<!-- This is what is displayed if user doesn't have permission --> |
189 |
<!-- This is what is displayed if user doesn't have permission --> |
Lines 241-258
Link Here
|
241 |
</div> |
241 |
</div> |
242 |
[% END %] |
242 |
[% END %] |
243 |
|
243 |
|
244 |
[% IF ( circ_error_BATCH_CHECKOUT ) %] |
|
|
245 |
<div class="alert alert-warning"> |
246 |
<h3>Item cannot be checked out in a batch</h3> |
247 |
<p>Check out the following item(s) individually:</p> |
248 |
<ul> |
249 |
[% FOREACH barcode IN circ_error_BATCH_CHECKOUT %] |
250 |
<li><i>[% barcode | html %]</i></li> |
251 |
[% END %] |
252 |
</ul> |
253 |
</div> |
254 |
[% END %] |
255 |
|
256 |
[% UNLESS ( hide_main ) %] |
244 |
[% UNLESS ( hide_main ) %] |
257 |
|
245 |
|
258 |
[% IF ( patronid ) %] |
246 |
[% IF ( patronid ) %] |
Lines 285-294
Link Here
|
285 |
</h2></legend> |
273 |
</h2></legend> |
286 |
<div class="row"> |
274 |
<div class="row"> |
287 |
<div class="col"> |
275 |
<div class="col"> |
288 |
<label for="barcode">Scan a new item or enter its barcode[% IF Koha.Preference('BatchCheckouts') %] (or for <b>multiple checkouts only,</b> enter a barcode list, one barcode per line)[% END %]:</label> |
276 |
<label for="barcode">Scan a new item or enter its barcode[% IF batch_checkouts_allowed %] (or for <b>multiple checkouts only,</b> enter a barcode list, one barcode per line)[% END %]:</label> |
289 |
</div> |
277 |
</div> |
290 |
<div class="col-3"> |
278 |
<div class="col-3"> |
291 |
[% IF Koha.Preference('BatchCheckouts') %] |
279 |
[% IF batch_checkouts_allowed %] |
292 |
<textarea id="barcode" name="barcode" rows="10" cols="30" class="focus form-control"></textarea> |
280 |
<textarea id="barcode" name="barcode" rows="10" cols="30" class="focus form-control"></textarea> |
293 |
[% ELSE %] |
281 |
[% ELSE %] |
294 |
<input id="barcode" name="barcode" size="20" type="text" class="focus form-control" autocomplete="off" /> |
282 |
<input id="barcode" name="barcode" size="20" type="text" class="focus form-control" autocomplete="off" /> |