# SCHEDULED JOBS:
# m h dom mon dow user command
-# OVERDUE NOTICES
-0 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/overdue_notices.pl -t
-# FINES
-5 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/fines.pl
+# AUTOMATIC RENEWAL + FINES + OVERDUE NOTICES
+# Sequence is important - renew what can be renewed, charge fines for the rest, print fine amount into overdue notices
+5 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/automatic_renewals.pl; $KOHA_CRON_PATH/fines.pl; $KOHA_CRON_PATH/overdue_notices.pl -t
# ADVANCE NOTICES
10 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/advance_notices.pl -c
+# MEMBERSHIP_EXPIRY NOTICES
+
+15 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/membership_expiry.pl -c
+
+# SERIALS UPDATE
+18 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/serialsUpdate.pl -c
+
# PROCESS LONG OVERDUES
# updates item status from available to longoverdue for items long overdue
# 19 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/longoverdue.pl --lost 90=1 --confirm
# Cancel expired holds
0 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/holds/cancel_expired_holds.pl >/dev/null 2>&1
+# Auto unsuspend holds
+0 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/holds/auto_unsuspend_holds.pl > /dev/null 2>&1
+
# Update popularity counts for biblio records
0 2 * * * __KOHA_USER__ $KOHA_CRON_PATH/update_totalissues.pl --commit=1000 --use-stats --incremental --interval=1d >/dev/null 2>&1
# for both authorities and bibs
*/10 * * * * __KOHA_USER__ $KOHA_CRON_PATH/../migration_tools/rebuild_zebra.pl -b -a -z >/dev/null
-# services_throttle -- resets the xISBN service
-59 23 * * * __KOHA_USER__ $KOHA_CRON_PATH/services_throttle.pl > /dev/null 2>&1
-
# clean up databases nightly. Be sure not to run this with --sessions during a time when the system is in use!
-16 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/cleanup_database.pl --sessions --zebraqueue 10
+16 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/cleanup_database.pl --sessions --zebraqueue 10 --list-invites --temp-uploads
# delete old purchase suggestions weekly. Replace XX with a number to define the age of suggestions to delete.
-@weekly __KOHA_USER__ $KOHA_CRON_PATH/purge_suggestions.pl --days XX > /dev/null 2>&1
+@weekly __KOHA_USER__ $KOHA_CRON_PATH/purge_suggestions.pl --confirm --days XX > /dev/null 2>&1
+
+# share_usage_with_koha_community.pl every months
+0 0 1 * * __KOHA_USER__ $KOHA_CRON_PATH/share_usage_with_koha_community.pl
+
+# run merge authorities
+20 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/merge_authorities.pl -b