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

(-)a/Koha/SearchEngine/Elasticsearch/Search.pm (-1 / +12 lines)
Lines 248-253 sub search_auth_compat { Link Here
248
            my $subject_heading_thesaurus_conventions = $es_record->{_source}->{'subject-heading-thesaurus-conventions'}[0];
248
            my $subject_heading_thesaurus_conventions = $es_record->{_source}->{'subject-heading-thesaurus-conventions'}[0];
249
            $result{thesaurus}    = $subject_heading_thesaurus_conventions;
249
            $result{thesaurus}    = $subject_heading_thesaurus_conventions;
250
250
251
            if ( C4::Context->preference('ShowHeadingUse') ) {
252
                # checking valid heading use
253
                my $f008 = $marc->field('008');
254
                my $pos14to16 = substr( $f008->data, 14, 3 );
255
                my $main = substr( $pos14to16, 0, 1 );
256
                $result{main} = 1 if $main eq 'a';
257
                my $subject = substr( $pos14to16, 1, 1);
258
                $result{subject} = 1 if $subject eq 'a';
259
                my $series = substr( $pos14to16, 2, 1 );
260
                $result{series} = 1 if $series eq 'a';
261
            }
262
251
            # Reimplementing BuildSummary is out of scope because it'll be hard
263
            # Reimplementing BuildSummary is out of scope because it'll be hard
252
            $result{summary} =
264
            $result{summary} =
253
            C4::AuthoritiesMarc::BuildSummary( $marc, $result{authid},
265
            C4::AuthoritiesMarc::BuildSummary( $marc, $result{authid},
254
- 

Return to bug 33348