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)
committerPedro Amorim <pedro.amorim@ptfs-europe.com>
Thu, 9 Feb 2023 12:57:57 +0000 (11:57 -0100)
commit4205d588fdd11311c12e78494af8224d899f6e1d
tree375608c82e53bbc623939e74fd857af628748b83
parentf053ed8f7e126c1726c5593fe6b3311e24887137
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>
(cherry picked from commit 2114c70d11b077d83db4bdf9f3e85598e96cf2cb)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
misc/cronjobs/advance_notices.pl