Bug 10720: fix issue that prevented use of HTML tags in overdue notices
authorSophie Meynieux <sophie.meynieux@biblibre.com>
Tue, 13 Aug 2013 16:14:21 +0000 (18:14 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 1 Nov 2013 00:28:04 +0000 (00:28 +0000)
commit394be84dcd65a4569d0467bc12b99dbd6341fc43
treed328e85fee2156484bc5dfefb8419c2b9107bebf
parent9abfb7a7645388b159bfb0a249d98f9fe29cde1f
Bug 10720: fix issue that prevented use of HTML tags in overdue notices

Substitution term in overdue notices shouldn't be removed if they don't match.
It prevents use of HTML in notices to use with CSS.

Test plan :
- define an overdue notice containing some valid substitution terms + some valid html tags (<strong> or <div class="my class" to use with a css
- find a borrower with overdues that trigger this notice
- run overdue_notices.pl -html <directory>

Without patch, your html tags are missing in your html file
With the patch, they are present and can be used with a css to generate a formatted pdf file.

If you add some invalid substitution term, with the patch, they are still in the final letter, but the warn in the log helps you to correct your notice template.

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
misc/cronjobs/overdue_notices.pl