diff --git a/circ/circulation.pl b/circ/circulation.pl index db2110093e..2a1f2115da 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -601,7 +601,6 @@ $template->param( canned_bor_notes_loop => $canned_notes, debarments => GetDebarments({ borrowernumber => $borrowernumber }), todaysdate => dt_from_string()->set(hour => 23)->set(minute => 59), - onsite_checkout_forced => C4::Context->preference("OnSiteCheckoutsForce"), ); output_html_with_http_headers $query, $cookie, $template->output; 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 956779ff4e..a8f79c2bef 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -499,7 +499,7 @@ No patron matched [% message %] [% IF ( borrowernumber ) %]
-[% IF !noissues || onsite_checkout_forced %] +[% IF !noissues || Koha.Preference('OnSiteCheckoutsForce') %] [% IF ( flagged ) %]
[% ELSE %] @@ -575,7 +575,7 @@ No patron matched [% message %] [% IF ( noissues ) %]
[% ELSE %]
[% END %] [% IF flagged %] - [% IF NOT noissues || ( noissues && onsite_checkout_forced ) %] + [% IF NOT noissues || ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
[% ELSE %]

Checking out to [% INCLUDE 'patron-title.inc' %]

@@ -584,7 +584,7 @@ No patron matched [% message %]

[% IF noissues %] Cannot check out! - [% IF onsite_checkout_forced %] + [% IF Koha.Preference('OnSiteCheckoutsForce') %] Only on-site checkouts are allowed [% END %] [% ELSE %]