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>
[% IF ( patron.borrowernotes ) %]
<li id="patron-borrowernotes">
<span class="label">Circulation note: </span><br />
- [% patron.borrowernotes | html | html_line_break %]
+ [% patron.borrowernotes | $raw | html_line_break %]
</li>
[% END %]
<ul>
[% FOREACH message IN patron_messages %]
<li>
- <strong>[% message.message | html %]</strong><br>
+ <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 %]</li>[% END %]
+ [% IF ( opacnote ) %]<li>[% opacnote | html | html_line_break %]</li>[% END %]
</ul>
</div>
[% END %]