Bug 32712: (QA follow-up) Use Koha.Preference

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 320d184bb1)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
This commit is contained in:
Tomás Cohen Arazi 2023-01-31 09:34:13 -03:00 committed by Jacob O'Mara
parent 9d8218df0e
commit 5ead067775
2 changed files with 2 additions and 6 deletions

View file

@ -49,13 +49,13 @@
[% SET itemavailable = 0 %]
[% IF onsite_checkout %]
[% IF ( OPACShowCheckoutName ) %]
[% IF ( Koha.Preference('OPACShowCheckoutName') ) %]
<span class="item-status checkedout">Currently in local use by [% checkout_patron.firstname | html %] [% checkout_patron.surname | html %] [% IF ( checkout_patron.cardnumber ) %]([% checkout_patron.cardnumber | html %])[% END %]</span>
[% ELSE %]
<span class="item-status checkedout">Currently in local use</span>
[% END %]
[% ELSE %]
[% IF ( OPACShowCheckoutName ) %]
[% IF ( Koha.Preference('OPACShowCheckoutName') ) %]
<span class="item-status checkedout">Checked out to [% checkout_patron.firstname | html %] [% checkout_patron.surname | html %] [% IF ( checkout_patron.cardnumber ) %]([% checkout_patron.cardnumber | html %])[% END %]</span>
[% ELSE %]
<span class="item-status checkedout">Checked out</span>

View file

@ -488,10 +488,6 @@ if ($session->param('busc')) {
}
}
$template->param(
OPACShowCheckoutName => C4::Context->preference("OPACShowCheckoutName"),
);
$items = Koha::Items->search_ordered(
[
'me.biblionumber' => $biblionumber,