[Koha-bugs] [Bug 6151] IndependantBranches and HomeOrHoldingBranchReturn can prevent items from being checked in
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Sep 14 16:35:17 CEST 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6151
Paul Poulain <paul.poulain at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |paul.poulain at biblibre.com
--- Comment #19 from Paul Poulain <paul.poulain at biblibre.com> ---
Can't this feature be achieved already with branch transfer limits ?
I thought that, with this feature activated, one can do much precise return
rules than with just a syspref.
Looking at the code, I realize I'm wrong:
C4/Circulation.pm, sub AddReturn says:
if ($hbr ne $branch && C4::Context->preference("IndependantBranches") &&
!(C4::Context->preference("canreservefromotherbranches"))){
$messages->{'Wrongbranch'} = {
Wrongbranch => $branch,
Rightbranch => $hbr,
};
$doreturn = 0;
# bailing out here - in this case, current desired behavior
# is to act as if no return ever happened at all.
# FIXME - even in an indy branches situation, there should
# still be an option for the library to accept the item
# and transfer it to its owning library.
return ( $doreturn, $messages, $issue, $borrower );
But shouldn't we use the branch_transfer_limit anyway (and not this new
syspref)
(just throwing asking the question, not rejecting the patch)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list