diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index ecf8409c02..9d4676a39c 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -575,7 +575,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 c196e8f965..7e0e16ade5 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -488,7 +488,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 9b45a03fbf..3d568e357d 100755 --- a/svc/checkouts +++ b/svc/checkouts @@ -107,6 +107,7 @@ my $sql = ' borrowers.surname, borrowers.firstname, borrowers.cardnumber, + borrowers.autorenew_checkouts, items.itemlost, items.damaged, @@ -277,6 +278,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,