No subject
Wed Jan 4 10:30:06 CET 2012
sub _GetCircControlBranch {
my ($item, $borrower) = @_;
my $circcontrol = C4::Context->preference('CircControl');
my $branch;
if ($circcontrol eq 'PickupLibrary') {
$branch= C4::Context->userenv->{'branch'} if C4::Context->userenv;
} elsif ($circcontrol eq 'PatronLibrary') {
$branch=$borrower->{branchcode};
} else {
my $branchfield = C4::Context->preference('HomeOrHoldingBranch') ||
'homebranch';
$branch = $item->{$branchfield};
# default to item home branch if holdingbranch is used
# and is not defined
if (!defined($branch) && $branchfield eq 'holdingbranch') {
$branch = $item->{homebranch};
}
}
return $branch;
}
--
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list