Update longoverdue.pl cron job to manage setting lost values.
This patch deprecates the NoReturnSetLost system preference, which, as it
turns out, was not implemented anyway. New longoverdue script allows one to
specify on the commandline system-wide delays for changing items to different
lost statuses, and optionally charge for the item.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
@ -58,7 +58,6 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
INSERTINTO`systempreferences`(variable,value,explanation,options,type)VALUES('memberofinstitution',0,'If ON, patrons can be linked to institutions',NULL,'YesNo');
INSERTINTO`systempreferences`(variable,value,explanation,options,type)VALUES('MIME','EXCEL','Define the default application for exporting report data','EXCEL|OPENOFFICE.ORG','Choice');
INSERTINTO`systempreferences`(variable,value,explanation,options,type)VALUES('noissuescharge',5,'Define maximum amount withstanding before check outs are blocked','','Integer');
INSERTINTO`systempreferences`(variable,value,explanation,options,type)VALUES('NoReturnSetLost',99,'(if you have fines only) After this limit a non returned item is automatically marked as lost, and the itemprice is charged to the patron','','Integer');
INSERTINTO`systempreferences`(variable,value,explanation,options,type)VALUES('NotifyBorrowerDeparture',30,'Define number of days before expiry where circulation is warned about patron account expiry',NULL,'Integer');
INSERTINTO`systempreferences`(variable,value,explanation,options,type)VALUES('OpacAuthorities',1,'If ON, enables the search authorities link on OPAC',NULL,'YesNo');
INSERTINTO`systempreferences`(variable,value,explanation,options,type)VALUES('opacbookbag',1,'If ON, enables display of Cart feature','','YesNo');
@ -59,7 +59,6 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
INSERTINTO`systempreferences`(variable,value,explanation,options,type)VALUES('memberofinstitution','0','Vos adhérents sont ils membres d''une institution ?',NULL,'YesNo');
INSERTINTO`systempreferences`(variable,value,explanation,options,type)VALUES('MIME','OPENOFFICE.ORG','Ce paramètre définit l''application par défaut à ouvrir lorsqu''on télécharge un fichier (OpenOffice.org ou MS-Excel habituellement)','EXCEL|OPENOFFICE.ORG','Choice');
INSERTINTO`systempreferences`(variable,value,explanation,options,type)VALUES('noissuescharge','5','Ce paramètre définit le montant maximal des dettes au delà duquel le lecteur ne peut plus emprunter','','Integer');
INSERTINTO`systempreferences`(variable,value,explanation,options,type)VALUES('NoReturnSetLost','99','(uniquement si vous avez des amendes) Après cette limite, un document non retourné est automatiquement marqué perdu, et le cout du document est imputé à l''adhérent ','','Integer');
INSERTINTO`systempreferences`(variable,value,explanation,options,type)VALUES('NotifyBorrowerDeparture','0','Ce paramètre permet d''être prévenu N jours avant l''expiration de la carte d''un adhérent, à la banque de prêt.','','Integer');
INSERTINTO`systempreferences`(variable,value,explanation,options,type)VALUES('DebugLevel','2','Définit le niveau d''affichage des erreurs en cas de problème : 0= aucun affichage, 1= un peu, 2=tout (peut être risqué pour la sécurité)','0|1|2','Choice');
INSERTINTO`systempreferences`(variable,value,explanation,options,type)VALUES('NoZebra','1','If ON, Zebra indexing is turned off, simpler setup, but slower searches','','YesNo');
my$itemnos_sth=$dbh->prepare("SELECT items.itemnumber FROM issues,items WHERE items.itemnumber=issues.itemnumber AND DATE_SUB(CURDATE(),INTERVAL 90 DAY) > date_due AND (itemlost=0 OR itemlost IS NULL)");