@@ -, +, @@ --- C4/Circulation.pm | 8 ++++++++ .../prog/en/modules/circ/circulation.tt | 12 ++++++++++++ 2 files changed, 20 insertions(+), 0 deletions(-) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -2322,6 +2322,14 @@ sub CanBookBeRenewed { } } + my ( $blocktype, $count ) = C4::Members::IsMemberBlocked($borrowernumber); + if ( $blocktype == -1 && ! defined($override_limit) ) { + $renewokay=0; + $error="overdue"; + } elsif ( $blocktype == 1 && ! defined($override_limit) ) { + $renewokay=0; + $error="restriction"; + } return ($renewokay,$error); } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -762,6 +762,12 @@ No patron matched [% message %] [% IF ( todayissue.renew_error_too_many ) %] Not renewable [% END %] + [% IF ( todayissue.renew_error_overdue ) %] + Overdues + [% END %] + [% IF ( todayissue.renew_error_restriction ) %] + Patron is restricted + [% END %] [% IF ( todayissue.can_confirm ) %] [% END %] @@ -837,6 +843,12 @@ No patron matched [% message %] [% IF ( previssue.renew_error_too_many ) %] Not renewable [% END %] + [% IF ( previssue.renew_error_overdue ) %] + Not Renewable (Overdue) + [% END %] + [% IF ( previssue.renew_error_restriction ) %] + Patron is restricted + [% END %] [% IF ( previssue.can_confirm ) %] [% END %] --