6 [% USE TablesSettings %]
7 [% PROCESS 'member-display-address-style.inc' %]
10 [% PROCESS 'accounts.inc' %]
12 [% INCLUDE 'doc-head-open.inc' %]
13 <title>Summary for [% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])</title>
14 [% INCLUDE 'doc-head-close.inc' %]
17 <body id="pat_moremember-print" class="pat">
19 <h3><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% patron.cardnumber | uri %]">Account summary: [% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])</a></h3>
22 [% PROCESS 'display-address-style' %]
23 <li>[% IF ( patron.phone ) %][% patron.phone | html %][% ELSE %](no phone number on file)[% END %]</li>
24 <li>[% IF ( patron.email ) %][% patron.email | html %][% ELSE %](no primary email on file)[% END %]</li>
25 [% IF ( patron.emailpro ) %]
26 <li>[% patron.emailpro | html %]</li>
28 <li>Registration date: [% patron.dateenrolled | $KohaDates %]</li>
29 <li>Expiration date: [% patron.dateexpiry | $KohaDates %]</li>
30 <li>Library: [% Branches.GetName( patron.branchcode ) | html %]</li>
31 <li>Category: [% patron.category.description | html %]</li>
35 <table id="print-summary-checkouts">
36 <caption>Items checked out</caption>
45 <th>Inventory number</th>
52 [% FOREACH issue IN issues %]
55 [% INCLUDE 'biblio-title.inc' biblio=issue link = 0 %]
57 <td>[% issue.author | html %]</td>
58 <td>[% issue.itemcallnumber | html %]</td>
59 <td>[% ItemTypes.GetDescription( issue.itype ) | html %]</td>
60 <td>[% issue.date_due | $KohaDates as_due_date => 1 %]</td>
61 <td>[% issue.barcode | html %]</td>
62 <td>[% issue.stocknumber | html %]</td>
63 [% IF ( issue.charge <= 0 ) %]
68 [% issue.charge | $Price %]
70 [% IF ( issue.replacementprice <= 0 ) %]
75 [% issue.replacementprice | $Price %]
77 <td>[% IF ( issue.overdue ) %]Overdue![% ELSE %] [% END %]</td>
89 <td style="text-align: right; font-weight:bold;">Totals:</td>
90 [% IF ( totaldue <= 0 ) %]
95 [% totaldue | $Price %]
97 [% IF ( totalprice <= 0 ) %]
102 [% totalprice | $Price %]
110 [% IF ( reserves ) %]
111 <table id="print-summary-holds">
112 <caption>Pending holds</caption>
119 <th>Pick up location</th>
123 [% FOREACH reserve IN reserves %]
125 <td>[% reserve.title | html %]</td>
126 <td>[% reserve.author | html %]</td>
127 <td>[% reserve.reservedate | $KohaDates %]</td>
128 <td>[% reserve.expirationdate | $KohaDates %]</td>
129 <td>[% reserve.waiting_at | html %]</td>
135 [% IF accounts && totaldue != 0 %]
136 <table id="print-summary-fines">
137 <caption>Account fines and payments</caption>
141 <th>Description of charges</th>
148 [% FOREACH account IN accounts %]
150 <td>[% account.date | $KohaDates %]</td>
152 [% PROCESS account_type_description account=account %]
153 [%- IF account.payment_type %]
154 , [% AuthorisedValues.GetByCode('PAYMENT_TYPE', account.payment_type) | html %]
156 [%- IF account.description %]
157 , [% account.description | html %]
160 [% IF ( account.itemnumber AND account.debit_type_code != 'OVERDUE' ) %]
161 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.item.biblionumber | uri %]&itemnumber=[% account.itemnumber | uri %]">[% account.item.biblio.title | html %]</a>
165 [% account.note | html_line_break %]
167 [% IF ( account.amount <= 0 ) %]
172 [% account.amount | $Price %]
174 [% IF ( account.amountoutstanding <= 0 ) %]
179 [% account.amountoutstanding | $Price %]
189 [% IF ( totaldue < 0 ) %]
196 [% IF ( totaldue < 0 ) %]
201 [% totaldue | $Price %]
208 [% MACRO jsinclude BLOCK %]
209 [% INCLUDE 'slip-print.inc' #printThenClose %]
210 [% INCLUDE 'datatables.inc' %]
211 [% INCLUDE 'columns_settings.inc' %]
213 var checkouts_columns = [% TablesSettings.GetColumns( 'circ', 'print_summary', 'print-summary-checkouts', 'json' ) | $raw %];
214 var holds_columns = [% TablesSettings.GetColumns( 'circ', 'print_summary', 'print-summary-holds', 'json' ) | $raw %];
215 var fines_columns = [% TablesSettings.GetColumns( 'circ', 'print_summary', 'print-summary-fines', 'json' ) | $raw %];
217 function moveColumnsButton( tableId ){
218 /* Hide the export button */
219 $("#" + tableId + "_wrapper").find("button.export_controls").remove();
220 /* We don't show the table controls toolbar here, so the columns settings button looks better as part of the caption */
221 $("#" + tableId).find("caption").append( $("#" + tableId + "_wrapper").find("button.columns_controls") );
224 $(document).ready(function() {
226 KohaTable("print-summary-checkouts", {
229 initComplete: function( settings) {
230 moveColumnsButton( settings.nTable.id );
232 }, checkouts_columns);
234 KohaTable("print-summary-holds", {
237 initComplete: function( settings) {
238 moveColumnsButton( settings.nTable.id );
242 KohaTable("print-summary-fines", {
245 initComplete: function( settings) {
246 moveColumnsButton( settings.nTable.id );
254 [% INCLUDE 'intranet-bottom.inc' %]