Koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ
Nick Clemens 78a7d5aada Bug 14576: Allow arbitrary automatic update of location on checkin
This patch adds a new syspref "UpdateItemLocationOnCheckin" which
accepts pairs of shelving locations.  On check-in the items location is
compared ot the location on the left and, if it matches, is updated to
the location on the left.

This preference replaces ReturnToShelvingCart and
InProcessingToShelvingCart preferences.  The update statement should
insert values that replciate these functions.  Note existing
functionality of all items in PROC location being returned to
permanent_location is preserved by default.  Also, any items issued from
CART location will be returned to their permanent location on issue (if
it differs)

Special values for this pref are:
_ALL_ - used on left side only to affect all items
_BLANK_ - used on either side to match on/set to blank (actual blanks
        will work, but this is an easier to read option)
_PERM_ - used on right side only to return items to permanent location

Test Plan:
1) Apply this patch
2) Run updatedatabase.pl
3) Set the new system preference UpdateitemLocationOnCheckin
   to the following (assuming sample data):
   NEW: FIC
   FIC: GEN
4) Create an item, set its location to NEW
5) Check in the item, note its location is now FIC
6) Check in the item again, note its location is now GEN
7) Check in the item again, note its location remains GEN
8) Test using _ALL_, _BLANK_ and _PERM_ for updates
9) Try entering various incorrect syntax in the pref and note you are warned

Sponsored by:
    Arcadia Public Library (http://library.ci.arcadia.ca.us/)
    Middletown Township Public Library (http://www.mtpl.org/)
    Round Rock Public Library (https://www.roundrocktexas.gov/departments/library/)

Signed-off-by: Michal Denar <black23@gmail.com>

Signed-off-by: Liz Rea <wizzyrea@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-04-25 11:36:23 +00:00
..
article-requests.tt Bug 20102: Remove attribute "text/css" for <style> element used in staff client templates 2019-02-19 13:52:15 +00:00
bookcount.tt Bug 21449: Update two-column templates with Bootstrap grid: Circulation part 2 2019-01-30 11:59:40 +00:00
branchoverdues.tt Bug 21449: Update two-column templates with Bootstrap grid: Circulation part 2 2019-01-30 11:59:40 +00:00
branchtransfers.tt Bug 22422: improve item location display with class "shelvingloc" 2019-03-11 10:40:32 +00:00
checkout-notes.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
circulation-home.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
circulation.tt Bug 21034: Re-indent circulation.tt 2019-04-24 11:08:54 +00:00
circulation_batch_checkouts.tt Bug 17171: (QA follow-up) Using patron-title.inc for names 2019-04-17 12:25:26 +00:00
offline-mf.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
offline.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
on-site_checkouts.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
overdue.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
pendingreserves.tt Bug 22536: Display problem in Holds to Pull report 2019-03-28 12:33:06 +00:00
printslip.tt Bug 21526: (follow-up) Use the 'url' filter when needed 2018-11-12 16:35:44 -03:00
renew.tt Bug 22054: Updated the error message for attempting to renew an onsite checkout 2019-01-17 02:23:27 +00:00
request-article.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
reserveratios.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
returns.tt Bug 14576: Allow arbitrary automatic update of location on checkin 2019-04-25 11:36:23 +00:00
selectbranchprinter.tt Bug 21569: Update two-column templates with Bootstrap grid: Circulation part 3 2019-01-11 12:27:04 +00:00
transferstoreceive.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
view_holdsqueue.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
waitingreserves.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00