https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43269 --- Comment #3 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 203461 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203461&action=edit Bug 43269: Add Koha::ClassSources->description_for my $desc = Koha::ClassSources->description_for({ cn_source => $code }); Adds a cached class method that resolves a classification source code to its description. Pre-fetches all classification sources on first access using Koha::Caches. Cache key: cn_sources:description (compatible with C4::Biblio::GetAuthorisedValueDesc) Returns the code as fallback if not found. Test plan: 1. Apply patch 2. Run: $ ktd --shell k$ prove t/db_dependent/Koha/ClassSources.t => SUCCESS: Tests pass! 3. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.