https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35142
--- Comment #11 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 201771 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201771&action=edit Bug 35142: Migrate callers to use metadata extractor Replaces all calls to GetNormalizedOCLCNumber() and Koha::Util::MARC::oclc_number() with the extractor pattern. OPAC scripts pass their already ViewPolicy-filtered $record directly to the extractor. This preserves the existing filtering behavior without introducing new abstraction layers: Koha::Biblio::Metadata::Extractor->new( { metadata => $record } )->get_normalized_oclc Intranet scripts and the Koha::Biblio convenience method use the raw cached extractor (035 visibility is not affected by ViewPolicy in practice, and intranet doesn't filter): $biblio->normalized_oclc Test plan: 1. Verify OCLC numbers display on OPAC detail, ISBD, MARC detail 2. Verify staff catalogue detail and search results 3. prove t/db_dependent/Koha/Biblio.t Signed-off-by: Martin Renvoize <[email protected]> Assisted-by: Sonnet 4.6 (Anthropic) -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
