[Koha-bugs] [Bug 30822] BatchCommit does not deal with indexation correctly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 17 11:24:54 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30822

--- Comment #17 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Jonathan Druart from comment #10)

> But maybe we need that part, for biblio deletions, what do you think?
> 
> +    if ( $record_type eq 'biblio' && ( @updated_biblionumbers ||
> @deleted_biblionumbers ) ) {
> +        my $indexer = Koha::SearchEngine::Indexer->new({ index =>
> $Koha::SearchEngine::BIBLIOS_INDEX });
> +        if ( @deleted_biblionumbers ) {
> +            $indexer->index_records( \@deleted_biblionumbers,
> "recordDelete", "biblioserver" );
> +        } else {
> +            $indexer->index_records( \@updated_biblionumbers,
> "specialUpdate", "biblioserver" );
> +        }
> +    }

I agree that for consistency, we should address that too. But we could say that
this can be done on a new report. The title of this report is scoped to
BatchCommitRecords. And we are talking BatchRevert here.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list