Koha-clms/Koha/OAI
Olivia Reynolds e886c3a7e0
Bug 39337: (follow-up) Default to not suppressing OAI records
In the case when a biblio is deleted, we should not suppress its
orphaned records. Therefore, invert the conditions in the WHERE clause
to not suppress the record if no biblio could be found.

Test plan:
1.  Enable the system preferences "OAI-PMH" and "OpacSuppression".
    Ensure "OpacSuppressionByIPRange" is blank.
2.  Navigate to
    /cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=oai_dc
3.  Select a displayed record, and delete its corresponding biblio.
4.  Refresh the OAI page, verify the record has vanished.
5.  Apply patch.
6.  Refresh the OAI page, verify the record now appears and is marked as
    deleted. It may have moved to the top of the list.

Sponsored-by: Open Fifth
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-08-25 08:56:28 +00:00
..
Client Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Server Bug 39337: (follow-up) Default to not suppressing OAI records 2026-08-25 08:56:28 +00:00
Set Bug 41462: Add Koha::OAI::Set(s) and Koha::OAI::Set::Biblio(s) 2026-03-26 14:21:26 +01:00
Set.pm Bug 41462: Add Koha::OAI::Set(s) and Koha::OAI::Set::Biblio(s) 2026-03-26 14:21:26 +01:00
Sets.pm Bug 41462: Add Koha::OAI::Set(s) and Koha::OAI::Set::Biblio(s) 2026-03-26 14:21:26 +01:00