Koha-clms/misc
Nick Clemens fe4314f529 Bug 29704: Add a triggered option to holds_reminder.pl
This patch adds an option to only trigger notices matching the number of
days waiting specified

You will need to define HOLD_REMINDER notices for the specific branch of the
patron and ensure the patron has hold reminder notices in their messaging preferences

TO test:
1 - Place a hold for a patron and check in to confirm
2 - Set the waiting date back a few days:
    update reserves set waitingdate = DATE_SUB(CURDATE(), INTERVAL 5 DAY);
3 - Run the cron and see that patron would be notified if running for 4 days weaiting
    perl misc/cronjobs/holds/holds_reminder.pl -v --days 4
4 - Apply patch
5 - perl misc/cronjobs/holds/holds_reminder.pl -v --days 4 --triggered
6 - Note patron would not be notified
7 - perl misc/cronjobs/holds/holds_reminder.pl -v --days 5 --triggered
8 - Note patron is notified when days waiting matches exactly

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit b392547ab6)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-04-22 13:15:32 +00:00
..
admin Bug 22824: Fix encoding of misc/admin/koha-preferences output 2021-03-04 16:18:42 +01:00
bin Bug 28519: Put CGI::Session::Serialize::yamlxs in lib directory 2021-06-18 11:23:42 -04:00
cronjobs Bug 29704: Add a triggered option to holds_reminder.pl 2022-04-22 13:15:32 +00:00
devel
…
interface_customization
…
load_testing
…
maintenance Bug 28352: Only check authorised values mapped to DB fields 2021-10-08 09:52:43 -04:00
migration_tools Bug 24564: Use the same tab as the other subfields within a field 2021-05-10 10:27:51 +02:00
release_notes Update release notes for 21.05.13 release 2022-03-24 18:59:41 +00:00
search_tools Bug 26312: (follow-up) Fix passing of exception messages 2021-04-16 11:48:31 +02:00
translator Fix translations for Koha 21.05.13 2022-03-24 18:41:45 +00:00
add_date_fields_to_marc_records.pl
…
background_jobs_worker.pl Bug 27756: Fork background jobs to prevent memory leak 2021-05-07 14:44:00 +02:00
batchCompareMARCvsFrameworks.pl
…
batchDeleteUnusedSubfields.pl
…
batchImportMARCWithBiblionumbers.pl
…
batchRebuildBiblioTables.pl
…
batchRebuildItemsTables.pl Bug 28399: Remove txn error from batchRebuildItemsTables.pl 2021-07-16 08:10:10 -04:00
batchRepairMissingBiblionumbers.pl
…
batchdeletebiblios.pl
…
check_sysprefs.pl
…
commit_file.pl
…
export_borrowers.pl
…
export_records.pl
…
exportauth.pl
…
import_patrons.pl
…
koha-install-log Bug 28519: Put CGI::Session::Serialize::yamlxs in lib directory 2021-06-18 11:23:42 -04:00
kohalib.pl
…
link_bibs_to_authorities.pl
…
load_yaml.pl
…
mod_zebraqueue.pl
…
perlmodule_ls.pl
…
perlmodule_rm.pl
…
recreateIssueStatistics.pl
…
sax_parser_print.pl
…
sax_parser_test.pl
…
sip_cli_emulator.pl Bug 28320: Add DB connection check to the SIP SC status message 2021-05-17 12:34:33 +02:00
stage_file.pl
…
z3950_responder.pl
…