From 98dc273338f4acd2ef4739ba80636f297eee9165 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 15 Aug 2019 10:59:46 +0000 Subject: [PATCH] Bug 23409: (follow-up) Allow HTML in circulation note and add line breaks in OPAC user account 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 Notes and messages show line breaks in OPAC, Notes on staff HTML tags are processed in circulation notes No errors Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-note.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 36b95928ec..916ac9749c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -536,7 +536,7 @@ [% IF ( patron.borrowernotes ) %]
  • Circulation note:
    - [% patron.borrowernotes | html | html_line_break %] + [% patron.borrowernotes | $raw | html_line_break %]
  • [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-note.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-note.inc index 39b6cfd97d..2dbf70dac3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-note.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-note.inc @@ -4,12 +4,12 @@
      [% FOREACH message IN patron_messages %]
    • - [% message.message | html %]
      + [% message.message | html | html_line_break %]
         Written on [% message.message_date | $KohaDates %] by [% Branches.GetName(message.branchcode) | html %]
    • [% END %] - [% IF ( opacnote ) %]
    • [% opacnote | html %]
    • [% END %] + [% IF ( opacnote ) %]
    • [% opacnote | html | html_line_break %]
    • [% END %]
    [% END %] -- 2.11.0