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 114-120 Link Here
114
114
115
                            [% UNLESS ( renew ) %]
115
                            [% UNLESS ( renew ) %]
116
                                <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
116
                                <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
117
                                    <input type="hidden" name="op" value="checkout" />
117
                                    <input type="hidden" name="op" value="renew" />
118
                                    <input type="hidden" name="patronid" value="[% patronid %]" />
118
                                    <input type="hidden" name="patronid" value="[% patronid %]" />
119
                                    <input type="hidden" name="barcode" value="[% barcode %]" />
119
                                    <input type="hidden" name="barcode" value="[% barcode %]" />
120
                                    <input type="hidden" name="confirmed" value="1" />
120
                                    <input type="hidden" name="confirmed" value="1" />
Lines 122-128 Link Here
122
                                  </form>
122
                                  </form>
123
                            [% ELSE %]
123
                            [% ELSE %]
124
                                <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
124
                                <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
125
                                    <input type="hidden" name="op" value="checkout" />
125
                                    <input type="hidden" name="op" value="renew" />
126
                                    <input type="hidden" name="patronid" value="[% patronid %]" />
126
                                    <input type="hidden" name="patronid" value="[% patronid %]" />
127
                                    <input type="hidden" name="barcode" value="[% barcode %]" />
127
                                    <input type="hidden" name="barcode" value="[% barcode %]" />
128
                                    <input type="hidden" name="confirmed" value="1" />
128
                                    <input type="hidden" name="confirmed" value="1" />
Lines 281-287 Link Here
281
                                                        <input type="hidden" name="patronid" value="[% patronid %]" />
281
                                                        <input type="hidden" name="patronid" value="[% patronid %]" />
282
                                                        <input type="hidden" name="barcode" value="[% ISSUE.barcode %]" />
282
                                                        <input type="hidden" name="barcode" value="[% ISSUE.barcode %]" />
283
                                                        [% IF ISSUE.can_be_renewed %]
283
                                                        [% IF ISSUE.can_be_renewed %]
284
                                                            <input type="hidden" name="op" value="checkout" />
284
                                                            <input type="hidden" name="op" value="renew" />
285
                                                            <input type="hidden" name="confirmed" value="1" />
285
                                                            <input type="hidden" name="confirmed" value="1" />
286
                                                            [% UNLESS ( ISSUE.renew ) %]
286
                                                            [% UNLESS ( ISSUE.renew ) %]
287
                                                                <input type="submit" value="Renew item"  name="confirm  " class="btn renew" />
287
                                                                <input type="submit" value="Renew item"  name="confirm  " class="btn renew" />
(-)a/opac/sco/sco-main.pl (-3 / +2 lines)
Lines 139-145 elsif ( $op eq "returnbook" && $allowselfcheckreturns ) { Link Here
139
    my ($doreturn) = AddReturn( $barcode, $branch );
139
    my ($doreturn) = AddReturn( $barcode, $branch );
140
    $template->param( returned => $doreturn );
140
    $template->param( returned => $doreturn );
141
}
141
}
142
elsif ( $borrower and $op eq "checkout" ) {
142
elsif ( $borrower && ( $op eq 'checkout' || $op eq 'renew' ) ) {
143
    my $impossible  = {};
143
    my $impossible  = {};
144
    my $needconfirm = {};
144
    my $needconfirm = {};
145
    ( $impossible, $needconfirm ) = CanBookBeIssued(
145
    ( $impossible, $needconfirm ) = CanBookBeIssued(
Lines 182-188 elsif ( $borrower and $op eq "checkout" ) { Link Here
182
                barcode    => $barcode,
182
                barcode    => $barcode,
183
            );
183
            );
184
        }
184
        }
185
    } elsif ( $needconfirm->{RENEW_ISSUE} ) {
185
    } elsif ( $needconfirm->{RENEW_ISSUE} || $op eq 'renew' ) {
186
        if ($confirmed) {
186
        if ($confirmed) {
187
            #warn "renewing";
187
            #warn "renewing";
188
            AddRenewal( $borrower->{borrowernumber}, $item->{itemnumber} );
188
            AddRenewal( $borrower->{borrowernumber}, $item->{itemnumber} );
189
- 

Return to bug 18251