bug 2000 - fix order of issuingrule lookup
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 20 Jun 2008 13:11:16 +0000 (08:11 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 20 Jun 2008 13:19:03 +0000 (08:19 -0500)
commit9f2c77a686c06719b2136c7be3e24c9b20ee9f10
tree2dd6f37ab3dd3e0360ea222cd650a893deb55178
parent3e9a94c546bb1907ab38351afddc53f3d8d85b12
bug 2000 - fix order of issuingrule lookup

Extended help on the alternate circulation rules
form to list the order of issuingrules lookup as
follows:

same library, same patron type, same item type</li>
same library, same patron type, default item type</li>
same library, default patron type, same item type</li>
same library, default patron type, default item type</li>
default library, same patron type, same item type</li>
default library, same patron type, default item type</li>
default library, default patron type, same item type</li>
default library, default patron type, default item type</li>

This includes modifying two routines in C4::Circulation to
follow this order: GetLoanLength() and GetIssuingRule().

The reason for this change is to have Koha exhaust all issuingrules
possibilities for a branch before checking the rules for
the default branch - this is consistent with what an admin
might expect from looking at the issuingrules forms, which display
settings a branch at a time, and is more consistent with how
circulation rules should work for indepdendent branches.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Circulation.pm
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tmpl