When a library has a saved report that they would like to schedule as a cron job, a ticket can be sent to ByWater to set it up. A few more key details are required for the ByWater team to set up the cron report:
Parameters
A report that a library would like to be scheduled through a cron cannot have parameters. Report parameters would be a date range or shelving location selected from a dropdown list. If a library does have a report that they would like to schedule and it does have parameters, we can help with the adjustment of the report.
For example, if the report asked for a date range, the report can be manipulated to look at the last 30 days:

SELECT *
FROM items
WHERE homebranch = <<Pick your branch|branches>>
Instead, the report would need to be changed to specifically say what branch the home branch should be equal to:

SELECT *
FROM items
WHERE homebranch =’EAST’
If your library had a report to show new items in a date range such as this one:

SELECT items.dateaccessioned,biblio.title,items.itemcallnumber
FROM items
LEFT JOIN biblioitems ON (items.biblioitemnumber=biblioitems.biblioitemnumber)
LEFT JOIN biblio ON (biblioitems.biblionumber=biblio.biblionumber)
WHERE DATE (items.dateaccessioned) BETWEEN <<Between (yyyy-mm-dd)|date>> AND <<and (yyyy-mm-dd)|date>>
ORDER BY items.itemcallnumber ASC
An adjustment could be and this would provide the library with a list of new items in the last 30 days:

SELECT items.dateaccessioned,items.itemcallnumber,biblio.title,biblio.author
FROM items
LEFT JOIN biblioitems ON (items.biblioitemnumber=biblioitems.biblioitemnumber)
LEFT JOIN biblio ON (biblioitems.biblionumber=biblio.biblionumber)
WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= items.dateaccessioned
ORDER BY biblio.title ASC