[Koha] Can facets use search categories instead of item types?

Katrin Fischer katrin.fischer.83 at web.de
Mon Apr 27 09:10:34 NZST 2020


Hi Michael,

what you describes feels like a bit of a risky change. Instead of
undoing your itemtype configuration, I'd probably try to change the
facet configuration instead or try to regroup/rewrite the facets using
jQuery.

There has also been a bug reported about this:

*Bug 19891*
<https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19891> -
itemtypecat should show categories in refine search (facets) and item
details, not itypes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19891

Hope this helps,

Katrin


On 14.04.20 09:52, Michael Kuhn wrote:
> Hi
>
> In Koha menu "Administration > Item types" you can create item types
> and group them as search categories. Our library wants to show its
> facets according to the existing 4 search categories instead of the 22
> item types.
>
> In our library we have 22 item types like the following:
>
> Code: ASO
> Description: Aufsatz // Sammelband [online]
> Search category: Online Ressource
>
> Code: AUF
> Description: Aufsatz // Sammelband [print]
> Search category: Aufsatz
>
> Code: AZO
> Description: Aufsatz // Zeitschrift [online]
> Search category: Online Ressource
>
> Code: AZP
> Description: Aufsatz // Zeitschrift [print]
> Search category: Aufsatz
>
> The facets do show these item types according to their descriptions, thus
>
> Aufsatz // Sammelband [online]
> Aufsatz // Sammelband [print]
> Aufsatz // Zeitschrift [online]
> Aufsatz // Zeitschrift [print]
>
> But the library would like to have facets just like the following
> according to the search category:
>
> Aufsatz
> Online Ressource
>
> As I found in the Zebra configuration the facets are actually using
> the content of MARC 942$c (the code of the item type) and displays the
> respective description. Actually I don't see a way how to use the
> search category instead - but maybe there is one, that we can't see?
>
> My solution would be to
>
> * create new item type codes according to the current search categories
> * delete the current search categories
> * change all bibliographic records using SQL (still to be written...)
> by putting all content of MARC 942$c/952$y in another field (e. g.
> 942$d) and instead fill 942$c/952$y with the new item type code
>
> Do you maybe have a better idea to achieve our goal?
>
> Best wishes: Michael
> --
> Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
> Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
> T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch
> _______________________________________________
>
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha


More information about the Koha mailing list