f455f0b1ab
To Test: Set up a borrower to receive due and/or predue notices. Define your predue and/or due notice to use <<items.content>> Give your borrower an issue that will trigger a notice to be sent (Example: Henry Acevedo has checked out a book that will be coming due tomorrow, he wants to receive predue notices 1 day in advance) On the command line, run (your paths may vary, these are mine): sudo env KOHA_CONF=/etc/koha/sites/devlibrary/koha-conf.xml PERL5LIB=/usr/share/koha/lib perl advance_notices.pl -c -n Note that the date listed is the due date, not the issue date. Then run: sudo env KOHA_CONF=/etc/koha/sites/devlibrary/koha-conf.xml PERL5LIB=/usr/share/koha/lib perl advance_notices.pl -c -n --itemscontent=issuedate,title,author,barcode Note that the date listed is the issue date, not the date due. Also run sudo env KOHA_CONF=/etc/koha/sites/devlibrary/koha-conf.xml PERL5LIB=/usr/share/koha/lib perl advance_notices.pl --help Should show the help. sudo env KOHA_CONF=/etc/koha/sites/devlibrary/koha-conf.xml PERL5LIB=/usr/share/koha/lib perl advance_notices.pl --man Should show the man page version of the help. sudo env KOHA_CONF=/etc/koha/sites/devlibrary/koha-conf.xml PERL5LIB=/usr/share/koha/lib perl advance_notices.pl Should show the help. This script requires confirmation before running (-c or nothing is done). Note that the documentation refers to the --itemscontent= option and now allows --man as well as --help. Also it is a proper POD. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Works as advertised according to the fine test plan. Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> |
||
---|---|---|
.. | ||
holds | ||
rss | ||
social_data | ||
stats | ||
thirdparty | ||
advance_notices.pl | ||
backup.sh | ||
batch_anonymise.pl | ||
build_browser_and_cloud.pl | ||
cart_to_shelf.pl | ||
check-url-quick.pl | ||
check-url.pl | ||
cleanup_database.pl | ||
cloud-kw.pl | ||
cloud-sample.conf | ||
CONFIGURE.gmail | ||
create_koc_db.pl | ||
crontab.example | ||
delete_expired_opac_registrations.pl | ||
delete_unverified_opac_registrations.pl | ||
fines.pl | ||
gather_print_notices.pl | ||
import_webservice_batch.pl | ||
j2a.pl | ||
longoverdue.pl | ||
MARC21_parse_test.pl | ||
overdue_notices.pl | ||
printoverdues.sh | ||
process_message_queue.pl | ||
purge_suggestions.pl | ||
runreport.pl | ||
serialsUpdate.pl | ||
services_throttle.pl | ||
staticfines.pl | ||
update_totalissues.pl |