Bug 14048: Add syspref and atomic update
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / moremember-print.tt
1 [% USE Koha %]
2 [% USE Branches %]
3 [% USE KohaDates %]
4 [% INCLUDE 'doc-head-open.inc' %]
5     <title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title>
6     [% INCLUDE 'doc-head-close.inc' %]
7     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8     <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
9     <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/print.css" />
10     [% INCLUDE 'slip-print.inc' #printThenClose %]
11 </head>
12 <body id="pat_moremember-print" class="pat" onload="printThenClose();">
13     <div id="main">
14         <h3><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cardnumber %]">Account summary: [% firstname %] [% surname %] ([% cardnumber %])</a></h3>
15
16         <ul>
17             [% IF Koha.Preference( 'AddressFormat' ) %]
18                 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
19             [% ELSE %]
20                 [% INCLUDE 'member-display-address-style-us.inc' %]
21             [% END %]
22             <li>[% IF ( phone ) %][% phone %][% ELSE %](no phone number on file)[% END %]</li>
23             <li>[% IF ( email ) %][% email %][% ELSE %](no primary email on file)[% END %]</li>
24             [% IF ( emailpro ) %]
25                 <li>[% emailpro %]</li>
26             [% END %]
27             <li>Registration date: [% dateenrolled | $KohaDates %]</li>
28             <li>Expiration date: [% dateexpiry | $KohaDates %]</li>
29             <li>Library: [% Branches.GetName( branchcode ) %]</li>
30             <li>Category: [% description %]</li>
31         </ul>
32
33         [% IF ( issues ) %]
34             <table>
35                 <caption>Items checked out</caption>
36                 <tr>
37                     <th>Title</th>
38                     <th>Author</th>
39                     <th>Call no</th>
40                     <th>Item type</th>
41                     <th>Date due</th>
42                     <th>Barcode</th>
43                     <th>Charge</th>
44                     <th>Price</th>
45                     <th>Status</th>
46                 </tr>
47
48                 [% FOREACH issue IN issues %]
49                     [% IF ( issue.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
50                         <td>
51                             [% issue.title |html %]
52                             <a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issue.itemnumber %]&amp;biblionumber=[% issue.biblionumber %]&amp;bi=[% issue.biblioitemnumber %]"></a>
53                         </td>
54                         <td>[% issue.author %]</td>
55                         <td>[% issue.itemcallnumber %]</td>
56                         <td>[% issue.itemtype_description %]</td>
57                         <td>[% issue.date_due | $KohaDates as_due_date => 1 %]</td>
58                         <td>[% issue.barcode %]</td>
59                         <td>[% issue.charge %]</td>
60                         <td>[% issue.replacementprice %]</td>
61                         <td>[% IF ( issue.overdue ) %]Overdue![% ELSE %]&nbsp;[% END %]</td>
62                     </tr>
63                 [% END %]
64
65             <tr>
66                 <td colspan="6" style="text-align: right; font-weight:bold;">Totals:</td>
67                 <td>[% totaldue %]</td>
68                 <td>[% totalprice %]</td>
69                 <td colspan="3">&nbsp;</td>
70             </tr>
71         </table>
72     [% END %]
73
74     [% IF ( reserves ) %]
75         <table>
76             <caption>Pending holds</caption>
77             <tr>
78                 <th>Title</th>
79                 <th>Author</th>
80                 <th>Placed on</th>
81                 <th>Expires on</th>
82                 <th>Pick up location</th>
83             </tr>
84
85             [% FOREACH reserve IN reserves %]
86                 <tr>
87                     <td>[% reserve.title %]</td>
88                     <td>[% reserve.author %]</td>
89                     <td>[% reserve.reservedate | $KohaDates %]</td>
90                     <td>[% reserve.expirationdate | $KohaDates %]</td>
91                     <td>[% reserve.waiting_at %]</td>
92                 </tr>
93             [% END %]
94         </table>
95     [% END %]
96
97     [% IF ( accounts && ( totaldue != '0.00' ) ) %]
98         <table>
99             <caption>Account fines and payments</caption>
100             <tr>
101                 <th>Description of charges</th>
102                 <th>Date</th>
103                 <th>Amount</th>
104                 <th>Outstanding</th>
105             </tr>
106
107             [% FOREACH account IN accounts %]
108                 [% NEXT IF account.amountoutstanding == '0.00' %]
109                 <tr>
110                     <td>
111                         [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">[% END %]
112                         [% account.description %]&nbsp;[% IF ( account.printtitle ) %] [% account.title |html %][% END %]
113                         [% IF ( account.itemnumber ) %]</a>[% END %]
114                     </td>
115                     <td>[% account.date | $KohaDates %]</td>
116                     <td>[% account.amount %]</td>
117                     <td>[% account.amountoutstanding %]</td>
118                 </tr>
119             [% END %]
120
121             <tfoot>
122                 <tr>
123                     <td colspan="3">Total due</td>
124                     <td colspan="2">[% totaldue %]</td>
125                 </tr>
126             </tfoot>
127         </table>
128     [% END %]
129
130 [% INCLUDE 'intranet-bottom.inc' %]