https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35052 --- Comment #20 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 205612 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=205612&action=edit Bug 35052: Apply the opac-hidden-items filter in search_compat Calls _apply_opac_hidden_items_filter alongside the existing _apply_item_level_filters, inside the same items-index-readiness-gated block. Adds the matching unconditional delete of $query->{_opac_hidden_items_rules} outside that block, mirroring the existing safety net for _item_level_constraints, so the key never leaks through to Elasticsearch as an unrecognised query field when the items index isn't ready. Also adds an integration test proving the filter is actually wired into search_compat's real code path (mocking only the ES-network boundary), closing part of the "no end-to-end test through this pipeline" gap flagged on Bug 43151 - fully closed by the next commit's test through build_query_compat too. Test plan: 1) ktd --name "${KTD_INSTANCE:-kohadev}" --shell --run 'prove t/db_dependent/Koha/SearchEngine/Elasticsearch/Search.t' 2) All tests pass, including the new 'search_compat() applies the opac-hidden-items filter' subtest -- You are receiving this mail because: You are watching all bug changes.