]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 31 Jan 2019 16:30:43 +0000 (16:30 +0000)
commit71495e2f6f633fe2c7bd3a74a70cfd13b0ec67c9
tree6ee38f1ef98e7a3078c26f2202028481c2fadf24
parentd8194f17e43da3b17a6b9dc3c8643a471a748c36
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>
(cherry picked from commit 2101d0af0034bf8278893b4d4ca7d80c29b3bc75)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Libraries.pm
t/db_dependent/Koha/Libraries.t