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