Bug 33030: Add standardized subroutine for processing Template Toolkit syntax outside...
authorKyle Hall <kyle@bywatersolutions.com>
Tue, 21 Feb 2023 19:17:09 +0000 (14:17 -0500)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 14 Jul 2023 19:52:05 +0000 (16:52 -0300)
commit9282fb55786cf9afc6a3a13d8398dfa72703e16d
tree4b6ddf7a6567336293b4567460c0916d6034af77
parent3f80a0fcf74be12bb12f249d79139df29455f4a5
Bug 33030: Add standardized subroutine for processing Template Toolkit syntax outside of notices

Koha has evolved to use Template Toolkit for many uses outside of generating slips and notices for patrons. Historically, each of these areas processed template toolkit in a slightly different way. We should add a module to allow Template Toolkit syntax to be processed in a standard and generic way such that all non-notice TT syntax is handled and processed the consistently.

Test Plan:
1) Apply this patch
2) prove t/db_dependent/Koha/Items.t

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/TemplateUtils.pm [new file with mode: 0644]