| Summary: | Expand cronjob erm_run_harvester.pl with parameter for providers | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Michaela Sieber <michaela.sieber> |
| Component: | Command-line Utilities | Assignee: | Raphael Straub <raphael.straub> |
| Status: | Signed Off --- | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | CC: | clemens.tubach, jan.kissig, katrin.fischer, robin |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | Sponsored | Crowdfunding goal: | 0 |
| Patch complexity: | Small patch | Documentation contact: | |
| Documentation submission: | Text to go in the release notes: | ||
| Version(s) released in: | Circulation function: | ||
| Attachments: |
Bug 41062: Add an option to erm_run_harvester.pl to specify provider IDs
Bug 41062: Add an option to erm_run_harvester.pl to specify provider IDs |
||
|
Description
Michaela Sieber
2025-10-21 11:55:40 UTC
Created attachment 188268 [details] [review] 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). 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) Created attachment 188440 [details] [review] 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> |