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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-3 / +3 lines)
Lines 121-127 Link Here
121
121
122
                            [% UNLESS ( renew ) %]
122
                            [% UNLESS ( renew ) %]
123
                                <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
123
                                <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
124
                                    <input type="hidden" name="op" value="checkout" />
124
                                    <input type="hidden" name="op" value="renew" />
125
                                    <input type="hidden" name="patronid" value="[% patronid | html %]" />
125
                                    <input type="hidden" name="patronid" value="[% patronid | html %]" />
126
                                    <input type="hidden" name="barcode" value="[% barcode | html %]" />
126
                                    <input type="hidden" name="barcode" value="[% barcode | html %]" />
127
                                    <input type="hidden" name="confirmed" value="1" />
127
                                    <input type="hidden" name="confirmed" value="1" />
Lines 130-136 Link Here
130
                                  </form>
130
                                  </form>
131
                            [% ELSE %]
131
                            [% ELSE %]
132
                                <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
132
                                <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
133
                                    <input type="hidden" name="op" value="checkout" />
133
                                    <input type="hidden" name="op" value="renew" />
134
                                    <input type="hidden" name="patronid" value="[% patronid | html %]" />
134
                                    <input type="hidden" name="patronid" value="[% patronid | html %]" />
135
                                    <input type="hidden" name="barcode" value="[% barcode | html %]" />
135
                                    <input type="hidden" name="barcode" value="[% barcode | html %]" />
136
                                    <input type="hidden" name="confirmed" value="1" />
136
                                    <input type="hidden" name="confirmed" value="1" />
Lines 296-302 Link Here
296
                                                        <input type="hidden" name="barcode" value="[% ISSUE.barcode | html %]" />
296
                                                        <input type="hidden" name="barcode" value="[% ISSUE.barcode | html %]" />
297
                                                        <input type="hidden" name="newissues" value="[% newissues | html %]" />
297
                                                        <input type="hidden" name="newissues" value="[% newissues | html %]" />
298
                                                        [% IF ISSUE.can_be_renewed %]
298
                                                        [% IF ISSUE.can_be_renewed %]
299
                                                            <input type="hidden" name="op" value="checkout" />
299
                                                            <input type="hidden" name="op" value="renew" />
300
                                                            <input type="hidden" name="confirmed" value="1" />
300
                                                            <input type="hidden" name="confirmed" value="1" />
301
                                                            [% UNLESS ( ISSUE.renew ) %]
301
                                                            [% UNLESS ( ISSUE.renew ) %]
302
                                                                <input type="submit" value="Renew item"  name="confirm  " class="btn renew" />
302
                                                                <input type="submit" value="Renew item"  name="confirm  " class="btn renew" />
(-)a/opac/sco/sco-main.pl (-3 / +2 lines)
Lines 131-137 elsif ( $op eq "returnbook" && $allowselfcheckreturns ) { Link Here
131
    my ($doreturn) = AddReturn( $barcode, $branch );
131
    my ($doreturn) = AddReturn( $barcode, $branch );
132
    $template->param( returned => $doreturn );
132
    $template->param( returned => $doreturn );
133
}
133
}
134
elsif ( $patron and $op eq "checkout" ) {
134
elsif ( $patron && ( $op eq 'checkout' || $op eq 'renew' ) ) {
135
    my $impossible  = {};
135
    my $impossible  = {};
136
    my $needconfirm = {};
136
    my $needconfirm = {};
137
    ( $impossible, $needconfirm ) = CanBookBeIssued(
137
    ( $impossible, $needconfirm ) = CanBookBeIssued(
Lines 174-180 elsif ( $patron and $op eq "checkout" ) { Link Here
174
                barcode    => $barcode,
174
                barcode    => $barcode,
175
            );
175
            );
176
        }
176
        }
177
    } elsif ( $needconfirm->{RENEW_ISSUE} ) {
177
    } elsif ( $needconfirm->{RENEW_ISSUE} || $op eq 'renew' ) {
178
        if ($confirmed) {
178
        if ($confirmed) {
179
            #warn "renewing";
179
            #warn "renewing";
180
            AddRenewal( $borrower->{borrowernumber}, $item->{itemnumber} );
180
            AddRenewal( $borrower->{borrowernumber}, $item->{itemnumber} );
181
- 

Return to bug 18251