Bug 27499

Summary: serialsUpdate doesn't create all late issues
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: Command-line UtilitiesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: robin
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28950
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: New subscription form 2/2

Description Caroline Cyr La Rose 2021-01-20 16:42:23 UTC
Created attachment 115449 [details]
New subscription form 2/2

I'm not sure if this is intended behaviour or not. I was trying to get a subscription with lots of late issues to test something. But every time I run serialsUpdate, it only create 1-3 issues instead of all the late issues up to today.

To test:
1) Go to Serials
2) Create a subscription for a weekly serial starting 2020-01-01 (I attached a screenshot of my new subscription form 2/2)
3) Go to serial collection
-- There should be the first issue of the subscription, 2020-01-01
4) Go to the terminal and run
./misc/cronjobs/serialsUpdate.pl -c -v
5) Go back to the serial collection
-- Only the next issue has been created (2020-01-08)

I would have expected this to create all missing issues from 2020-01-01 to 2021-01-13.

Right now, it only replaces the "Generate next" button.
Comment 1 Caroline Cyr La Rose 2021-01-20 16:43:38 UTC
I understand if this is the intended behaviour, as it is supposed to be run every day; eventually it should catch up. And my use is a but outside the norm.
Comment 2 Katrin Fischer 2021-02-06 19:11:18 UTC
I believe it might be the intended behaviour right now - we run this daily. But I see merit in the other behavior - maybe it could be an option?