]> git.koha-community.org Git - koha.git/commit
Bug 7614: Add a new method Koha::Libraries->pickup_locations
authorLari Taskula <lari.taskula@jns.fi>
Thu, 9 Feb 2017 17:21:32 +0000 (19:21 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 25 Jan 2019 14:46:58 +0000 (14:46 +0000)
commit2101d0af0034bf8278893b4d4ca7d80c29b3bc75
tree9c50392d5cb589af7f32417a969845882221c09d
parent09282c9e56216b3be7dcf904ce00fcd8f7766f84
Bug 7614: Add a new method Koha::Libraries->pickup_locations

This patch adds a new method, Koha::Libraries->pickup_locations. This method
takes either an item or a biblio as a parameter, and returns the list of
acceptable pickup locations by considering libraries' configuration to act
as a pickup location as well as any branch transfer limits that may apply.

To test:
1. prove t/db_dependent/Koha/Libraries.t

Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Libraries.pm
t/db_dependent/Koha/Libraries.t