https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17921
--- Comment #8 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 205891 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=205891&action=edit Bug 17921: Add Koha::Items->filter_by_not_suppressed This patch adds a Koha::Objects-level resultset filter that removes items whose linked biblio record is suppressed from the OPAC (i.e. the biblio.opac_suppressed column is true). It mirrors the existing Koha::Virtualshelfcontents->filter_by_not_suppressed and complements Koha::Items->filter_by_visible_in_opac, so OPAC visibility can be composed at the resultset level. Test plan: 1. Apply this patch 2. Run: $ ktd --shell k$ prove t/db_dependent/Koha/Items.t => SUCCESS: Tests pass! 3. Tests cover: - Items linked to a suppressed biblio are filtered out - The method returns a Koha::Items resultset - Only items from non-suppressed biblios are returned - All items reappear once the biblio is no longer suppressed 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
