From 7dec93830656bbfa77f62982775bc6c50f313c67 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 31 Oct 2014 05:31:24 -0400 Subject: [PATCH] Bug 10860 [QA Followup] - Use Koha.Preference --- circ/circulation.pl | 1 - .../prog/en/modules/circ/circulation.tt | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 64e5e55..497f16e 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -586,7 +586,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 e1179d7..c971f04 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -485,7 +485,7 @@ No patron matched [% message %] [% IF ( borrowernumber ) %]
-[% IF !noissues || onsite_checkout_forced %] +[% IF !noissues || Koha.Preference('OnSiteCheckoutsForce') %] [% IF ( flagged ) %]
[% ELSE %] @@ -559,7 +559,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' %]

@@ -568,7 +568,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 %] -- 1.7.2.5