Lines 258-273
sub get_request_logs {
Link Here
|
258 |
foreach my $alias(@{$aliases}) { |
258 |
foreach my $alias(@{$aliases}) { |
259 |
$alias_hash->{$alias->{authorised_value}} = $alias; |
259 |
$alias_hash->{$alias->{authorised_value}} = $alias; |
260 |
} |
260 |
} |
261 |
foreach my $log(@{$logs}) { |
261 |
foreach my $log ( @{$logs} ) { |
262 |
$log->{patron} = Koha::Patrons->find( $log->{user} ); |
262 |
$log->{patron} = Koha::Patrons->find( $log->{user} ); |
263 |
$log->{notice_types} = $notice_hash; |
263 |
$log->{notice_types} = $notice_hash; |
264 |
$log->{aliases} = $alias_hash; |
264 |
$log->{aliases} = $alias_hash; |
265 |
$log->{info} = from_json($log->{info}); |
265 |
$log->{info} = from_json( $log->{info} ); |
266 |
$log->{template} = $self->get_log_template({ |
266 |
$log->{template} = $self->get_log_template( |
267 |
request => $request, |
267 |
{ |
268 |
origin => $log->{info}->{log_origin}, |
268 |
request => $request, |
269 |
action => $log->{action} |
269 |
origin => $log->{info}->{log_origin}, |
270 |
}); |
270 |
action => $log->{action} |
|
|
271 |
} |
272 |
); |
271 |
} |
273 |
} |
272 |
|
274 |
|
273 |
return $logs; |
275 |
return $logs; |
274 |
- |
|
|