[Koha-bugs] [Bug 35052] OpacHiddenItemsHidesRecord system preference should be considered on index time instead
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Oct 25 02:00:53 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35052
David Cook <dcook at prosentient.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugs.koha-community
| |.org/bugzilla3/show_bug.cgi
| |?id=24403
--- Comment #3 from David Cook <dcook at prosentient.com.au> ---
I recall Frido and I talking about this on a separate bug but now I can't
remember which one it was...
One problem with indexing whether or not to hide based on OpacHiddenItems and
OpacHiddenItemsHidesRecord is that you'd need to do a full reindex for any
change to OpacHiddenItems or OpacHiddenItemsHidesRecord. (Of course, if we note
that caveat in the syspref descriptions, then it's not necessarily a huge
problem.)
Unless we re-use the index used by OpacSuppression, then we'll need to adapt
the search queries to take into account a new OpacHiddenItems index as well.
--
As Nick says, I don't think just updating the search query is enough, since I
don't think there's any way to know if all the items in a record should be
hidden in Zebra.
In bug 19704, I'm able to generate a SQL query using OpacHiddenItems, but it's
able to deal with individual item records.
That said, I don't think we can index items separately in Zebra and there
wouldn't be any way to join the bibs and items together anyway.
So I think that really just leaves the indexing option?
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list