Bug 41041

Summary: Item type configured to hide item from OPAC, but shows in facets!
Product: Koha Reporter: cgresser <cgresser>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: 23.11   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Crowdfunding goal: 0
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Screenshot shows facet of hidden from OPAC item type

Description cgresser 2025-10-17 05:56:24 UTC
Created attachment 188044 [details]
Screenshot shows facet of hidden from OPAC item type

We have defined an item type which should be hidden on OPAC, yet as there are other items under the same biblio record they showed up, and then the facet for this item type showed on OPAC too.

To add an option to configuration of item type to hide the facet for an item type from OPAC.

Open Fifth created a workaround in
OpacUserJS system preference to hide this facet from display:

/* Hide Hidden itype from facets */
$("#itype_id > ul > li:has(span:contains('Item type hidden from OPAC'))").remove();

but it would be better if Koha did this as "out-of-the-box".

I attach a screenshot of proof how it looked before Open Fifth applied the workaround to the display.