]> git.koha-community.org Git - koha.git/commit
Bug 15098: Itemtype description missing from facets for itypes in a search group
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Wed, 4 Nov 2015 12:24:10 +0000 (09:24 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 5 Nov 2015 12:52:08 +0000 (09:52 -0300)
commit55456b6e7ff0278f2821a71c38b9a5b67bfd4220
treea8e3d76f3e7e49fdf5389d74c60f16645518ddc6
parent25bd92bc3e7271541817660963155468e12b4eda
Bug 15098: Itemtype description missing from facets for itypes in a search group

This patch adds a second variable to hold item types info
just for facets.

In case we have an item type in a search category, it's description
is removed from GetItemTypesCategorized, which is good for advanced
search, but no for facets

A second var is needed which holds all item type info.

To test:
On top of Bug 15092 patches (no really needed, but I write this on top
of them)
1) Add an item type to a search group
2) Do a search in opac, in facets will see only item type code,
no description, for that item type
3) Apply the patch
4) Repeat search, now description must be present

Followed test plan including translated descriptions. Works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
opac/opac-search.pl