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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt (-18 / +19 lines)
Lines 3-8 Link Here
3
[% USE Koha %]
3
[% USE Koha %]
4
[% PROCESS 'i18n.inc' %]
4
[% PROCESS 'i18n.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% UNLESS slips && slips.size %]
7
    [% SET slips = [{content => slip, is_html => !plain, style => style, id => id }] %]
8
[% END %]
6
<title>[% FILTER collapse %]
9
<title>[% FILTER collapse %]
7
[% IF ( caller == 'hold-transfer' ) %]
10
[% IF ( caller == 'hold-transfer' ) %]
8
    [% t("Hold transfer print receipt") | html %] &rsaquo;
11
    [% t("Hold transfer print receipt") | html %] &rsaquo;
Lines 30-57 Link Here
30
<link rel="stylesheet" type="text/css" href="[% Koha.Preference('SlipCSS') | $raw %]" />
33
<link rel="stylesheet" type="text/css" href="[% Koha.Preference('SlipCSS') | $raw %]" />
31
[% END %]
34
[% END %]
32
[% FOR slip IN slips %]
35
[% FOR slip IN slips %]
33
[% IF slip.style %]<style>[% slip.style.replace('([^\{\}]+?)\s*\{', '#slip_' _ slip.id _ ' $1 {') | $raw %]</style>[% END %]
36
    [% IF slip.style %]<style>[% slip.style.replace('([^\{\}]+?)\s*\{', '#slip_' _ slip.id _ ' $1 {') | $raw %]</style>[% END %]
34
[% END %]
37
[% END %]
35
38
36
[% INCLUDE 'slip-print.inc' #printThenClose %]
39
[% INCLUDE 'slip-print.inc' #printThenClose %]
37
</head>
40
</head>
38
<body id="circ_printslip" class="circ">
41
<body id="circ_printslip" class="circ">
39
<div id="receipt">
42
    <div id="receipt">
40
43
    [% FOR slip IN slips %]
41
[% UNLESS slips && slips.size %]
44
        <div id="slip_[% slip.id | html %]">
42
    [% SET slips = [{content => slip, is_html => !plain, style => style }] %]
45
        [% UNLESS slip.is_html %]
43
[% END %]
46
            <pre>
44
[% FOR slip IN slips %]
47
                [% IF ( slip.content ) %][% slip.content | html %][% ELSE %]No slip template found[% END %]
45
<div id="slip_[% slip.id | html %]">
48
            </pre>
46
[% UNLESS slip.is_html %]
49
        [% ELSE %]
47
<pre>
50
            [% IF ( slip.content ) %][% slip.content | $raw %][% ELSE %]No slip template found[% END %]
48
[% IF ( slip.content ) %][% slip.content | html %][% ELSE %]No slip template found[% END %]
51
        [% END %]
49
</pre>
52
        </div>
50
[% ELSE %]
53
        [% IF slips.size > 1 && !loop.last%]
51
[% IF ( slip.content ) %][% slip.content | $raw %][% ELSE %]No slip template found[% END %]
54
        <div class="pagebreak"></div>
52
[% END %]
55
        [% END %]
53
</div>
56
    [% END %]
54
[% IF slips.size > 1 && !loop.last%]<div class="pagebreak"></div>[% END %]
55
[% END %]
56
57
57
[% INCLUDE 'intranet-bottom.inc' %]
58
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/members/printslip.pl (-1 / +1 lines)
Lines 120-125 $template->param( Link Here
120
    stylesheet     => C4::Context->preference("SlipCSS"),
120
    stylesheet     => C4::Context->preference("SlipCSS"),
121
    error          => $error,
121
    error          => $error,
122
    style          => $letter->{style},
122
    style          => $letter->{style},
123
    id             => $print,
123
);
124
);
124
125
125
$template->param( IntranetSlipPrinterJS => C4::Context->preference('IntranetSlipPrinterJS' ) );
126
$template->param( IntranetSlipPrinterJS => C4::Context->preference('IntranetSlipPrinterJS' ) );
126
- 

Return to bug 38089