From 5ead067775d9fa2e7f64b5b4b57ddfc35481b961 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 31 Jan 2023 09:34:13 -0300 Subject: [PATCH] Bug 32712: (QA follow-up) Use Koha.Preference Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 320d184bb1e1f0fb66fec45fb035d7049fd6e808) Signed-off-by: Jacob O'Mara --- koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc | 4 ++-- opac/opac-detail.pl | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc index 305282861c..4d3d4df21d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc @@ -49,13 +49,13 @@ [% SET itemavailable = 0 %] [% IF onsite_checkout %] - [% IF ( OPACShowCheckoutName ) %] + [% IF ( Koha.Preference('OPACShowCheckoutName') ) %] Currently in local use by [% checkout_patron.firstname | html %] [% checkout_patron.surname | html %] [% IF ( checkout_patron.cardnumber ) %]([% checkout_patron.cardnumber | html %])[% END %] [% ELSE %] Currently in local use [% END %] [% ELSE %] - [% IF ( OPACShowCheckoutName ) %] + [% IF ( Koha.Preference('OPACShowCheckoutName') ) %] Checked out to [% checkout_patron.firstname | html %] [% checkout_patron.surname | html %] [% IF ( checkout_patron.cardnumber ) %]([% checkout_patron.cardnumber | html %])[% END %] [% ELSE %] Checked out diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 961be88143..98c4f94a8c 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -488,10 +488,6 @@ if ($session->param('busc')) { } } -$template->param( - OPACShowCheckoutName => C4::Context->preference("OPACShowCheckoutName"), -); - $items = Koha::Items->search_ordered( [ 'me.biblionumber' => $biblionumber, -- 2.39.5