[% USE raw %] [% USE Asset %] [% USE Koha %] [% PROCESS 'i18n.inc' %] [% INCLUDE 'doc-head-open.inc' %] [% UNLESS slips && slips.size %] [% SET slips = [{content => slip, is_html => !plain, style => style, id => id }] %] [% END %] [% FILTER collapse %] [% IF ( caller == 'hold-transfer' ) %] [% t("Hold transfer print receipt") | html %] › [% t("Circulation") | html %] › [% ELSIF ( caller == 'transfer' ) %] [% t("Transfers print receipt") | html %] › [% t("Circulation") | html %] › [% ELSIF ( caller == 'members' ) %] [% tx("Print receipt for {borrowernumber}", { borrowernumber = borrowernumber }) | html %] › [% t("Patrons") | html %] › [% ELSIF ( caller == 'recall' ) %] [% t("Recall print receipt") | html %] › [% t("Circulation") | html %] › [% ELSIF ( title ) %] [%# FIXME title is never defined %] [% title | html %] › [% t("Patrons") | html %] › [% END %] [% t("Koha") | html %] [% END %] [% INCLUDE 'doc-head-close.inc' %] [% Asset.css("css/print.css") | $raw %] [% IF ( Koha.Preference('PrintSlipStylesheet') ) %] [% END %] [% FOR slip IN slips %] [% IF slip.style %] [% END %] [% END %] [% INCLUDE 'slip-print.inc' #printThenClose %]
[% FOR slip IN slips %]
[% UNLESS slip.is_html %]
                [% IF ( slip.content ) %][% slip.content | html %][% ELSE %]No slip template found[% END %]
            
[% ELSE %] [% IF ( slip.content ) %][% slip.content | $raw %][% ELSE %]No slip template found[% END %] [% END %]
[% IF slips.size > 1 && !loop.last %]
[% END %] [% END %]
[% INCLUDE 'intranet-bottom.inc' %]