Skip to content

Commit

Permalink
Merge pull request #1331 from sul-dlss/bib-search-topic
Browse files Browse the repository at this point in the history
Add topic values to bib_search
  • Loading branch information
jcoyne authored Feb 13, 2024
2 parents 2720faa + 2a19611 commit 7a1bb1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/traject/config/folio_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2619,12 +2619,13 @@ def accumulate_summary_struct_fields(matching_fields, tag, label, marc, accumula
result << subfield_values.join(' ')
end

result += Array(context.output_hash['topic_search'])
result += Array(context.output_hash['format_main_ssim'])

accumulator << result.join(' ') if result.any?
end

to_field 'vern_bib_search' do |record, accumulator|
to_field 'vern_bib_search' do |record, accumulator, context|
# authors, titles, series, publisher
keep_fields = %w[
100 110 111 130 210 222 242 243 245 246 247 260 264 440 490 700 710 711 800 810 811
Expand All @@ -2646,6 +2647,9 @@ def accumulate_summary_struct_fields(matching_fields, tag, label, marc, accumula
result << subfield_values.join(' ')
end

result += Array(context.output_hash['vern_topic_search'])
result += Array(context.output_hash['format_main_ssim'])

accumulator << result.join(' ') if result.any?
end

Expand Down

0 comments on commit 7a1bb1a

Please sign in to comment.