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/includes/notice_format_translations.inc (+16 lines)
Line 0 Link Here
1
[% BLOCK translate_justification_types %]
2
    [%  SWITCH type %]
3
        [%   CASE 'L' %]left
4
        [%   CASE 'C' %]center
5
        [%   CASE 'R' %]right
6
    [%  END %]
7
[% END %]
8
9
[% BLOCK translate_unit_types %]
10
    [% SWITCH type %]
11
        [%   CASE 'POINT' %]pt
12
        [%   CASE 'INCH' %]in
13
        [%   CASE 'MM' %]mm
14
        [%   CASE 'CM' %]cm
15
    [% END %]
16
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt (-9 / +23 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
27
[% PROCESS 'notice_format_translations.inc' %]
28
26
<body id="circ_printslip" class="circ">
29
<body id="circ_printslip" class="circ">
27
<div id="receipt">
30
<div id="receipt">
28
31
    [% IF ( slip ) %]
29
[% IF plain %]
32
        <div class="slip" style="
30
<pre>
33
            text-align:[% PROCESS translate_justification_types type=slip.text_justify | trim %];
31
[% IF ( slip ) %][% slip | html %][% ELSE %]No slip template found[% END %]
34
            font-size:[% slip.font_size %]px;
32
</pre>
35
            width:[% slip.notice_width %][% PROCESS translate_unit_types type=slip.units | trim %];
33
[% ELSE %]
36
            margin-top:[% slip.top_margin %][% PROCESS translate_unit_types type=slip.units | trim %];
34
[% IF ( slip ) %][% slip | $raw %][% ELSE %]No slip template found[% END %]
37
            margin-left:[% slip.left_margin %][% PROCESS translate_unit_types type=slip.units | trim %];
35
[% END %]
38
        ">
39
            [% IF slip.is_html %]
40
                [% slip.content | $raw %]
41
            [% ELSE %]
42
            <pre>
43
                [% slip.content | html %]
44
            </pre>
45
            [% END %]
46
        </div>
47
    [% ELSE %]
48
        No slip template found
49
    [% END %]
50
</div>
36
51
37
[% INCLUDE 'intranet-bottom.inc' %]
52
[% INCLUDE 'intranet-bottom.inc' %]
38
- 

Return to bug 33478