Bug 41195 - Data Provider manual upload should specify file requirements
Summary: Data Provider manual upload should specify file requirements
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: ERM (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-05 19:49 UTC by John Vinke
Modified: 2025-11-06 09:45 UTC (History)
5 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Vinke 2025-11-05 19:49:44 UTC
The "manual upload" tab of the data provider page does not offer any guidance regarding what type of file should be uploaded. 

The counter specification allows for either a TSV file or a json file, so I presume it's one or both of these.

https://cop5.countermetrics.org/en/5.1/03-specifications/02-formats-for-counter-reports.html

I actually tested with both and didn't have luck with either.  The file will upload, but the job that gets invoked (ERM Usage Statistics SUSHI Harvester) fails.
Comment 1 Pedro Amorim 2025-11-06 09:45:30 UTC
Hi John, I agree that some additional guidance on the UI would help here.
I believe the current implementation of the manual file upload only considers CSV type of files, it utilizes the Text::CSV_XS module.
The expected file format matches the same format of the counter_log file generated after a SUSHI harvest.