Koha-clms/misc
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
..
admin
…
bin
…
cronjobs Bug 41062: Add an option to erm_run_harvester.pl to specify provider IDs 2026-04-23 09:24:47 -06:00
devel Bug 38365: Add context to Koha::Devel::Files in add_csp_nonces.pl 2026-03-16 11:57:41 +01:00
interface_customization
…
maintenance
…
migration_tools Bug 28528: (QA follow-up) Remove "Koha 3" reference 2026-02-26 09:04:10 -07:00
release_notes
…
search_tools
…
translator Bug 41216: (QA follow-up): fix path of xt/author/tt_valid.t in comment 2026-04-10 09:48:11 -06:00
workers
…
add_date_fields_to_marc_records.pl
…
add_statistics_borrowers_categorycode.pl
…
batchCompareMARCvsFrameworks.pl
…
batchDeleteUnusedSubfields.pl
…
batchImportMARCWithBiblionumbers.pl
…
batchRebuildBiblioTables.pl
…
batchRebuildItemsTables.pl
…
batchRepairMissingBiblionumbers.pl
…
batchdeletebiblios.pl
…
check_sysprefs.pl
…
commit_file.pl
…
export_borrowers.pl
…
export_records.pl
…
import_patrons.pl
…
koha-install-log
…
link_bibs_to_authorities.pl
…
load_yaml.pl
…
mod_zebraqueue.pl
…
process_ill_updates.pl
…
recreateIssueStatistics.pl
…
sax_parser_print.pl
…
sax_parser_test.pl
…
sip_cli_emulator.pl
…
stage_file.pl
…
z3950_responder.pl
…