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