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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt (-1 / +3 lines)
Lines 1-3 Link Here
1
[% USE KohaDates %]
2
1
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha [% END %] &rsaquo; Self Checkout </title>
3
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha [% END %] &rsaquo; Self Checkout </title>
2
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
3
<meta name="generator" content="Koha [% Version %]" /> <!-- leave this for stats -->
5
<meta name="generator" content="Koha [% Version %]" /> <!-- leave this for stats -->
Lines 210-216 Sorry, This Self-Checkout Station has lost authentication. Please contact the a Link Here
210
	<td>[% 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">
212
	<td>[% 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">
211
	[% ISSUE.author %]</span> ([% ISSUE.barcode %])</td>
213
	[% ISSUE.author %]</span> ([% ISSUE.barcode %])</td>
212
	<td>[% ISSUE.itemcallnumber %]</td>
214
	<td>[% ISSUE.itemcallnumber %]</td>
213
	[% IF ( ISSUE.overdue ) %]<td class="overdue">[% ISSUE.date_due_display %]</td>[% ELSE %]<td>[% ISSUE.date_due_display %]</td>[% END %]
215
	[% IF ( ISSUE.overdue ) %]<td class="overdue">[% ISSUE.date_due | $KohaDates %]</td>[% ELSE %]<td>[% ISSUE.date_due | $KohaDates %]</td>[% END %]
214
	<td>
216
	<td>
215
    <form action="/cgi-bin/koha/sco/sco-main.pl" method="post">
217
    <form action="/cgi-bin/koha/sco/sco-main.pl" method="post">
216
    <input type="hidden" name="op" value="checkout" />
218
    <input type="hidden" name="op" value="checkout" />
(-)a/opac/sco/sco-main.pl (-4 lines)
Lines 39-50 use Digest::MD5 qw(md5_base64); Link Here
39
39
40
use C4::Auth qw(get_template_and_user checkpw);
40
use C4::Auth qw(get_template_and_user checkpw);
41
use C4::Koha;
41
use C4::Koha;
42
use C4::Dates qw/format_date/;
43
use C4::Circulation;
42
use C4::Circulation;
44
use C4::Reserves;
43
use C4::Reserves;
45
use C4::Output;
44
use C4::Output;
46
use C4::Members;
45
use C4::Members;
47
use C4::Dates;
48
use C4::Biblio;
46
use C4::Biblio;
49
use C4::Items;
47
use C4::Items;
50
48
Lines 218-224 if ($borrower->{cardnumber}) { Link Here
218
    my @issues;
216
    my @issues;
219
    my ($issueslist) = GetPendingIssues( $borrower->{'borrowernumber'} );
217
    my ($issueslist) = GetPendingIssues( $borrower->{'borrowernumber'} );
220
    foreach my $it (@$issueslist) {
218
    foreach my $it (@$issueslist) {
221
        $it->{date_due_display} = format_date($it->{date_due});
222
        my ($renewokay, $renewerror) = CanBookBeIssued(
219
        my ($renewokay, $renewerror) = CanBookBeIssued(
223
            $borrower,
220
            $borrower,
224
            $it->{'barcode'},
221
            $it->{'barcode'},
225
- 

Return to bug 7743