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