Koha-clms/misc/cronjobs
Raphael Straub 43d32f77d6
Bug 41062: Add an option to erm_run_harvester.pl to specify provider IDs
This patch adds a new option to define the providers in cronjob erm_run_harvester.pl
that are used to run the SUSHI harvesting for COUNTER Reports in the ERM module.
Use parameter --provider-id or -p
The parameter provider_id is repeatable.
If the parameter for provider_id is not used all active providers will be harvested (as before).
The script will check if these providers are active (as before).

Script to run on ktd: perl misc/cronjobs/erm_run_harvester.pl --begin-date 2025-09-01 --end-date 2025-09-30

To test:
- Run the script and make sure that all active providers are harvested.
- Apply patch.
- Run the script with only one provider-id.
- Run the script with two provider-ids by using -p 1 -p 2
- Run the script without the parameter.
- Make sure that in all cases only active providers are harvested.
- Sign off :-).

Sponsored-by: Karlsruhe Institute of Technology (KIT)
Signed-off-by: Jan Kissig <bibliothek@th-wildau.de>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2026-04-23 09:24:47 -06:00
..
holds Bug 35700: Holds reminder cronjob - Fix --triggered switch if the day to send notice hits concurrent holidays 2025-10-09 14:58:38 -06:00
recalls Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
rss Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
social_data Bug 40748: Check for HTTP URLs and skip shell when using system() 2025-09-26 09:10:20 -06:00
thirdparty Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
CONFIGURE.gmail Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
advance_notices.pl Bug 41393: Set the correct reply to address for advance notices 2026-02-26 09:04:11 -07:00
anonymize_last_borrowers.pl Bug 23260: Update cron to exit if AnonymousPatron is not set 2026-03-05 08:33:48 -07:00
archive_purchase_suggestions.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
automatic_checkin.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
automatic_item_modification_by_age.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
automatic_renewals.pl Bug 23415: (QA follow-up) Fix spelling: oweing -> owing 2026-03-22 23:15:45 +01:00
backup.sh Bug 9235 - Hardcoded values in cronjobs/backup.sh 2012-12-21 07:20:50 -05:00
batch_anonymise.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
build_browser_and_cloud.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
cart_to_shelf.pl Bug 41076: Adjust our perl tidiness for v20250105 2026-02-05 09:03:51 -07:00
check-url-quick.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
cleanup_database.pl Bug 41967: Ensure --cards argument accepts an integer in cleanup_database.pl 2026-04-16 15:54:07 -06:00
cloud-kw.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
cloud-sample.conf
…
create_koc_db.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
crontab.example Bug 39250: Add archive_purchase_suggestions.pl to cron.daily commented 2025-03-07 15:41:17 +01:00
debar_patrons_with_fines.pl Bug 39532: Use new FINES restriction type to avoid conflict with SUSPENSION 2025-11-21 08:41:51 -07:00
delete_items.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
delete_patrons.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
delete_records_via_leader.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
edi_cron.pl Bug 41851: (QA follow-up) Log completion before exiting 2026-04-17 09:18:03 -06:00
erm_run_harvester.pl Bug 41062: Add an option to erm_run_harvester.pl to specify provider IDs 2026-04-23 09:24:47 -06:00
fines.pl Bug 41076: Adjust our perl tidiness for v20250105 2026-02-05 09:03:51 -07:00
gather_print_notices.pl Bug 35267: (follow-up) Fix PrintSlipCSS accordion and CSS in HTML output 2026-04-17 09:18:09 -06:00
harvest_oai.pl Bug 41076: Adjust our perl tidiness for v20250105 2026-02-05 09:03:51 -07:00
import_webservice_batch.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
longoverdue.pl Bug 35612: Recorded branch context for OVERDUE, LOST, and PROCESSING fees 2026-02-27 11:38:49 -07:00
marc_ordering_process.pl Bug 40953: marc_ordering_process.pl broken due to accidental newline 2025-10-06 09:15:23 -06:00
membership_expiry.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
merge_authorities.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
notice_unprocessed_suggestions.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
overdue_notices.pl Bug 41316: Use patrons homelibrary for selecting overdues that should be sent 2026-03-05 08:33:54 -07:00
patron_emailer.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
plugins_nightly.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
printoverdues.sh Bug 10127 : Printoverdues.sh should tar only pdf files 2013-07-16 15:47:13 +00:00
process_message_queue.pl Bug 41076: Adjust our perl tidiness for v20250105 2026-02-05 09:03:51 -07:00
purge_suggestions.pl Bug 41076: Adjust our perl tidiness for v20250105 2026-02-05 09:03:51 -07:00
reconcile_balances.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
remove_temporary_edifiles.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
restrict_patrons_with_failed_notices.pl Bug 39749: RestrictPatronsWithFailedNotices should not trigger for DUPLICATE_MESSAGE failures 2026-03-05 08:33:52 -07:00
runreport.pl Bug 33308: (QA follow-up) Use simplified File::Transport API from bug 40811 2026-01-21 15:28:18 -07:00
serialsUpdate.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
sftp_file.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
share_usage_with_koha_community.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
sitemap.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
staticfines.pl Bug 41076: Adjust our perl tidiness for v20250105 2026-02-05 09:03:51 -07:00
stockrotation.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
update_patrons_category.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
update_totalissues.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
writeoff_debts.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00