Koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ
Benjamin Rokseth 57608fdecb Bug 7981: Remove HomeOrHoldingBranchReturn syspref
This patch removes HomeOrHoldingBranchReturn syspref and makes circ/returns.pl respect branch
circulation rules from C4::Circulation::GetBranchItemRule. Also transfer slip notice should reflect this.

Default should always be to return item to home branch.

Test plan:
- make sure syspref 'AutomaticItemReturn' is set to 'false'
- unset 'Default checkout, hold and return policy' or set 'Return policy' to 'Item returns home'
- checkout an item and do a checkin from different branch than items homebranch
- verify that you're prompted with a transfer message to item's home branch and that print slip matches

- set 'Return policy' to 'Item returns to issuing library'
- do a checkout and a checkin from branch different than item's home branch
- verify that you're not prompted with a transfer message and that holding library is your current branch

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Follow-up:
- Added 3 tests in t/db_dependent/Circulation_Branches.t to test AddReturn
  policies
- Removed HomeOrHoldingBranchReturn from sysprefs.sql
- Added notice on removing syspref in updatedatabase

QA edits:
- removed trailing whitespace in tests
- moved branchname lookup from returns.pl to template

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>

Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
2015-06-11 10:24:22 -03:00
..
bookcount.tt Bug 11616: remove jQuery tablesorter plugin 2014-01-31 15:24:01 +00:00
branchoverdues.tt Bug 11359: Add the borrower's cardnumber and phonenumber to the branch overdues report 2014-03-10 20:25:26 +00:00
branchtransfers.tt Bug 2780 - Capitalize strings consistently (Circulation) 2012-04-10 10:03:30 +02:00
circulation-home.tt Bug 11201 - QA follow-up - Pending on-site checkouts 2015-03-31 11:30:55 -03:00
circulation.tt Bug 12320: Remove deprecated construct to delete cookie holdfor 2015-06-04 10:07:26 -03:00
offline-mf.tt Bug 12118 - remove unnecessary YUI assets included in offline circ manifest 2014-04-25 15:25:34 +00:00
offline.tt Bug 12666 - Fix poor HTML from circ/offline.tt 2014-08-15 14:59:17 -03:00
on-site_checkouts.tt Bug 11201 - QA follow-up - Pending on-site checkouts 2015-03-31 11:30:55 -03:00
overdue.tt Bug 13549: Add cardnumber to overdue circulation report overdue.pl 2015-03-31 14:17:57 -03:00
pendingreserves.tt Bug 13744: Fix datatables paging on 'Holds to pull' report 2015-03-07 21:10:28 +01:00
printslip.tt Bug 12062: Follow up - adds missing ) 2014-07-07 10:32:24 -03:00
renew.tt Bug 13941: [2/2] Fix <body> tags missing id/class 2015-04-24 09:47:38 -03:00
reserveratios.tt Bug 13299 - Add home library column to the holds ratios report 2015-02-09 15:24:44 -03:00
returns.tt Bug 7981: Remove HomeOrHoldingBranchReturn syspref 2015-06-11 10:24:22 -03:00
selectbranchprinter.tt Bug 12744 - Set language in staff client should have 'Cancel' link 2014-08-24 13:23:41 -03:00
stats.tt Bug 7760 - Add ids and classes to every staff page to help with customizaton (circulation) 2012-03-22 18:12:27 +01:00
transfer-slip.tt Bug 9265 - Switch to HTML5 doctype in OPAC and staff client 2013-01-31 11:47:04 -05:00
transferstoreceive.tt Bug 12089: Remove use of dt_add_type_uk_date() - Circulation 2014-04-28 18:40:29 +00:00
view_holdsqueue.tt Bug 14142 - Holds queue viewer only displays first subtitle from marc keyword mappings 2015-06-04 11:14:58 -03:00
waitingreserves.tt Bug 12692 - Markup improvements to holds awaiting pickup report 2014-11-10 12:22:13 -03:00