Lines 336-344
sub index_records {
Link Here
|
336 |
|
336 |
|
337 |
sub _get_record { |
337 |
sub _get_record { |
338 |
my ( $self, $record_id ) = @_; |
338 |
my ( $self, $record_id ) = @_; |
339 |
return $self->index eq $Koha::SearchEngine::BIBLIOS_INDEX |
339 |
|
340 |
? Koha::Biblios->find($record_id)->metadata->record({ embed_items => 1 }) |
340 |
my $record; |
341 |
: C4::AuthoritiesMarc::GetAuthority($record_id); |
341 |
|
|
|
342 |
if ( $self->index eq $Koha::SearchEngine::BIBLIOS_INDEX ) { |
343 |
my $biblio = Koha::Biblios->find($record_id); |
344 |
$record = $biblio->metadata->record( { embed_items => 1 } ) |
345 |
if $biblio; |
346 |
} else { |
347 |
$record = C4::AuthoritiesMarc::GetAuthority($record_id); |
348 |
} |
349 |
|
350 |
return $record; |
342 |
} |
351 |
} |
343 |
|
352 |
|
344 |
=head2 delete_index($biblionums) |
353 |
=head2 delete_index($biblionums) |
345 |
- |
|
|