7 [% USE TablesSettings %]
8 [% PROCESS 'member-display-address-style.inc' %]
9 [% PROCESS 'i18n.inc' %]
10 [% SET footerjs = 1 %]
11 [% PROCESS 'accounts.inc' %]
12 [% INCLUDE 'doc-head-open.inc' %]
13 <title>[% FILTER collapse %]
14 [% t("Summary for") | html %] [% INCLUDE 'patron-title.inc' no_html = 1 %] ›
15 [% t("Patrons") | html %] ›
16 [% t("Koha") | html %]
18 [% INCLUDE 'doc-head-close.inc' %]
21 <body id="pat_moremember-print" class="pat">
23 <h3><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% patron.cardnumber | uri %]">Account summary: [% INCLUDE 'patron-title.inc' no_html = 1 %] ›</a></h3>
26 [% PROCESS 'display-address-style' %]
27 <li>[% IF ( patron.phone ) %][% patron.phone | html %][% ELSE %](no phone number on file)[% END %]</li>
28 <li>[% IF ( patron.email ) %][% patron.email | html %][% ELSE %](no primary email on file)[% END %]</li>
29 [% IF ( patron.emailpro ) %]
30 <li>[% patron.emailpro | html %]</li>
32 <li>Registration date: [% patron.dateenrolled | $KohaDates %]</li>
33 <li>Expiration date: [% patron.dateexpiry | $KohaDates %]</li>
34 <li>Library: [% Branches.GetName( patron.branchcode ) | html %]</li>
35 <li>Category: [% patron.category.description | html %]</li>
39 <table id="print-summary-checkouts">
40 <caption>Items checked out</caption>
49 <th>Inventory number</th>
56 [% FOREACH issue IN issues %]
59 [% INCLUDE 'biblio-title.inc' biblio=issue link = 0 %]
61 <td>[% issue.author | html %]</td>
62 <td>[% issue.itemcallnumber | html %]</td>
63 <td>[% ItemTypes.GetDescription( issue.itype ) | html %]</td>
64 <td>[% issue.date_due | $KohaDates as_due_date => 1 %]</td>
65 <td>[% issue.barcode | html %]</td>
66 <td>[% issue.stocknumber | html %]</td>
67 [% IF ( issue.charge <= 0 ) %]
72 [% issue.charge | $Price %]
74 [% IF ( issue.replacementprice <= 0 ) %]
79 [% issue.replacementprice | $Price %]
81 <td>[% IF ( issue.overdue ) %]Overdue![% ELSE %] [% END %]</td>
93 <td style="text-align: right; font-weight:bold;">Totals:</td>
94 [% IF ( totaldue <= 0 ) %]
99 [% totaldue | $Price %]
101 [% IF ( totalprice <= 0 ) %]
106 [% totalprice | $Price %]
114 [% IF ( reserves ) %]
115 <table id="print-summary-holds">
116 <caption>Pending holds</caption>
123 <th>Pick up location</th>
127 [% FOREACH reserve IN reserves %]
129 <td>[% reserve.title | html %]</td>
130 <td>[% reserve.author | html %]</td>
131 <td>[% reserve.reservedate | $KohaDates %]</td>
132 <td>[% reserve.expirationdate | $KohaDates %]</td>
133 <td>[% reserve.waiting_at | html %]</td>
139 [% IF accounts && totaldue != 0 %]
140 <table id="print-summary-fines">
141 <caption>Account fines and payments</caption>
145 <th>Description of charges</th>
152 [% FOREACH account IN accounts %]
154 <td>[% account.date | $KohaDates %]</td>
156 [% PROCESS account_type_description account=account %]
157 [%- IF account.payment_type %]
158 , [% AuthorisedValues.GetByCode('PAYMENT_TYPE', account.payment_type) | html %]
160 [%- IF account.description %]
161 , [% account.description | html %]
164 [% IF ( account.itemnumber AND account.debit_type_code != 'OVERDUE' ) %]
165 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.item.biblionumber | uri %]&itemnumber=[% account.itemnumber | uri %]">[% account.item.biblio.title | html %]</a>
169 [% account.note | html_line_break %]
171 [% IF ( account.amount <= 0 ) %]
176 [% account.amount | $Price %]
178 [% IF ( account.amountoutstanding <= 0 ) %]
183 [% account.amountoutstanding | $Price %]
193 [% IF ( totaldue < 0 ) %]
200 [% IF ( totaldue < 0 ) %]
205 [% totaldue | $Price %]
212 [% MACRO jsinclude BLOCK %]
213 [% INCLUDE 'slip-print.inc' #printThenClose %]
214 [% INCLUDE 'datatables.inc' %]
215 [% INCLUDE 'columns_settings.inc' %]
217 var checkouts_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-checkouts', 'json' ) | $raw %];
218 var holds_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-holds', 'json' ) | $raw %];
219 var fines_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-fines', 'json' ) | $raw %];
221 function moveColumnsButton( tableId ){
222 /* Hide the export button */
223 $("#" + tableId + "_wrapper").find("button.export_controls").remove();
224 /* We don't show the table controls toolbar here, so the columns settings button looks better as part of the caption */
225 $("#" + tableId).find("caption").append( $("#" + tableId + "_wrapper").find("button.columns_controls") );
228 $(document).ready(function() {
230 KohaTable("print-summary-checkouts", {
234 initComplete: function( settings) {
235 moveColumnsButton( settings.nTable.id );
237 }, checkouts_columns);
239 KohaTable("print-summary-holds", {
243 initComplete: function( settings) {
244 moveColumnsButton( settings.nTable.id );
248 KohaTable("print-summary-fines", {
252 initComplete: function( settings) {
253 moveColumnsButton( settings.nTable.id );
261 [% INCLUDE 'intranet-bottom.inc' %]