|
Lines 75-86
my $borrowers_rs = Koha::Patrons->search_limited(
Link Here
|
| 75 |
page => 1, |
75 |
page => 1, |
| 76 |
rows => 10, |
76 |
rows => 10, |
| 77 |
order_by => [ 'surname', 'firstname' ], |
77 |
order_by => [ 'surname', 'firstname' ], |
|
|
78 |
prefetch => 'branchcode', |
| 78 |
}, |
79 |
}, |
| 79 |
); |
80 |
); |
| 80 |
|
81 |
|
| 81 |
my @borrowers; |
82 |
my @borrowers; |
| 82 |
while ( my $b = $borrowers_rs->next ) { |
83 |
while ( my $b = $borrowers_rs->next ) { |
| 83 |
my $library = Koha::Libraries->find( $b->branchcode ); |
|
|
| 84 |
push @borrowers, |
84 |
push @borrowers, |
| 85 |
{ borrowernumber => $b->borrowernumber, |
85 |
{ borrowernumber => $b->borrowernumber, |
| 86 |
surname => $b->surname // '', |
86 |
surname => $b->surname // '', |
|
Lines 93-99
while ( my $b = $borrowers_rs->next ) {
Link Here
|
| 93 |
zipcode => $b->zipcode // '', |
93 |
zipcode => $b->zipcode // '', |
| 94 |
country => $b->country // '', |
94 |
country => $b->country // '', |
| 95 |
branchcode => $b->branchcode // '', |
95 |
branchcode => $b->branchcode // '', |
| 96 |
branchname => $library->branchname // '', |
96 |
branchname => $b->library->branchname // '', |
| 97 |
}; |
97 |
}; |
| 98 |
} |
98 |
} |
| 99 |
|
99 |
|
| 100 |
- |
|
|