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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-1 / +21 lines)
Lines 39-44 Link Here
39
39
40
                    [% IF ( impossible ) %]<!-- We tried to issue, but failed. -->
40
                    [% IF ( impossible ) %]<!-- We tried to issue, but failed. -->
41
                        <div class="alert">
41
                        <div class="alert">
42
                            <span class="sco-alert-warning noissue"></span>
42
                            <h3>Item cannot be checked out.</h3>
43
                            <h3>Item cannot be checked out.</h3>
43
                            <p>Sorry, this item cannot be checked out at this station.</p>
44
                            <p>Sorry, this item cannot be checked out at this station.</p>
44
                            [% IF ( title ) %]
45
                            [% IF ( title ) %]
Lines 102-107 Link Here
102
103
103
                    [% IF ( confirm ) %]<!-- We need to confirm the issue.. -->
104
                    [% IF ( confirm ) %]<!-- We need to confirm the issue.. -->
104
                        <div class="alert"><h3>Please confirm the checkout:</h3>
105
                        <div class="alert"><h3>Please confirm the checkout:</h3>
106
                            <span class="sco-alert-warning confirm"></span>
105
                            [% IF ( confirm_renew_issue ) %]
107
                            [% IF ( confirm_renew_issue ) %]
106
                                <p>This item is already checked out to you.</p>
108
                                <p>This item is already checked out to you.</p>
107
                            [% END %]
109
                            [% END %]
Lines 149-154 Link Here
149
                    [% IF ( nopermission ) %]
151
                    [% IF ( nopermission ) %]
150
                        <!-- This is what is displayed if user doesn't have permission -->
152
                        <!-- This is what is displayed if user doesn't have permission -->
151
                        <div class="alert">
153
                        <div class="alert">
154
                        <span class="sco-alert-warning nopermission"></span>
152
                            <h3>Access denied</h3>
155
                            <h3>Access denied</h3>
153
                            <p>Sorry, this self-checkout station has lost authentication.  Please contact the administrator to resolve this problem.</p>
156
                            <p>Sorry, this self-checkout station has lost authentication.  Please contact the administrator to resolve this problem.</p>
154
                        </div>
157
                        </div>
Lines 157-162 Link Here
157
                    [% IF ( different_ip ) %]
160
                    [% IF ( different_ip ) %]
158
                        <!-- This is what is displayed if user doesn't have permission -->
161
                        <!-- This is what is displayed if user doesn't have permission -->
159
                        <div class="alert">
162
                        <div class="alert">
163
                            <span class="sco-alert-warning sessionlost"></span>
160
                            <h3>Session lost</h3>
164
                            <h3>Session lost</h3>
161
                            <p>You are accessing self-checkout from a different IP address! please log in again.</p>
165
                            <p>You are accessing self-checkout from a different IP address! please log in again.</p>
162
                        </div>
166
                        </div>
Lines 165-180 Link Here
165
                    [% IF ( invalid_username_or_password ) %]
169
                    [% IF ( invalid_username_or_password ) %]
166
                        <!-- This is what is displayed if user doesn't have permission -->
170
                        <!-- This is what is displayed if user doesn't have permission -->
167
                        <div class="alert">
171
                        <div class="alert">
172
                            <span class="sco-alert-warning notfound"></span>
168
                            <h3>Record not found</h3>
173
                            <h3>Record not found</h3>
169
                            <p>Your userid was not found in the database.  Please try again.</p>
174
                            <p>Your userid was not found in the database.  Please try again.</p>
170
                        </div>
175
                        </div>
171
                    [% END %]
176
                    [% END %]
172
177
173
                    [% IF ( issued ) %]
178
                    [% IF ( issued ) %]
174
                    <span class="sco-alert-success"></span>
179
                    <span class="sco-alert-success issue"></span>
175
                    <div class="alert alert-info">
180
                    <div class="alert alert-info">
176
                        <p>Item checked out</p>
181
                        <p>Item checked out</p>
177
                    </div>
182
                    </div>
183
                    [% ELSIF ( renewed ) %]
184
                    <span class="sco-alert-success renew"></span>
185
                    <div class="alert alert-info">
186
                        <p>Item renewed</p>
187
                    </div>
188
                    [% ELSIF ( returned == 0 ) %]
189
                    <span class="sco-alert-warning return"></span>
190
                    <div class="alert alert-info">
191
                        <p>Item not checked in: please see circulation staff for assistance</p>
192
                    </div>
193
                    [% ELSIF ( returned == 1 ) %]
194
                    <span class="sco-alert-success return"></span>
195
                    <div class="alert alert-info">
196
                        <p>Item checked in</p>
197
                    </div>
178
                    [% END %]
198
                    [% END %]
179
199
180
200
(-)a/opac/sco/sco-main.pl (-1 / +3 lines)
Lines 124-133 my $return_only = 0; Link Here
124
#warn "issuer cardnumber: " .   $issuer->{cardnumber};
124
#warn "issuer cardnumber: " .   $issuer->{cardnumber};
125
#warn "patron cardnumber: " . $borrower->{cardnumber};
125
#warn "patron cardnumber: " . $borrower->{cardnumber};
126
if ($op eq "logout") {
126
if ($op eq "logout") {
127
    $template->param( loggedout => 1 );
127
    $query->param( patronid => undef, patronlogin => undef, patronpw => undef );
128
    $query->param( patronid => undef, patronlogin => undef, patronpw => undef );
128
}
129
}
129
elsif ( $op eq "returnbook" && $allowselfcheckreturns ) {
130
elsif ( $op eq "returnbook" && $allowselfcheckreturns ) {
130
    my ($doreturn) = AddReturn( $barcode, $branch );
131
    my ($doreturn) = AddReturn( $barcode, $branch );
132
    $template->param( returned => $doreturn );
131
}
133
}
132
elsif ( $patron and $op eq "checkout" ) {
134
elsif ( $patron and $op eq "checkout" ) {
133
    my $impossible  = {};
135
    my $impossible  = {};
Lines 177-182 elsif ( $patron and $op eq "checkout" ) { Link Here
177
            #warn "renewing";
179
            #warn "renewing";
178
            AddRenewal( $borrower->{borrowernumber}, $item->{itemnumber} );
180
            AddRenewal( $borrower->{borrowernumber}, $item->{itemnumber} );
179
            push @newissueslist, $barcode;
181
            push @newissueslist, $barcode;
182
            $template->param( renewed => 1 );
180
        } else {
183
        } else {
181
            #warn "renew confirmation";
184
            #warn "renew confirmation";
182
            $template->param(
185
            $template->param(
183
- 

Return to bug 18251