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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt (-2 / +2 lines)
Lines 29-35 Link Here
29
[% IF ( Koha.Preference('SlipCSS') ) %]
29
[% IF ( Koha.Preference('SlipCSS') ) %]
30
<link rel="stylesheet" type="text/css" href="[% Koha.Preference('SlipCSS') | $raw %]" />
30
<link rel="stylesheet" type="text/css" href="[% Koha.Preference('SlipCSS') | $raw %]" />
31
[% END %]
31
[% END %]
32
[% IF slip.style %]<style>[% slip.style | $raw %]</style>[% END %]
33
32
34
[% INCLUDE 'slip-print.inc' #printThenClose %]
33
[% INCLUDE 'slip-print.inc' #printThenClose %]
35
</head>
34
</head>
Lines 37-45 Link Here
37
<div id="receipt">
36
<div id="receipt">
38
37
39
[% UNLESS slips && slips.size %]
38
[% UNLESS slips && slips.size %]
40
    [% SET slips = [{content => slip, is_html => !plain}] %]
39
    [% SET slips = [{content => slip, is_html => !plain, style => style }] %]
41
[% END %]
40
[% END %]
42
[% FOR slip IN slips %]
41
[% FOR slip IN slips %]
42
[% IF slip.style %]<style>[% slip.style | $raw %]</style>[% END %]
43
[% UNLESS slip.is_html %]
43
[% UNLESS slip.is_html %]
44
<pre>
44
<pre>
45
[% IF ( slip.content ) %][% slip.content | html %][% ELSE %]No slip template found[% END %]
45
[% IF ( slip.content ) %][% slip.content | html %][% ELSE %]No slip template found[% END %]
(-)a/members/printslip.pl (-6 / +6 lines)
Lines 113-124 $is_html = $letter->{is_html}; Link Here
113
113
114
114
115
$template->param(
115
$template->param(
116
    slip => $slip,
116
    slip           => $slip,
117
    plain => !$is_html,
117
    plain          => !$is_html,
118
    borrowernumber => $borrowernumber,
118
    borrowernumber => $borrowernumber,
119
    caller => 'members',
119
    caller         => 'members',
120
    stylesheet => C4::Context->preference("SlipCSS"),
120
    stylesheet     => C4::Context->preference("SlipCSS"),
121
    error           => $error,
121
    error          => $error,
122
    style          => $letter->{style},
122
);
123
);
123
124
124
$template->param( IntranetSlipPrinterJS => C4::Context->preference('IntranetSlipPrinterJS' ) );
125
$template->param( IntranetSlipPrinterJS => C4::Context->preference('IntranetSlipPrinterJS' ) );
125
- 

Return to bug 33478