https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43269 --- Comment #1 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 203459 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203459&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.