diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index 3dec4555e3..e9780626be 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -369,7 +369,7 @@ function LoadIssuesTable() { } content += ")"; } - if(oObj.auto_renew){ + if (oObj.auto_renew && oObj.auto_renew_patron) { content += "("; content += __("Scheduled for automatic renewal"); content += ")"; diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index 7dbb08f7a4..f6b12e9202 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -504,7 +504,7 @@ [% ELSIF ( ISSUE.item_denied_renewal ) %] Renewal not allowed [% END %] - [% IF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %] + [% IF ( ( ISSUE.auto_renew || ISSUE.auto_too_soon ) && borrower.autorenew_checkouts ) %]
This item is scheduled for auto renewal. [% END %] diff --git a/svc/checkouts b/svc/checkouts index dd8d1d0f82..bddaa2e22f 100755 --- a/svc/checkouts +++ b/svc/checkouts @@ -106,6 +106,7 @@ my $sql = ' borrowers.surname, borrowers.firstname, borrowers.cardnumber, + borrowers.autorenew_checkouts, items.itemlost, items.damaged, @@ -276,6 +277,7 @@ while ( my $c = $sth->fetchrow_hashref() ) { date_due_today => $c->{date_due_today} ? JSON::true : JSON::false, timestamp => $c->{timestamp}, auto_renew => $c->{auto_renew}, + auto_renew_patron => $c->{autorenew_checkouts}, onsite_checkout => $c->{onsite_checkout}, enumchron => $c->{enumchron}, renewals_count => $renewals_count,