@@ -, +, @@ --- .../intranet-tmpl/prog/en/modules/batch/print-notices.tt | 6 +++++- misc/cronjobs/gather_print_notices.pl | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/batch/print-notices.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/batch/print-notices.tt @@ -20,7 +20,11 @@ [% FOREACH message IN messages %]
-
[% message.content | $raw %]
+ [% IF ( message.is_html ) %] + [% message.content | $raw %] + [% ELSE %] +
[% message.content | $raw %]
+ [% END %]
[% END %] --- a/misc/cronjobs/gather_print_notices.pl +++ a/misc/cronjobs/gather_print_notices.pl @@ -214,6 +214,12 @@ sub generate_html { C4::Templates::gettemplate( 'batch/print-notices.tt', 'intranet', CGI->new ); + foreach my $message (@{ $messages }) { + my $content_type = $message->{'content_type'} || 'text/plain; charset="UTF-8"'; + my $is_html = $content_type =~ m/html/io; + $message->{'is_html'} = $is_html; + } + $template->param( stylesheet => C4::Context->preference("NoticeCSS"), today => $today_syspref, --