Bug 21208: Fix housebound deliverer/chooser names
[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                 <tr>
107                     <td>
108                         [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.item.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">[% END %]
109                         [% account.description %]&nbsp;[% IF account.itemnumber AND account.accounttype != 'F' AND account.accounttype != 'FU' %] [% account.item.biblio.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 %]
117
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 %]
126
127 [% MACRO jsinclude BLOCK %]
128     [% INCLUDE 'slip-print.inc' #printThenClose %]
129 [% END %]
130
131 [% INCLUDE 'intranet-bottom.inc' %]