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

(-)a/circ/hold-transfer-slip.pl (-1 / +2 lines)
Lines 46-54 if ( my $letter = ReserveSlip ({ Link Here
46
    branchcode     => $session->param('branch') || $userenv->{branch},
46
    branchcode     => $session->param('branch') || $userenv->{branch},
47
    reserve_id => $reserve_id,
47
    reserve_id => $reserve_id,
48
}) ) {
48
}) ) {
49
    $slip = $letter->{content};
49
    $slip = $letter;
50
    $is_html = $letter->{is_html};
50
    $is_html = $letter->{is_html};
51
}
51
}
52
52
$template->param( slip => $slip ) if ($slip);
53
$template->param( slip => $slip ) if ($slip);
53
$template->param( caller => 'hold-transfer' );
54
$template->param( caller => 'hold-transfer' );
54
$template->param( plain => !$is_html );
55
$template->param( plain => !$is_html );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt (-9 / +38 lines)
Lines 23-37 Link Here
23
23
24
[% INCLUDE 'slip-print.inc' #printThenClose %]
24
[% INCLUDE 'slip-print.inc' #printThenClose %]
25
</head>
25
</head>
26
<body id="circ_printslip" class="circ">
27
<div id="receipt">
28
26
29
[% IF plain %]
27
[% BLOCK translate_justification_types %]
30
<pre>
28
    [%  SWITCH type %]
31
[% IF ( slip ) %][% slip | html %][% ELSE %]No slip template found[% END %]
29
        [%   CASE 'L' %]left
32
</pre>
30
        [%   CASE 'C' %]center
33
[% ELSE %]
31
        [%   CASE 'R' %]right
34
[% IF ( slip ) %][% slip | $raw %][% ELSE %]No slip template found[% END %]
32
    [%  END %]
33
[% END %]
34
35
[% BLOCK translate_unit_types %]
36
    [% SWITCH type %]
37
        [%   CASE 'POINT' %]pt
38
        [%   CASE 'INCH' %]in
39
        [%   CASE 'MM' %]mm
40
        [%   CASE 'CM' %]cm
41
    [% END %]
35
[% END %]
42
[% END %]
36
43
44
<body id="circ_printslip" class="circ">
45
<div id="receipt">
46
    [% IF ( slip ) %]
47
        <div class="slip" style="
48
            text-align:[% PROCESS translate_justification_types type=slip.text_justify | trim %];
49
            font-size:[% slip.font_size %]px;
50
            width:[% slip.notice_width %][% PROCESS translate_unit_types type=slip.units | trim %];
51
            margin-top:[% slip.top_margin %][% PROCESS translate_unit_types type=slip.units | trim %];
52
            margin-left:[% slip.left_margin %][% PROCESS translate_unit_types type=slip.units | trim %];
53
        ">
54
            [% IF plain %]
55
            <pre>
56
                [% slip.content | html %]
57
            </pre>
58
            [% ELSE %]
59
                [% slip.content | $raw %]
60
            [% END %]
61
        </div>
62
    [% ELSE %]
63
        No slip template found
64
    [% END %]
65
</div>
66
37
[% INCLUDE 'intranet-bottom.inc' %]
67
[% INCLUDE 'intranet-bottom.inc' %]
38
- 

Return to bug 33478