02adf70507
This patch makes 2 changes: - bug 22702 allowed adding HTML to the circulation note, so this patch restores that ability. - display OPAC note and messages as multi-line in OPAC To test: - Add a circulation and an OPAC note with line breaks and HTML tags to the patron account - Add a message with line breaks to the patron account - Check line breaks don't show on - OPAC > patron account > my summary page - Staff > patron account > details - Apply patches - Repeat test Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
15 lines
607 B
HTML
15 lines
607 B
HTML
[% IF patron_messages.count OR opacnote %]
|
|
<div class="alert alert-info">
|
|
<h3>Messages for you</h3>
|
|
<ul>
|
|
[% FOREACH message IN patron_messages %]
|
|
<li>
|
|
<strong>[% message.message | html | html_line_break %]</strong><br>
|
|
<i>Written on [% message.message_date | $KohaDates %] by [% Branches.GetName(message.branchcode) | html %]</i>
|
|
</li>
|
|
[% END %]
|
|
|
|
[% IF ( opacnote ) %]<li>[% opacnote | html | html_line_break %]</li>[% END %]
|
|
</ul>
|
|
</div>
|
|
[% END %]
|