Koha/koha-tmpl/intranet-tmpl/prog/js/vue/fetch
Pedro Amorim 2951edc697
Bug 34587: SUSHI COUNTER Harvester
This commit is a squash of the following:

SUSHI harvesting process in the data providers class:
* Builds the URL query and requests the SUSHI service endpoint
* Parses the JSON response and builds the csv COUNTER file and adds it to counter_files table

Usage statistics data processing:
* When a counter_files entry is stored, CounterFile.pm will:
* Parse the csv COUNTER file and
* Add a usage_titles entry for each unique title in the COUNTER file
* Add the title's respective erm_usage_mus (monthly usage) entries, repeating for each metric_type
* Add the title's respective erm_usage_yus (yearly usage) entries, repeating for each metric_type

Harvesting cronjob;

'Run now':
* API endpoint to start the harvesting process of a data provider
* Button in the data providers list to run the harvesting process for each data provider upon clicked

ERM SUSHI: Background job

Job progress is updated to total amount of usage titles after retrieving
the response from SUSHI;
Job warning and success messages are added accordingly
Redundant duplicate titles will not be added
Redundant duplicate monthly and yearly usage statistics will not be added
Data provider harvest background job harvests once per report_type

Enqueue one background job for each report_type in the usage data provider

Update the way we measure progress in the background job.
It now uses the COUNTER report body rows instead of SUSHI response results.
We're now incrementing and showing the number of skipped mus, skipped
yus, added mus and added yus
There's a bug in the way we calculate yus
Updates to background job progress bar - Depends on 34468

Signed-off-by: Jessica Zairo <jzairo@bywatersolutions.com>
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-31 16:45:58 -03:00
..
acquisition-api-client.js Bug 34219: Allow getAll to receive additional URL parameters 2023-08-29 14:37:17 -03:00
api-client.js Bug 30708: Vue app 2023-10-18 15:41:40 -03:00
authorised-values-api-client.js Bug 30708: Vue app 2023-10-18 15:41:40 -03:00
erm-api-client.js Bug 34587: SUSHI COUNTER Harvester 2023-10-31 16:45:58 -03:00
http-client.js Bug 35199: (bug 34448 follow-up) Fix error handling in http-client.js 2023-10-31 16:45:50 -03:00
item-api-client.js Bug 30708: Fix conflict with 34055 and 34219 2023-10-18 15:42:02 -03:00
patron-api-client.js Bug 33625: Pretty .js files for vue 2023-05-16 11:38:04 +02:00
preservation-api-client.js Bug 33547: Add print slip 2023-10-23 11:33:51 -03:00
system-preferences-api-client.js Bug 34369: Pass csrf token from syspref API client (for Vue app) 2023-09-25 18:18:40 -03:00