bug 2000 - add C4::Circulation::GetBranchBorrowerCircRule
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 20 Jun 2008 13:11:19 +0000 (08:11 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 20 Jun 2008 13:19:06 +0000 (08:19 -0500)
commit95889857c79aa5293911c95556740e201edab75e
tree7f61ed0a7084b44c38223d1f10f00311b1ebc9a0
parent376c1301532bda78662e244987be775963c60765
bug 2000 - add C4::Circulation::GetBranchBorrowerCircRule

This routine retrieves the branch/patron category circulation
rules for a given branch and patron category.  The return
value is a hashref containing the following key:

maxissueqty - maximum number of loans across all item types

This will first check for a specific branch and
category match from branch_borrower_circ_rules.

If no rule is found, it will then check default_branch_circ_rules
(same branch, default category).  If no rule is found,
it will then check default_borrower_circ_rules (default
branch, same category), then failing that, default_circ_rules
(default branch, default category).

If no rule has been found in the database, it will default to
the built in rule:

maxissueqty - undef

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Circulation.pm
t/lib/KohaTest/Circulation.pm