Koha::ERM::EUsage::UsageDataProvider - Koha ErmUsageDataProvider Object class
Getter/setter for counter_files for this usage data provider
Enqueues a background job to process a COUNTER file that has been uploaded
Enqueues one harvest background job for each report type in this usage data provider
$ud_provider->harvest_sushi( { begin_date => $args->{begin_date}, end_date => $args->{end_date}, report_type => $args->{report_type} } );
Runs this usage data provider's SUSHI harvester Builds the URL query and requests the COUNTER 5 SUSHI service
COUNTER SUSHI api spec: https://app.swaggerhub.com/apis/COUNTER/counter-sushi_5_0_api/5.0.2
Begin date of the SUSHI harvest
End date of the SUSHI harvest
Report type to run this harvest on
$self->set_background_job_callbacks($background_job_callbacks);
Sets the background job callbacks
Background job callbacks
Tests the connection of the harvester to the SUSHI service and returns any alerts of planned SUSHI outages
Method to embed erm_usage_titles to titles for report formatting
Method to embed erm_usage_muses to titles for report formatting
Method to embed erm_usage_platforms to platforms for report formatting
Method to embed erm_usage_items to items for report formatting
Method to embed erm_usage_databases to databases for report formatting
Build the URL query params for COUNTER 5 SUSHI request
Checks whether the url ends in a trailing "/" and adds one if not
my $url = _validate_url($url, 'harvest')
$caller is either the harvest_sushi function ("harvest") or the test_connection function ("status")
Checks whether a url string ends in a "/" before we concatenate further params to the end of the url
Checks and handles possible errors in the SUSHI response Additionally, adds background job report message(s) if that is the case
Checks whether a counter file size exceeds the size allowed by the database or not Additionally, adds a background job report message if that is the case
Creates and sends the request based on a provided url Also handles any redirects