https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43269
--- Comment #10 from David Nind <[email protected]> --- Created attachment 203497 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203497&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 Signed-off-by: David Nind <[email protected]> -- 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/
