Lines 29-34
use CGI qw ( -utf8 );
Link Here
|
29 |
use C4::Context; |
29 |
use C4::Context; |
30 |
use C4::Auth qw/check_cookie_auth/; |
30 |
use C4::Auth qw/check_cookie_auth/; |
31 |
use Koha::Borrowers; |
31 |
use Koha::Borrowers; |
|
|
32 |
use Koha::DateUtils qw/format_sqldatetime/; |
32 |
|
33 |
|
33 |
use JSON qw( to_json ); |
34 |
use JSON qw( to_json ); |
34 |
|
35 |
|
Lines 74-79
while ( my $b = $borrowers_rs->next ) {
Link Here
|
74 |
surname => $b->surname // '', |
75 |
surname => $b->surname // '', |
75 |
firstname => $b->firstname // '', |
76 |
firstname => $b->firstname // '', |
76 |
cardnumber => $b->cardnumber // '', |
77 |
cardnumber => $b->cardnumber // '', |
|
|
78 |
dateofbirth => format_sqldatetime($b->dateofbirth, undef, undef, 1) // '', |
77 |
address => $b->address // '', |
79 |
address => $b->address // '', |
78 |
city => $b->city // '', |
80 |
city => $b->city // '', |
79 |
zipcode => $b->zipcode // '', |
81 |
zipcode => $b->zipcode // '', |