|
Lines 7-45
Link Here
|
| 7 |
[% UNLESS slips && slips.size %] |
7 |
[% UNLESS slips && slips.size %] |
| 8 |
[% SET slips = [{content => slip, is_html => !plain, style => style, id => id }] %] |
8 |
[% SET slips = [{content => slip, is_html => !plain, style => style, id => id }] %] |
| 9 |
[% END %] |
9 |
[% END %] |
| 10 |
<title |
10 |
<title>[% FILTER collapse %] |
| 11 |
>[% FILTER collapse %] |
11 |
[% IF ( caller == 'hold-transfer' ) %] |
| 12 |
[% IF ( caller == 'hold-transfer' ) %] |
12 |
[% t("Hold transfer print receipt") | html %] › |
| 13 |
[% t("Hold transfer print receipt") | html %] |
13 |
[% t("Circulation") | html %] › |
| 14 |
› [% t("Circulation") | html %] › |
14 |
[% ELSIF ( caller == 'transfer' ) %] |
| 15 |
[% ELSIF ( caller == 'transfer' ) %] |
15 |
[% t("Transfers print receipt") | html %] › |
| 16 |
[% t("Transfers print receipt") | html %] |
16 |
[% t("Circulation") | html %] › |
| 17 |
› [% t("Circulation") | html %] › |
17 |
[% ELSIF ( caller == 'members' ) %] |
| 18 |
[% ELSIF ( caller == 'members' ) %] |
18 |
[% tx("Print receipt for {borrowernumber}", { borrowernumber = borrowernumber }) | html %] › |
| 19 |
[% tx("Print receipt for {borrowernumber}", { borrowernumber = borrowernumber }) | html %] |
19 |
[% t("Patrons") | html %] › |
| 20 |
› [% t("Patrons") | html %] › |
20 |
[% ELSIF ( caller == 'recall' ) %] |
| 21 |
[% ELSIF ( caller == 'recall' ) %] |
21 |
[% t("Recall print receipt") | html %] › |
| 22 |
[% t("Recall print receipt") | html %] |
22 |
[% t("Circulation") | html %] › |
| 23 |
› [% t("Circulation") | html %] › |
23 |
[% ELSIF ( caller == 'notice_mgmt' ) %] |
| 24 |
[% ELSIF ( title ) %] |
24 |
[% UNLESS slips && slips.size > 1 %] |
| 25 |
[%# FIXME title is never defined %] |
25 |
[% t("Print notice") | html %] › |
| 26 |
[% title | html %] |
26 |
[% ELSE %] |
| 27 |
› [% t("Patrons") | html %] › |
27 |
[% t("Print notices") | html %] › |
| 28 |
[% END %] |
28 |
[% END %] |
| 29 |
[% t("Koha") | html %] |
29 |
[% t("Tools") | html %] &rsqaquo; |
| 30 |
[% END %]</title |
30 |
[% ELSIF ( title ) %][%# FIXME title is never defined %] |
| 31 |
> |
31 |
[% title | html %] › |
|
|
32 |
[% t("Patrons") | html %] › |
| 33 |
[% END %] |
| 34 |
[% t("Koha") | html %] |
| 35 |
[% END %]</title> |
| 32 |
[% INCLUDE 'doc-head-close.inc' %] |
36 |
[% INCLUDE 'doc-head-close.inc' %] |
| 33 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
37 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 34 |
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon | url %][% ELSE %][% interface | html %]/[% theme | html %]/img/favicon.ico[% END %]" type="image/x-icon" /> |
38 |
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon | url %][% ELSE %][% interface | html %]/[% theme | html %]/img/favicon.ico[% END %]" type="image/x-icon" /> |
| 35 |
|
39 |
|
| 36 |
[% Asset.css("css/print.css") | $raw %] |
40 |
[% Asset.css("css/print.css") | $raw %] |
| 37 |
[% IF ( Koha.Preference('PrintSlipStylesheet') ) %] |
41 |
[% IF ( Koha.Preference('PrintSlipStylesheet') ) %] |
| 38 |
<link rel="stylesheet" type="text/css" href="[% Koha.Preference('PrintSlipStylesheet') | $raw %]" /> |
42 |
<link rel="stylesheet" type="text/css" href="[% Koha.Preference('PrintSlipStylesheet') | $raw %]" /> |
| 39 |
[% END %] |
43 |
[% END %] |
| 40 |
[% FOR slip IN slips %] |
44 |
[% FOR slip IN slips %] |
| 41 |
[% IF slip.style %] |
45 |
[% IF slip.style %] |
| 42 |
<!-- prettier-ignore-start --> |
46 |
<!-- prettier-ignore-start --> |
| 43 |
<style>[% slip.style.replace('([^\{\}]+?)\s*\{', '#slip_' _ slip.id _ ' $1 {') | $raw %]</style> |
47 |
<style>[% slip.style.replace('([^\{\}]+?)\s*\{', '#slip_' _ slip.id _ ' $1 {') | $raw %]</style> |
| 44 |
<!-- prettier-ignore-end --> |
48 |
<!-- prettier-ignore-end --> |
| 45 |
[% END %] |
49 |
[% END %] |
|
Lines 47-73
Link Here
|
| 47 |
|
51 |
|
| 48 |
</head> |
52 |
</head> |
| 49 |
<body id="circ_printslip" class="circ"> |
53 |
<body id="circ_printslip" class="circ"> |
| 50 |
<div id="receipt"> |
54 |
<div id="receipt"> |
| 51 |
[% FOR slip IN slips %] |
55 |
[% FOR slip IN slips %] |
| 52 |
<div id="slip_[% slip.id | html %]"> |
56 |
<div id="slip_[% slip.id | html %]"> |
| 53 |
[% UNLESS slip.is_html %] |
57 |
[% UNLESS slip.is_html %] |
| 54 |
<pre> |
58 |
<pre> |
| 55 |
[% IF ( slip.content ) %][% slip.content | html %][% ELSE %]No slip template found[% END %] |
59 |
[% IF ( slip.content ) %][% slip.content | html %][% ELSE %]No slip template found[% END %] |
| 56 |
</pre |
60 |
</pre> |
| 57 |
> |
61 |
[% ELSE %] |
| 58 |
[% ELSE %] |
62 |
[% IF ( slip.content ) %][% slip.content | $raw %][% ELSE %]No slip template found[% END %] |
| 59 |
[% IF ( slip.content ) %][% slip.content | $raw %][% ELSE %]No slip template found[% END %] |
63 |
[% END %] |
| 60 |
[% END %] |
|
|
| 61 |
</div> |
64 |
</div> |
| 62 |
[% IF slips.size > 1 && !loop.last %] |
65 |
[% IF slips.size > 1 && !loop.last%] |
| 63 |
<div class="pagebreak"></div> |
66 |
<div class="pagebreak"></div> |
| 64 |
[% END %] |
67 |
[% END %] |
| 65 |
[% END %] |
68 |
[% END %] |
| 66 |
</div> |
69 |
</div> <!-- /#receipt --> |
| 67 |
<!-- /#receipt --> |
|
|
| 68 |
|
70 |
|
| 69 |
[% MACRO jsinclude BLOCK %] |
71 |
[% MACRO jsinclude BLOCK %] |
| 70 |
[% INCLUDE 'slip-print.inc' #printThenClose %] |
72 |
[% INCLUDE 'slip-print.inc' #printThenClose %] |
| 71 |
[% END %] |
73 |
[% END %] |
| 72 |
|
74 |
|
| 73 |
[% INCLUDE 'intranet-bottom.inc' %] |
75 |
[% INCLUDE 'intranet-bottom.inc' %] |
| 74 |
- |
|
|