Bug 41195

Summary: Data Provider manual upload should specify file requirements
Product: Koha Reporter: John Vinke <jvinke>
Component: ERMAssignee: Jonathan Druart <jonathan.druart>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: jonathan.druart, jonathan.field, martin.renvoize, matt.blenkinsop, pedro.amorim
Version: unspecified   
Hardware: All   
OS: All   
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:

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.