View | Details | Raw Unified | Return to bug 8955
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt (-12 / +13 lines)
Lines 101-112 $(document).ready(function() { Link Here
101
<div id="bd">
101
<div id="bd">
102
102
103
[% IF ( impossible ) %]<!-- We tried to issue, but failed. -->
103
[% IF ( impossible ) %]<!-- We tried to issue, but failed. -->
104
<div class="dialog alert"><h3>Item cannot be checked out.</h3><p>Sorry, This item cannot be checked out at this station.  </p>
104
<div class="dialog alert"><h3>Item cannot be checked out.</h3><p>Sorry, this item cannot be checked out at this station.  </p>
105
[% IF ( title ) %]<p>Title: <em>[% title |html %]</em> </p>[% END %]
105
[% IF ( title ) %]<p>Title: <em>[% title |html %]</em> </p>[% END %]
106
<p>
106
<p>
107
   [% IF ( circ_error_UNKNOWN_BARCODE ) %]
107
   [% IF ( circ_error_UNKNOWN_BARCODE ) %]
108
    <em>MESSAGE 1:</em> The system does not recognize this barcode.
108
    <em>MESSAGE 1:</em> The system does not recognize this barcode.
109
   [% ELSIF ( circ_error_TOO_MANY ) %]
109
   [% ELSIF ( circ_error_max_loans_allowed ) %]
110
    <em>MESSAGE 2:</em> You have checked out too many items and can't check out any more.
110
    <em>MESSAGE 2:</em> You have checked out too many items and can't check out any more.
111
   [% ELSIF ( circ_error_ISSUED_TO_ANOTHER ) %]
111
   [% ELSIF ( circ_error_ISSUED_TO_ANOTHER ) %]
112
    <em>MESSAGE 3:</em> This item is checked out to someone else.
112
    <em>MESSAGE 3:</em> This item is checked out to someone else.
Lines 145-150 $(document).ready(function() { Link Here
145
    <input type="hidden" name="barcode" value="[% barcode %]" />
145
    <input type="hidden" name="barcode" value="[% barcode %]" />
146
    <input type="submit" name="returnbook" value="Return this item" class="return" />
146
    <input type="submit" name="returnbook" value="Return this item" class="return" />
147
</form>
147
</form>
148
[% END %]
149
[% END %]
148
<form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="post">
150
<form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="post">
149
    <input type="hidden" name="op" value="" />
151
    <input type="hidden" name="op" value="" />
150
    <input type="hidden" name="patronid" value="[% patronid %]" />
152
    <input type="hidden" name="patronid" value="[% patronid %]" />
Lines 152-159 $(document).ready(function() { Link Here
152
    <input type="submit" name= "confirm" value="Return to account summary" class="back focus" />
154
    <input type="submit" name= "confirm" value="Return to account summary" class="back focus" />
153
</form>
155
</form>
154
[% END %]
156
[% END %]
155
[% END %]
156
[% END %]
157
[% IF ( confirm ) %]<!-- We need to confirm the issue.. -->
157
[% IF ( confirm ) %]<!-- We need to confirm the issue.. -->
158
<div class="dialog alert"><h3>Please confirm the checkout:</h3>
158
<div class="dialog alert"><h3>Please confirm the checkout:</h3>
159
<p>[% IF ( confirm_renew_issue ) %]This item is already checked out to you.[% END %]</p>
159
<p>[% IF ( confirm_renew_issue ) %]This item is already checked out to you.[% END %]</p>
Lines 263-281 Sorry, this self-checkout station has lost authentication. Please contact the a Link Here
263
	[% IF ( ISSUE.overdue ) %]<td class="overdue">[% ISSUE.date_due | $KohaDates %]</td>[% ELSE %]<td>[% ISSUE.date_due | $KohaDates %]</td>[% END %]
263
	[% IF ( ISSUE.overdue ) %]<td class="overdue">[% ISSUE.date_due | $KohaDates %]</td>[% ELSE %]<td>[% ISSUE.date_due | $KohaDates %]</td>[% END %]
264
	<td>
264
	<td>
265
    <form action="/cgi-bin/koha/sco/sco-main.pl" method="post">
265
    <form action="/cgi-bin/koha/sco/sco-main.pl" method="post">
266
    <input type="hidden" name="op" value="checkout" />
267
    <input type="hidden" name="patronid" value="[% patronid %]" />
266
    <input type="hidden" name="patronid" value="[% patronid %]" />
268
    <input type="hidden" name="barcode" value="[% ISSUE.barcode %]" />
267
    <input type="hidden" name="barcode" value="[% ISSUE.barcode %]" />
269
    <input type="hidden" name="confirmed" value=""  />
270
        [% IF ( ISSUE.norenew ) %]
268
        [% IF ( ISSUE.norenew ) %]
271
          [% IF ( ISSUE.AllowSelfCheckReturns ) %]
269
          [% IF ( AllowSelfCheckReturns ) %]
272
          <input type="button" value="Return Item" name="confirm" class="return" onclick="this.form.op.value='returnbook';this.form.submit();"  />
270
            <input type="submit" value="Check in item" name="confirm" class="return" />
271
            <input type="hidden" name="op" value="returnbook" />
272
            <input type="hidden" name="confirmed" value=""  />
273
          [% ELSE %]
273
          [% ELSE %]
274
          <span>No renewals allowed</span>
274
            <span>No renewals allowed</span>
275
          [% END %]
275
          [% END %]
276
        [% ELSE %]
276
        [% ELSE %]
277
            [% UNLESS ( ISSUE.renew ) %]<input type="button" value="Renew Item"  name="confirm" class="renew" onclick="this.form.confirmed.value='1';this.form.submit();" />
277
            <input type="hidden" name="op" value="checkout" />
278
            [% ELSE %]<input type="button" value="Renew Item" class="renew" onclick="this.form.confirmed.value='1';this.form.submit();" />[% END %]
278
            <input type="hidden" name="confirmed" value="1" />
279
            [% UNLESS ( ISSUE.renew ) %]<input type="submit" value="Renew item"  name="confirm" class="renew" />
280
            [% ELSE %]<input type="submit" value="Renew item" class="renew" />[% END %]
279
        [% END %]
281
        [% END %]
280
    </form>
282
    </form>
281
	</td>
283
	</td>
282
- 

Return to bug 8955