@@ -, +, @@ being renewed --- C4/Circulation.pm | 8 ++++++++ koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt | 2 ++ 2 files changed, 10 insertions(+) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -2709,6 +2709,14 @@ sub CanBookBeRenewed { } return ( 0, "on_reserve" ) if $resfound; # '' when no hold was found + # check if item has been recalled. do a transfer if the recall branch is different to the item holding branch, otherwise don't do a transfer + my $recall = Koha::Recalls->find({ itemnumber => $itemnumber, status => 'R' }); + my $recallfound; + if (defined $recall){ + $recallfound = 1; + } + return ( 0, "recalled" ) if $recallfound; + return ( 1, undef ) if $override_limit; my $branchcode = _GetCircControlBranch( $item, $patron->unblessed ); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt @@ -113,6 +113,8 @@ + [% ELSIF error == "recalled" %] +

This item has been recalled.

[% ELSIF error == "patron_restricted" %]

[% borrower.firstname | html %] [% borrower.surname | html %] ( [% borrower.cardnumber | html %] ) is currently restricted.

--