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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-2 lines)
Lines 133-139 Link Here
133
                                    <input type="hidden" name="patronid" value="[% patronid | html %]" />
133
                                    <input type="hidden" name="patronid" value="[% patronid | html %]" />
134
                                    <input type="hidden" name="barcode" value="[% barcode | html %]" />
134
                                    <input type="hidden" name="barcode" value="[% barcode | html %]" />
135
                                    <input type="hidden" name="confirmed" value="1" />
135
                                    <input type="hidden" name="confirmed" value="1" />
136
                                    <input type="hidden" name="seen" value="1" />
137
                                    <input type="hidden" name="newissues" value="[% newissues | html %]" />
136
                                    <input type="hidden" name="newissues" value="[% newissues | html %]" />
138
                                    <button type="submit" name="confirm" class="btn btn-primary"><i class="fa fa-refresh" aria-hidden="true"></i> Renew item</button>
137
                                    <button type="submit" name="confirm" class="btn btn-primary"><i class="fa fa-refresh" aria-hidden="true"></i> Renew item</button>
139
                                  </form>
138
                                  </form>
Lines 143-149 Link Here
143
                                    <input type="hidden" name="patronid" value="[% patronid | html %]" />
142
                                    <input type="hidden" name="patronid" value="[% patronid | html %]" />
144
                                    <input type="hidden" name="barcode" value="[% barcode | html %]" />
143
                                    <input type="hidden" name="barcode" value="[% barcode | html %]" />
145
                                    <input type="hidden" name="confirmed" value="1" />
144
                                    <input type="hidden" name="confirmed" value="1" />
146
                                    <input type="hidden" name="seen" value="1" />
147
                                    <input type="hidden" name="newissues" value="[% newissues | html %]" />
145
                                    <input type="hidden" name="newissues" value="[% newissues | html %]" />
148
                                    <button type="submit" class="btn btn-primary"><i class="fa fa-refresh" aria-hidden="true"></i> Renew item</button>
146
                                    <button type="submit" class="btn btn-primary"><i class="fa fa-refresh" aria-hidden="true"></i> Renew item</button>
149
                                </form>
147
                                </form>
(-)a/misc/cronjobs/automatic_renewals.pl (+1 lines)
Lines 103-108 while ( my $auto_renew = $auto_renews->next ) { Link Here
103
        or $error eq 'on_reserve'
103
        or $error eq 'on_reserve'
104
        or $error eq 'restriction'
104
        or $error eq 'restriction'
105
        or $error eq 'overdue'
105
        or $error eq 'overdue'
106
        or $error eq 'too_unseen'
106
        or $error eq 'auto_account_expired'
107
        or $error eq 'auto_account_expired'
107
        or $error eq 'auto_too_late'
108
        or $error eq 'auto_too_late'
108
        or $error eq 'auto_too_much_oweing'
109
        or $error eq 'auto_too_much_oweing'
(-)a/opac/sco/sco-main.pl (-4 / +2 lines)
Lines 99-112 if (defined C4::Context->preference('SCOAllowCheckin')) { Link Here
99
}
99
}
100
100
101
my $issuerid = $loggedinuser;
101
my $issuerid = $loggedinuser;
102
my ($op, $patronid, $patronlogin, $patronpw, $barcode, $confirmed, $seen, $newissues) = (
102
my ($op, $patronid, $patronlogin, $patronpw, $barcode, $confirmed, $newissues) = (
103
    $query->param("op")         || '',
103
    $query->param("op")         || '',
104
    $query->param("patronid")   || '',
104
    $query->param("patronid")   || '',
105
    $query->param("patronlogin")|| '',
105
    $query->param("patronlogin")|| '',
106
    $query->param("patronpw")   || '',
106
    $query->param("patronpw")   || '',
107
    $query->param("barcode")    || '',
107
    $query->param("barcode")    || '',
108
    $query->param("confirmed")  || '',
108
    $query->param("confirmed")  || '',
109
    $query->param("seen")       || 0,
110
    $query->param("newissues")  || '',
109
    $query->param("newissues")  || '',
111
);
110
);
112
111
Lines 269-275 if ( $patron && ( $op eq 'renew' ) ) { Link Here
269
    my ($status,$renewerror) = CanBookBeRenewed( $borrower->{borrowernumber}, $item->itemnumber );
268
    my ($status,$renewerror) = CanBookBeRenewed( $borrower->{borrowernumber}, $item->itemnumber );
270
    if ($status) {
269
    if ($status) {
271
        #warn "renewing";
270
        #warn "renewing";
272
        AddRenewal( $borrower->{borrowernumber}, $item->itemnumber, undef, undef, undef, undef, $seen );
271
        AddRenewal( $borrower->{borrowernumber}, $item->itemnumber, undef, undef, undef, undef, 1 );
273
        push @newissueslist, $barcode;
272
        push @newissueslist, $barcode;
274
        $template->param( renewed => 1 );
273
        $template->param( renewed => 1 );
275
    }
274
    }
276
- 

Return to bug 24083