[Koha-bugs] [Bug 30636] ILS-DI shows incorrect availability when Notforloan by Itemtype

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 28 06:40:16 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30636

--- Comment #1 from David Cook <dcook at prosentient.com.au> ---
Unfortunately, detail.tt uses item.notforloan_per_itemtype which is a column
alias from a custom SQL query in C4/Items.pm. 

In theory, we could just add a Koha::Item->notforloan_per_itemtype method, but
then it seems like Koha::Item->notforloan is often used as a boolean to
determine if an item is not for loan... and sometimes Koha::Item->notforloan is
used for its particular "Not for loan" description. 

It seems to me that we might be better off creating a new method like
Koha::Item->is_not_for_loan() which returns a boolean response based on the
"notforloan" value and whether it's "Not for loan" based on its item type.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list