Lines 1-4
Link Here
|
1 |
[% USE To %] |
1 |
[% USE To %] |
|
|
2 |
[% USE date %] |
2 |
[% USE AuthorisedValues %] |
3 |
[% USE AuthorisedValues %] |
3 |
[% USE KohaDates %] |
4 |
[% USE KohaDates %] |
4 |
{ |
5 |
{ |
Lines 7-12
Link Here
|
7 |
"iTotalDisplayRecords": [% iTotalDisplayRecords %], |
8 |
"iTotalDisplayRecords": [% iTotalDisplayRecords %], |
8 |
"aaData": [ |
9 |
"aaData": [ |
9 |
[% FOREACH data IN aaData %] |
10 |
[% FOREACH data IN aaData %] |
|
|
11 |
[% IF ( data.dateofbirth ) %] |
12 |
[%- calc = date.calc |
13 |
YMD = data.dateofbirth.split("-") |
14 |
ageymd = calc.Delta_YMD( |
15 |
YMD.0, YMD.1, YMD.2, |
16 |
date.format(date.now, "%Y"), |
17 |
date.format(date.now, "%m"), |
18 |
date.format(date.now, "%d") |
19 |
) |
20 |
age = ageymd.0 |
21 |
-%] |
22 |
[% END %] |
10 |
{ |
23 |
{ |
11 |
[% IF CAN_user_tools_manage_patron_lists %] |
24 |
[% IF CAN_user_tools_manage_patron_lists %] |
12 |
"dt_borrowernumber": |
25 |
"dt_borrowernumber": |
Lines 15-23
Link Here
|
15 |
"dt_cardnumber": |
28 |
"dt_cardnumber": |
16 |
"[% data.cardnumber | html %]", |
29 |
"[% data.cardnumber | html %]", |
17 |
"dt_name": |
30 |
"dt_name": |
18 |
"<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 = data.firstname surname = data.surname othernames = data.othernames invert_name = 1 %]</a><br />[% INCLUDE escape_address data = data %]</span>", |
31 |
"<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 = data.firstname surname = data.surname othernames = data.othernames invert_name = 1 %]</a>[% IF age %] ([% age%])[% END %]<br />[% INCLUDE escape_address data = data %]</span>", |
19 |
"dt_dateofbirth": |
32 |
"dt_dateofbirth": |
20 |
"[% data.dateofbirth | $KohaDates %]", |
33 |
"[% data.dateofbirth | $KohaDates %]", |
21 |
"dt_category": |
34 |
"dt_category": |
22 |
"[% data.category_description |html %] ([% data.category_type |html %])", |
35 |
"[% data.category_description |html %] ([% data.category_type |html %])", |
23 |
"dt_branch": |
36 |
"dt_branch": |
24 |
- |
|
|