3 [% USE AuthorisedValues %]
6 [% PROCESS 'member-display-address-style.inc' %]
8 "sEcho": [% sEcho | html %],
9 "iTotalRecords": [% iTotalRecords | html %],
10 "iTotalDisplayRecords": [% iTotalDisplayRecords | html %],
12 [% FOREACH data IN aaData %]
14 [% IF CAN_user_borrowers_edit_borrowers || CAN_user_tools_manage_patron_lists %]
16 "<input type='checkbox' class='selection' name='borrowernumber' value='[% data.borrowernumber | html %]' />",
19 "[% data.cardnumber | html | $To %]",
21 "<a href=\"/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.borrowernumber | html %]\" class=\"patron_preview\" data-borrowernumber=\"[% data.borrowernumber | html %]\" style='white-space:nowrap'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = data.firstname surname = data.surname othernames = data.othernames invert_name = 1 | $To %]</a><br /><div class='address'><ul>[%~ PROCESS 'display-address-style' patron=data no_line_break=1 | $To ~%]</ul></div>[% IF data.email %]<br/>Email: <a href='mailto:[% data.email | html | $To %]'>[% data.email | html | $To %]</a>[% END %]",
23 "[% INCLUDE 'patron-age.inc' patron = data %]",
25 "[% data.category_description | html | $To %] ([% data.category_type | html | $To %])",
27 "[% data.branchname | html | $To %]",
29 "[% data.dateexpiry | html | $To %]",
31 "[% IF data.overdues %]<span class='overdue'><strong>[% data.overdues | html %]</strong></span>[% ELSE %][% data.overdues | html %][% END %] / [% data.issues | html %]",
33 "<span style='text-align: right; display: block;'><a href=\"/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% data.borrowernumber | html %]\">[% IF data.fines < 0 %]<span class='credit'>[% data.fines | $Price %]</span>[% ELSIF data.fines > 0 %]<span class='debit'><strong>[% data.fines | $Price %]</strong></span>[% ELSE %][% data.fines | $Price %][% END %]</a></span>",
35 "[% data.borrowernotes | html_line_break | collapse | $To %]",
37 "<a href='/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% data.borrowernumber | html %]' class='btn btn-default btn-xs'><i class='fa fa-pencil'></i> Edit</a>",
39 "[% data.borrowernumber | html %]"
40 }[% UNLESS loop.last %],[% END %]