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

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomas Cohen Arazi 2023-01-31 09:34:13 -03:00
parent d74fe69d2c
commit 320d184bb1
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
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,