[Koha-bugs] [Bug 32445] Status display of 'not for loan' items is broken in OPAC/staff
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Dec 14 11:25:48 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32445
Jonathan Druart <jonathan.druart+koha at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jonathan.druart+koha at gmail.
| |com
--- Comment #7 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
(In reply to Fridolin Somers from comment #4)
> For OPAC, I tried to fix :
> koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc
> koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status-schema-org.inc
>
> You see there :
> item.itemnotforloan and item.notforloanvalueopac
>
> But I get lost with :
> NOT ( item.isa('Koha::Item') )
> Is is still valid ?
Yes, it's definitely valid. We don't always send a Koha::Item
For instance in opac/opac-basket.pl
97 my $items = $biblio->items->filter_by_visible_in_opac({ patron =>
$logged_in_user })->unblessed;
137 $dat->{ITEM_RESULTS} = $items;
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list