View | Details | Raw Unified | Return to bug 34728
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/batch/print-notices.tt (-1 / +5 lines)
Lines 20-26 Link Here
20
<body id="batch_print-notices" class="batch">
20
<body id="batch_print-notices" class="batch">
21
    [% FOREACH message IN messages %]
21
    [% FOREACH message IN messages %]
22
    <div class="dialog message">
22
    <div class="dialog message">
23
        <pre>[% message.content | $raw %]</pre>
23
        [% IF ( message.is_html ) %]
24
            [% message.content | $raw %]
25
        [% ELSE %]
26
            <pre>[% message.content | $raw %]</pre>
27
        [% END %]
24
    </div>
28
    </div>
25
    [% END %]
29
    [% END %]
26
</body>
30
</body>
(-)a/misc/cronjobs/gather_print_notices.pl (-1 / +6 lines)
Lines 214-219 sub generate_html { Link Here
214
      C4::Templates::gettemplate( 'batch/print-notices.tt', 'intranet',
214
      C4::Templates::gettemplate( 'batch/print-notices.tt', 'intranet',
215
        CGI->new );
215
        CGI->new );
216
216
217
    foreach my $message (@{ $messages }) {
218
        my $content_type = $message->{'content_type'} || 'text/plain; charset="UTF-8"';
219
        my $is_html      = $content_type =~ m/html/io;
220
        $message->{'is_html'} = $is_html;
221
    }
222
217
    $template->param(
223
    $template->param(
218
        stylesheet => C4::Context->preference("NoticeCSS"),
224
        stylesheet => C4::Context->preference("NoticeCSS"),
219
        today      => $today_syspref,
225
        today      => $today_syspref,
220
- 

Return to bug 34728