Bug 11629 - Add ability to update not for loan status on checkin
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 28 Jan 2014 16:43:50 +0000 (11:43 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 26 May 2014 03:21:53 +0000 (03:21 +0000)
commit8967427ee2aa0e669a4f3d2eddebffe95747eb7e
tree93a1ac97bf2411437dd6e0f3b3d6c70f7f31ad42
parentf09bdf7142444e2461d1e71656e69f5139133500
Bug 11629 - Add ability to update not for loan status on checkin

Some libraries would like to streamline the cataloging process my
automatically updating notforloan values on checkin. For example, an
item is set to notforloan of -1 ( ordered ). The item, is received,
processed, and checked in for the first time before being shelved.
The checkin automatically changes the nfl value from -1 to 0. The
same workflow could be used for damaged items as well.

Test Plan:
1) Apply this patch
2) Run updatedatabase.pl
3) Set the new system preference UpdateNotForLoanStatusOnCheckin
   to the following:
-1: 0
0: 1
4) Create an item, set its notforloan value to -1
5) Check in the item, note its not for loan value is now 0
6) Check in the item again, note its not for loan value is now 1
7) Check in the item again, note its not for loan value reamins 1

Signed-off-by: Havilah Lyon <havilah@aflibrary.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Testing notes on last patch.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Circulation.pm
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref