Bug 41182 - Sushi harvest should send a full date
Summary: Sushi harvest should send a full date
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: ERM (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-04 17:57 UTC by Nick Clemens (kidclamp)
Modified: 2025-11-04 18:02 UTC (History)
5 users (show)

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


Attachments
Bug 41182: Pass 10 digit date to SUSHI (1.19 KB, patch)
2025-11-04 18:02 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2025-11-04 17:57:58 UTC
A library attempting to get counter reports from Proquest found they were failing.

In testing, I was able to narrow the problem down to the date range.

We send:
https://sushi.proquest.com/counter/r5/reports/pr?begin_date=2024-11&end_date=2025-10&customer_id={ID}&api_key={KEY}

They expect:
https://sushi.proquest.com/counter/r5/reports/pr?begin_date=2024-11-01&end_date=2025-10-31&customer_id={ID}&api_key={KEY}

From what I can tell in the standard:
https://www.niso.org/sites/default/files/schema-files/sushi1_7_ReportRequest.png
Date is expected as yyyy-mm-dd

We should send the full date and not truncate
Comment 1 Nick Clemens (kidclamp) 2025-11-04 18:02:05 UTC
Created attachment 189044 [details] [review]
Bug 41182: Pass 10 digit date to SUSHI