https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43944

--- Comment #7 from Nick Clemens (kidclamp) <[email protected]> ---
Created attachment 210406
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210406&action=edit
Bug 43944: Correctly format the date in counter file logic

This patch updates counter file logic to work with a Mmm-yyyy format instead of
Mmm yyyy. Currently, manual imports of COUNTER compliant files fail to add any
monthly usage data, as compliant files use the Mmm-yyyy format for month
columns. When parsing a file we still allow the Mmm yyyy format to prevent
older files from failing

Test plan:
1) Visit
https://cop5.countermetrics.org/en/5.1.1/appendices/g-sample-counter-reports-and-standard-views.html
   and download the TR example file (TSV), saving it as CSV
2) Enable the ERMModule system preference
3) Create a usage data provider manually (no need for credentials) with report
type TR
4) Manually upload the file
5) Note that the background job reports "Titles added: xx" but "Monthly usages
added: 0"
   and that no monthly usage data is present:
   select count(*) from erm_usage_mus;
6) Apply the patches and restart_all
7) Retry the import, monthly usage data should now be added

Assisted-by: Sonnet 5.5 (Anthropic)
Signed-off-by: Michaela Sieber <[email protected]>
Signed-off-by: Nick Clemens <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to