https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43269
--- Comment #17 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 203580 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203580&action=edit Bug 43269: Add Koha::Libraries->name_for my $name = Koha::Libraries->name_for({ branchcode => $code }); Adds a cached class method that resolves a branchcode to its library name. Pre-fetches all library names on first access using Koha::Caches. Cache key: libraries:name (compatible with C4::Biblio::GetAuthorisedValueDesc) Returns the branchcode as fallback if not found. Test plan: 1. Apply patch 2. Run: $ ktd --shell k$ prove t/db_dependent/Koha/Libraries.t => SUCCESS: Tests pass! 3. 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/
