https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42504 --- Comment #1 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 198408 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198408&action=edit Bug 42504: Add embed_total_issues to metadata_record This patch adds an embed_total_issues parameter to Koha::Biblio::metadata_record that injects the current biblioitems.totalissues value into the MARC record, replacing any stale stored value. The target field is determined by the Koha-to-MARC mapping (942$0 for MARC21). Injection happens before the RecordProcessor so ViewPolicy visibility rules are respected. Test plan: 1. Apply patch 2. Run: $ ktd --shell k$ prove t/db_dependent/Koha/Biblio.t => SUCCESS: Tests pass! 3. Tests cover: - No injection without the flag - DB value correctly injected into MARC - Updated DB values reflected on subsequent calls - Stale MARC values replaced with current DB value 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.