[Koha-bugs] [Bug 18163] Elasticsearch advanced search by item type not working with item-level_itypes turned off (biblio record)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Feb 23 13:17:15 CET 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18163
--- Comment #3 from Pedro Amorim <pjamorim91 at gmail.com> ---
The reason the search is throwing the warning:
"item-level_itypes set but no itemtype set for item (ID) at
/usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698. " is because the
items.itype are indeed NULL (no info at the time of import). And the reason the
search is working is because it falls back to the biblioitems.itemtype after
throwing the error:
https://github.com/Koha-Community/Koha/blob/4f178fad53fb748bd1ccf67680e02411918c9584/Koha/Schema/Result/Item.pm#L700
With all that, the bug remains, the advanced search by item type will return no
results because it's searching as "itemtype, phr". "itemtype" alone will return
the results correctly.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list