Use the juvenile setting when removing juvenile flag.
authorSteven Callender <stevecallender@esilibrary.com>
Thu, 14 Nov 2013 20:07:33 +0000 (15:07 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 19 Aug 2015 13:57:46 +0000 (09:57 -0400)
commit3369cbb9a0944585c2256e5c73cf89b57e2c642d
treef5bc2098ee91fdf5dd34aecc14d184cdb9cfe03c
parent51426a02c7f8db854363f09d9248d9f701816dfa
Use the juvenile setting when removing juvenile flag.

When calling the API open-ils.storage.actor.user.juvenile_to_adult, most notably
from the juv_to_adult.srfsh support script, instead of strictly using the
hardcoded passed value, first check the global.juvenile_age_threshold from
the settings based on the users home library. If the setting does not exist,
then fall back on the hard coded passed value.

This will allow each library to be able to set different juvenile thresholds
if needed and at the very least, give control to the settings rather than
rely strictly on the hardcoded passed value.

Signed-off-by: Steven Callender <stevecallender@esilibrary.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm