Bug 29100: Add checkouts data loop to predue notices script ( advance_notices.pl )
authorKyle Hall <kyle@bywatersolutions.com>
Thu, 23 Sep 2021 17:24:42 +0000 (13:24 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 7 Feb 2023 18:36:21 +0000 (15:36 -0300)
commit2114c70d11b077d83db4bdf9f3e85598e96cf2cb
treea3a2643c9508a0eeecb458a6a09643b195c0cf4e
parent0481f1d74e7d6175e1eb31b299f01c7cc7ce6090
Bug 29100: Add checkouts data loop to predue notices script ( advance_notices.pl )

Predue / due notices are limited to using itemscontent to display checkouts data. It would be nice to make all the checkouts data available for those notices so that libraries could format that data more nicely if they wish.

1) Apply this patch
2) For DUE and PREDUE notices, set the message body to the following:
Title: [% issue.title %]
3) For DUEDGST and PREDUEDGST notices, set the message body to the following:
Titles:
[% FOREACH i IN issues %]
* [% i.title %]
[% END %]
4) Generate PREDUE and DUE notices for patrons including digests
5) Verify those notices contain the checkout titles

Signed-off-by: Felicity Brown <Felicity.Brown@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
misc/cronjobs/advance_notices.pl