An example of this bug:
Library has hidden item type "password" from the OPAC.
Library does a search for a publication for which they have a password. On the OPAC - the record is hidden, but the item type facet contains the item type of "Password" even though the item itself is hidden. Clicking the facet brings back no results.
We've already hidden them on the Advanced search in bug 12330, it would be good to tidy this up as well.
I know this bug is a little old now, but it is still pertinent. If you have an item type that cannot be viewed on the OPAC it still shows up in the facets. For example, we have an Interlibrary Loan item type that is not visible on the OPAC, but it appears in the facets when it meets the criteria of the search. Clicking on this item type will bring you to an error message. It's confusing to the patron and/or gives the impression that there are problems with the OPAC.
Created attachment 79233 [details]
Wrong count for facets
Facet should only take in count items that are not hidden.
Still valid !
Because the "OpacHiddenItems" is handled after results are returned from the search engine, it's really hard to do handle the logic well.