2 [% USE AuthorisedValues %]
5 "iTotalRecords": [% iTotalRecords %],
6 "iTotalDisplayRecords": [% iTotalDisplayRecords %],
8 [% FOREACH data IN aaData %]
10 [% IF CAN_user_tools_manage_patron_lists %]
12 "<input type='checkbox' class='selection' name='borrowernumber' value='[% data.borrowernumber %]' />",
15 "[% data.cardnumber | html %]",
17 "<span style='white-space:nowrap'><a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.borrowernumber %]'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = To.json(data.firstname) surname = To.json(data.surname) othernames = To.json(data.othernames) invert_name = 1 %]</a><br />[% INCLUDE escape_address data = data %]</span>",
19 "[% data.category_description |html %] ([% data.category_type |html %])",
21 "[% data.branchname |html %]",
23 "[% data.dateexpiry %]",
25 "[% IF data.overdues %]<span class='overdue'><strong>[% data.overdues %]</strong></span>[% ELSE %][% data.overdues %][% END %] / [% data.issues %]",
27 "<span style='text-align: right; display: block;'>[% IF data.fines < 0 %]<span class='credit'>[% data.fines |html %]</span> [% ELSIF data.fines > 0 %] <span class='debit'><strong>[% data.fines |html %]</strong></span> [% ELSE %] [% data.fines |html%] [% END %]</span>",
29 "[% data.borrowernotes.replace('\\\\' , '\\\\') |html |html_line_break |collapse %]",
31 "<a href='/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% data.borrowernumber %]'>Edit</a>",
33 "[% data.borrowernumber %]"
34 }[% UNLESS loop.last %],[% END %]
38 [% BLOCK escape_address %]
39 [%~ SET address = data.streetnumber _ ' ' %]
40 [%~ IF data.streettype %][% address = address _ AuthorisedValues.GetByCode( 'ROADTYPE', data.streettype ) _ ' ' %][% END %]
41 [%~ IF data.address %][% address = address _ data.address _ ' ' %][% END %]
42 [%~ IF data.address2 %][% address = address _ data.address2 _ ' ' %][% END %]
43 [%~ To.json( address ) ~%]