https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36261 --- Comment #11 from David Cook <dcook@prosentient.com.au> --- (In reply to Andreas Jonsson from comment #10)
When it comes to filtering items, I'm thinking that, in the search index, there should be a record level field for "no opac visible items" and for each item there should be a flag "hidden in opac".
So, you can filter the search on the record level so you only get records that have at least one opac visible item. And then the information about which items that should be excluded in the result view is available directly from the search index. No additional processing would be needed at search time.
Yeah, it's an idea, and increasingly I'm thinking it could be the way to go. We'd just need to add some explanation in the syspref description for OpacHiddenItems that they'll need to rebuild the hidden statuses if/when they make changes. (We do that with a number of other settings in Koha, so there's already a precedent, so why not, right?) I think we'd need to build a new script for that, or maybe touch_all_items.pl would be enough. I guess we'd find out during testing... -- So yeah... I reckon someone should give it a go. I probably won't do the coding for it, but I'd be happy to test/QA it. -- You are receiving this mail because: You are watching all bug changes.