View | Details | Raw Unified | Return to bug 39503
Collapse All | Expand All

(-)a/Koha/SearchEngine/Elasticsearch.pm (-1 / +10 lines)
Lines 918-923 sub marc_records_to_documents { Link Here
918
            }
918
            }
919
        }
919
        }
920
920
921
        if (   $self->index eq $AUTHORITIES_INDEX
922
            && exists $record_document->{'subject-heading-thesaurus'}
923
            && scalar @{ $record_document->{'subject-heading-thesaurus'} } > 1 )
924
        {
925
            # We should really only have two thesauri defined in the case where 008/_11 = 'z' and 040$f is defined
926
            # In that case, we should drop the z
927
            @{ $record_document->{'subject-heading-thesaurus'} } =
928
                map { $_ eq 'z' ? () : $_ } @{ $record_document->{'subject-heading-thesaurus'} };
929
        }
930
921
        # Check if there is at least one available item
931
        # Check if there is at least one available item
922
        if ( $self->index eq $BIBLIOS_INDEX ) {
932
        if ( $self->index eq $BIBLIOS_INDEX ) {
923
            my ( $tag, $code ) = C4::Biblio::GetMarcFromKohaField('biblio.biblionumber');
933
            my ( $tag, $code ) = C4::Biblio::GetMarcFromKohaField('biblio.biblionumber');
924
- 

Return to bug 39503