]> git.koha-community.org Git - koha.git/commit
Bug 30825: Add Koha::Item->holds_control_library
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 20 May 2022 14:46:12 +0000 (11:46 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 22 Sep 2023 15:35:45 +0000 (12:35 -0300)
commite0b5542b077de94d53dc7049a0edbadae5a06ca8
treeea35df59a3117393f937ec0fcb40b906079d74f9
parentf32ca2b8bd8e1ad7c4cc8bd68f92988735888769
Bug 30825: Add Koha::Item->holds_control_library

This simple method takes care of calculating the control branch for an
item and a patron, depending on a syspref.

It targets replacing C4::Reserves::GetReservesControlBranch

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Item.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Item.pm