From 2a19611ce147969d3eb50f2457e04318831472ca Mon Sep 17 00:00:00 2001 From: Chris Beer Date: Wed, 7 Feb 2024 15:51:05 -0800 Subject: [PATCH] Add topic values to bib_search --- lib/traject/config/folio_config.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/traject/config/folio_config.rb b/lib/traject/config/folio_config.rb index 6b9b4b384..d00bb7a42 100644 --- a/lib/traject/config/folio_config.rb +++ b/lib/traject/config/folio_config.rb @@ -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 @@ -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