Bug 12165: (follow-up) display record title
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-account.tt
index b28fd08..0fc80ad 100644 (file)
@@ -1,4 +1,7 @@
-[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog ›  Account for [% FOREACH BORROWER_INF IN BORROWER_INFO %][% BORROWER_INF.firstname %] [% BORROWER_INF.surname %][% END %]
+[% USE Koha %]
+[% USE KohaDates %]
+
+[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your fines and charges
 [% INCLUDE 'doc-head-close.inc' %]
 </head>
 <body id="opac-account">
@@ -11,7 +14,7 @@
                <div id="useraccount" class="container">
 <!--CONTENT-->
     [% FOREACH BORROWER_INF IN BORROWER_INFO %]
-        <h3><a href="/cgi-bin/koha/opac-user.pl">[% BORROWER_INF.firstname %] [% BORROWER_INF.surname %]'s account</a> <img src="[% themelang %]../../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> Fines and Charges</h3>
+        <h3><a href="/cgi-bin/koha/opac-user.pl">[% BORROWER_INF.firstname %] [% BORROWER_INF.surname %]'s account</a> &#8674; Fines and charges</h3>
     [% END %]
 
     [% IF ( ACCOUNT_LINES ) %]
                 <tr>
                     <th>Date</th>
                     <th>Description</th>
-                    <th>Fine Amount</th>
-                    <th>Amount Outstanding</th>
+                    <th>Fine amount</th>
+                    <th>Amount outstanding</th>
                 </tr>
             </thead>
 
             <tfoot>
             <tr>
-                <th class="sum" colspan="3">Total Due</th>
+                <th class="sum" colspan="3">Total due</th>
                 <td class="sum">[% total %]</td>
             </tr>
             </tfoot>
             <tbody>
                 [% FOREACH ACCOUNT_LINE IN ACCOUNT_LINES %]
                     [% IF ( ACCOUNT_LINE.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
-                        <td>[% ACCOUNT_LINE.date %]</td>
-                        <td>[% ACCOUNT_LINE.description %]
-                        [% IF ( ACCOUNT_LINE.title ) %][% ACCOUNT_LINE.title |html %][% END %]</td>
+                        <td>[% ACCOUNT_LINE.date | $KohaDates %]</td>
+                        <td>
+                          [% SWITCH ACCOUNT_LINE.accounttype %]
+                            [% CASE 'Pay' %]Payment,thanks
+                            [% CASE 'Pay00' %]Payment,thanks (cash via SIP2)
+                            [% CASE 'Pay01' %]Payment,thanks (VISA via SIP2)
+                            [% CASE 'Pay02' %]Payment,thanks (credit card via SIP2)
+                            [% CASE 'N' %]New Card
+                            [% CASE 'F' %]Fine
+                            [% CASE 'A' %]Account management fee
+                            [% CASE 'M' %]Sundry
+                            [% CASE 'L' %]Lost Item
+                            [% CASE 'W' %]Writeoff
+                            [% CASE %][% ACCOUNT_LINE.accounttype %]
+                          [%- END -%]
+                          [%- IF ACCOUNT_LINE.description %], [% ACCOUNT_LINE.description %][% END %]
+                          [% IF ACCOUNT_LINE.title %]([% ACCOUNT_LINE.title %])[% END %]
+                        </td>
                         [% IF ( ACCOUNT_LINE.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amount %]</td>
                         [% IF ( ACCOUNT_LINE.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amountoutstanding %]</td>
                     </tr>
@@ -46,7 +64,7 @@
 
         </table>
     [% ELSE %]
-        <h4>You have no Fines or Charges</h4>
+        <h4>You have no fines or charges</h4>
     [% END %]
 </div>
 </div>