Koha/installer/data/mysql/atomicupdate
Ian Walls d92c595dc4 Enhancement 7144: Floating Collections (per branch/itemtype)
Adds support for Floating Collections (i.e. items that don't automatically return
home when checked in at another branch) on a per branchcode/itemtype basis.

This patch adds a new column (returnbranch) to the default_circ_rules, default_branch_item_rules,
default_branch_circ_rules and branch_item_rules tables, after the 'holdsallowed' column.  While
this is coded as a varchar(15), the only currently supported values are 'homebranch', 'holdingbranch',
'noreturn' and NULL.

On upgrade, the value of HomeOrHoldingBranchReturn is used to populate the global default (which is
stored in default_circ_rules.returnbranch).

To access this value, use C4::Circulation::GetBranchItemRule.  This subroutine is altered to supply
an additional key, "returnbranch", containing this value (or 'homebranch' as a default).  No existing
usage of GetBranchItemRule should need to be modified.

The use of HomeOrHoldingBranchReturn is removed in AddReturn to instead use this subroutine.  This will
determine, on a more granular level, where the item should be transferred, after all is said and done.  If
'noreturn' is specified, then the material will remain at the branch doing the checking in.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Passes prove t xt t/db_dependent

I was able to make this feature work as advertised.
As noted above, if you want a floating rule applied across all branches, adding a single default rule won't suffice, you'll need to add the rule to all branches. That issue is not related to the functioning of *this* patch however.
2012-03-21 10:28:26 +01:00
..
0001-bug_2929-permit_to_define_fine_days_in_issuing_rules.pl Merge fixes and removing warnings 2009-09-30 11:30:40 +02:00
0004-Add_Some_Missing_fields_to_suggestions.pl Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
0005-Add_CAS_Configuration.pl Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
0007-Opac-search-history.pl Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
0008-opac-description-for-authorised-values.pl MT 1717 : Opac descriptions for authorised values 2009-09-30 11:30:28 +02:00
0009-patron-attr-display-checkout.pl Fix for Bug 5436 - Extended patron attributes display improvements 2011-09-23 15:35:54 +12:00
bug_6843_Renew_membership_from_expiry_or_current_date.pl Renew membership from expiry date or from current date based on a syspref 2012-02-01 22:53:40 +01:00
bug_7144-add-returnbranch-to-branch-item-issuing-rules.pl Enhancement 7144: Floating Collections (per branch/itemtype) 2012-03-21 10:28:26 +01:00
bug_7284_authority_linking_pt1 signed off Bug 7284: Authority matching improvements 2012-03-07 17:34:11 +01:00
bug_7284_authority_linking_pt2 signed off Bug 7284: Authority matching improvements 2012-03-07 17:34:11 +01:00
local_cover_images.pl Bug 1633: QA follow-up 2012-01-24 11:16:10 +01:00
oai_sets.sql Bug 6440: Implement OAI-PMH Sets 2012-03-20 11:38:26 +01:00
subscription_add_enddate.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00