diff --git a/circ/circulation.pl b/circ/circulation.pl index 98ebc026be..f49c9f8597 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -485,6 +485,10 @@ if ( $patron ) { $template->param( is_debarred=> 1 ); $noissues = 1; } + if ( $patron->borrowernumber eq C4::Context->preference("AnonymousPatron") ) { + $template->param( is_anonymous => 1 ); + $noissues = 1; + } my $account = $patron->account; if( ( my $owing = $account->non_issues_charges ) > 0 ) { my $noissuescharge = C4::Context->preference("noissuescharge") || 5; # FIXME If noissuescharge == 0 then 5, why?? diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index 278278d8d0..5f214df79c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -94,6 +94,10 @@
Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.
[% END %] + [% IF is_anonymous %] +
This is the anonymous patron, so circulation is disabled.
+ [% END %] + [% IF ( NEEDSCONFIRMATION ) %]
[% IF CAN_user_circulate_force_checkout or ADDITIONAL_MATERIALS %]