[Koha-bugs] [Bug 15098] Itemtype description missing from facets for itypes in a search group

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 3 23:48:05 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15098

--- Comment #4 from Marc Véron <veron at veron.ch> ---
Following findings:

opac/opac-search.pl line 213 calls GetItemTypesCategorized
and then resolves the codes to the descriptions

But C4/Koha.pm, GetItemTypesCategorized, line 303 has:
SELECT itemtype, description, imageurl, hideinopac, 0 as 'iscat' FROM itemtypes
WHERE ISNULL(searchcategory) or length(searchcategory) = 0  (...)

If I remove the WHERE clause, the label appears in the facet as expected (Books
isntead of BK in my test case).

I think this is the place for some more digging. Where is
GetItemTypesCategorized used, is it possible to remove the where clause without
side effects (No, I'm afraid), do we need a variant without where clause for
the facets?

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


More information about the Koha-bugs mailing list