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 278-284 Link Here
278
                                                        <input type="hidden" name="patronid" value="[% patronid %]" />
278
                                                        <input type="hidden" name="patronid" value="[% patronid %]" />
279
                                                        <input type="hidden" name="barcode" value="[% ISSUE.barcode %]" />
279
                                                        <input type="hidden" name="barcode" value="[% ISSUE.barcode %]" />
280
                                                        [% IF ISSUE.can_be_renewed %]
280
                                                        [% IF ISSUE.can_be_renewed %]
281
                                                            <input type="hidden" name="op" value="checkout" />
281
                                                            <input type="hidden" name="op" value="renew" />
282
                                                            <input type="hidden" name="confirmed" value="1" />
282
                                                            <input type="hidden" name="confirmed" value="1" />
283
                                                            [% UNLESS ( ISSUE.renew ) %]
283
                                                            [% UNLESS ( ISSUE.renew ) %]
284
                                                                <input type="submit" value="Renew item"  name="confirm  " class="btn renew" />
284
                                                                <input type="submit" value="Renew item"  name="confirm  " class="btn renew" />
(-)a/opac/sco/sco-main.pl (-3 / +2 lines)
Lines 135-141 elsif ( $op eq "returnbook" && $allowselfcheckreturns ) { Link Here
135
    $template->param( returned => $doreturn );
135
    $template->param( returned => $doreturn );
136
    $borrower = GetMember( cardnumber => $patronid );
136
    $borrower = GetMember( cardnumber => $patronid );
137
}
137
}
138
elsif ( $op eq "checkout" ) {
138
elsif ( $op eq "checkout" || $op eq 'renew' ) {
139
    my $impossible  = {};
139
    my $impossible  = {};
140
    my $needconfirm = {};
140
    my $needconfirm = {};
141
    if ( !$confirmed ) {
141
    if ( !$confirmed ) {
Lines 174-180 elsif ( $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, $item->{itemnumber} );
180
            AddRenewal( $borrower, $item->{itemnumber} );
181
- 

Return to bug 18251