]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Use the juvenile setting when removing juvenile flag. collab/Callender/auto_juvenile_use_setting
authorSteven Callender <stevecallender@esilibrary.com>
Thu, 14 Nov 2013 20:07:33 +0000 (15:07 -0500)
committerSteven Callender <stevecallender@esilibrary.com>
Thu, 14 Nov 2013 20:07:33 +0000 (15:07 -0500)
commit9f24e46782027a4ea19120116fdba13bb6939571
treeb437e74c1a4d4ba9e44f98d3f6c37e4940d03f20
parent4da378fda14446fa279f693d758eef7e5597b1e2
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm