[% USE raw %] [% PROCESS 'i18n.inc' %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] [% t("Preview notice template") | html %] › [% t("Notices") | html %] › [% t("Tools") | html %] › [% t("Koha") | html %] [% END %]

Preview notice template

[% FOR m IN messages %] [%# FIXME The message block does not appear at the top of the modal! %]
[% SWITCH m.code %] [% CASE 'no_data_for_preview' %]You did not specify data for preview. [% CASE 'preview_not_available' %]Preview is not available for letters '[% m.letter_code | html %]'. [% CASE 'not_checked_in_yet' %]Do not forget that the item has not been checked in yet. [% CASE 'not_checked_out_yet' %]Do not forget that the item has not been checked out yet. [% CASE 'no_checkout' %]This item is not checked out. [% CASE 'no_item_or_no_patron' %]The item or the patron does not exist. [% CASE 'no_hold' %]No hold is placed by this patron on this bibliographic record. [% CASE %][% m.code | html %] [% END %]
[% END %] [% IF rendered_tt_message %] [% IF messages_are_similar %]
The generated notices are exactly the same!
[% ELSE %]
The generated notices are different!
[% END %] [% END %] [% IF rendered_message %]

Original version

[% FILTER html_line_break %] [% original_content | html %] [% END %]

Original message, rendered:

[% FILTER html_line_break %] [% rendered_message.content | html %] [% END %]
[% END %] [% IF rendered_tt_message %]

Converted version

[% FILTER html_line_break %] [% tt_content | html %] [% END %]

Converted message, rendered:

[% FILTER html_line_break %] [% rendered_tt_message.content | html %] [% END %]
[% END %]