Lp 2008925: Patch Templates Adversely Affected by Lp 1992490 user/dyrcona/lp2008925-fix-tt2-syntax-errors
authorJason Stephenson <jason@sigio.com>
Wed, 1 Mar 2023 19:34:25 +0000 (14:34 -0500)
committerJason Stephenson <jason@sigio.com>
Wed, 1 Mar 2023 19:34:25 +0000 (14:34 -0500)
commite9dbd22e9ebaa7e284898ba49a3e2874ed38bd0c
tree5e8fd10985b472722dc1c1c65dd19c37633af0d7
parent2035589a7d6d9824deac5ec64aaab2788c8989f7
Lp 2008925: Patch Templates Adversely Affected by Lp 1992490

The patch for Lp 1992490 wrapped several text blocks in the l()
translation function.  At least two of these introduced syntax error
in Template Toolkit.  Some of the others could have been done
differntly to fit in better with the general idiom of how we use the
fuction in Evergreen.

This commit modifies those that stood out as the most egregious
examples.

An easy way to test this is to login to the OPAC on an unpatched
system and click to open "Messages."  You will get an Internal Server
Error.  After you apply this commit and install the affected
templates, you will not get an Internal Server Error.

The other modified templates do not seem to crash, but use the
translation funciton in idiosyncratic ways.  This commit attempts to
smooth those out.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2
Open-ILS/src/templates-bootstrap/opac/myopac/holds.tt2
Open-ILS/src/templates-bootstrap/opac/myopac/messages/list.tt2
Open-ILS/src/templates-bootstrap/opac/register.tt2