[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
Thu Dec 1 20:43:54 CET 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6151

--- Comment #2 from Ian Walls <ian.walls at bywatersolutions.com> 2011-12-01 19:43:54 UTC ---
Better solution:  A new system preference, AllowReturnToBranch, and a
subroutine in C4/Circulation to leverage it.

Possible syspref values:

homebranch
holdingbranch (which would correspond to the issuing branch)
homebranch OR holdingbranch <== default if IndependantBranches is ON
anywhere <== default if IndependantBranches is OFF (and for fresh installs)

New C4::Circulation::CanReturnToBranch subroutine
Takes in $item object and current branch

Returns two values:  1 if return is allowed or 0 if return is forbidden, and
the allowed return branch (defaults to homebranch is option is 'homebranch or
holdingbranch')

Change the conditional in AddReturn to consult this subroutine instead of
comparing $branch to $hbr and looking for IndependantBranches syspref.

-- 
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