@@ -, +, @@ --------- is enabled. --- circ/offline.pl | 4 ++-- .../intranet-tmpl/prog/en/modules/circ/offline.tt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/circ/offline.pl +++ a/circ/offline.pl @@ -36,6 +36,6 @@ my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user( $template->{'VARS'}->{'AllowOfflineCirculation'} = C4::Context->preference('AllowOfflineCirculation'); -$template->{'VARS'}->{'maxoutstanding'} = - C4::Context->preference('maxoutstanding') || 0; +$template->{'VARS'}->{'FeesBlockHoldsAmount'} = + C4::Context->preference('FeesBlockHoldsAmount') || 0; output_html_with_http_headers $query, $cookie, $template->output; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt @@ -339,7 +339,7 @@ function checkPatronAlerts(cardnumber, patron) { if (new Date(patron.dateexpiry) < new Date()) { alerts.push(ALERT_PATRON_EXPIRED.format($.datepicker.formatDate(dateformat, new Date(patron.dateexpiry)))); } - if (parseInt(patron.fine) > [% maxoutstanding %]) { + if (parseInt(patron.fine) > [% FeesBlockHoldsAmount %]) { alerts.push(ALERT_PATRON_FINE_OVER_LIMIT.format(patron.fine)); } else if (parseInt(patron.fine) > 0) { alerts.push(ALERT_PATRON_FINE.format(patron.fine)); --