From 03699cc3b403a957770d0aa307c25546d5bc779e Mon Sep 17 00:00:00 2001 From: Christina Chortaria Date: Fri, 18 Oct 2024 12:29:28 -0400 Subject: [PATCH] Delete a dot only at the end of the string --- marc_to_solr/lib/traject_config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marc_to_solr/lib/traject_config.rb b/marc_to_solr/lib/traject_config.rb index a1d44b6b..fb9dffc0 100644 --- a/marc_to_solr/lib/traject_config.rb +++ b/marc_to_solr/lib/traject_config.rb @@ -895,7 +895,7 @@ next if subjects.present? record.fields.select { |field| field.tag[0] == '6' }.each do |field| next unless field['2'] == 'fast' - value = field['a']&.delete('.') + value = field['a']&.delete_suffix('.') accumulator << value end end