https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43269
--- Comment #21 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 203584 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203584&action=edit Bug 43269: Rewrite GetAuthorisedValueDesc to delegate to domain objects This patch rewrites C4::Biblio::GetAuthorisedValueDesc to delegate all cached lookups to the new domain class methods: - branches -> Koha::Libraries->name_for - itemtypes -> Koha::ItemTypes->description_for - cn_source -> Koha::ClassSources->description_for - other AVs -> Koha::AuthorisedValues->description_for The function retains its role as a MARC-aware dispatcher (resolving tag/subfield to category via tagslib) but no longer contains any caching logic itself. No functional changes - behavior preserved. Test plan: 1. Apply patches 2. Run: $ ktd --shell k$ prove t/db_dependent/Biblio.t => SUCCESS: Tests pass! 3. Verify MARC editor displays authorised value descriptions 4. Verify XSLT displays resolve values correctly 5. 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/
