Lines 158-164
foreach my $item (@{$items}) {
Link Here
|
158 |
} |
158 |
} |
159 |
elsif ($images->{$_}->{'data_source'}->[0]->{'image_source'} eq 'patronimages') { |
159 |
elsif ($images->{$_}->{'data_source'}->[0]->{'image_source'} eq 'patronimages') { |
160 |
my $patron_image = Koha::Patron::Images->find($borrower_number); |
160 |
my $patron_image = Koha::Patron::Images->find($borrower_number); |
161 |
warn sprintf('No image exists for borrower number %s.', $borrower_number) unless $patron_image; |
161 |
if ($patron_image) { |
|
|
162 |
$image_data->{'imagefile'} = $patron_image->imagefile; |
163 |
} |
164 |
else { |
165 |
warn sprintf('No image exists for borrower number %s.', $borrower_number); |
166 |
} |
162 |
next PROCESS_IMAGES unless $patron_image; |
167 |
next PROCESS_IMAGES unless $patron_image; |
163 |
} |
168 |
} |
164 |
elsif ($images->{$_}->{'data_source'}->[0]->{'image_source'} eq 'creator_images') { |
169 |
elsif ($images->{$_}->{'data_source'}->[0]->{'image_source'} eq 'creator_images') { |
165 |
- |
|
|