From 3fb807e5e38f6d776a5c7b673d5a489567b51752 Mon Sep 17 00:00:00 2001 From: Naomi Dushay Date: Fri, 26 Mar 2021 16:29:00 -0700 Subject: [PATCH] add a todo comment for what will soon have issues in github --- app/indexers/descriptive_metadata_indexer.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/indexers/descriptive_metadata_indexer.rb b/app/indexers/descriptive_metadata_indexer.rb index b72455ef..512bcab0 100644 --- a/app/indexers/descriptive_metadata_indexer.rb +++ b/app/indexers/descriptive_metadata_indexer.rb @@ -8,6 +8,9 @@ def initialize(cocina:, **) end # @return [Hash] the partial solr document for descMetadata + # TODO: Naomi will be writing issues that get correct mapping from Arcadia, that + # accommodate structured and parallel values and + # any other cocina wrinkles, as well as ensuring the logic follows what SearchWorks uses, conceptually def to_solr { 'originInfo_date_created_tesim' => creation&.date&.map(&:value), @@ -26,11 +29,11 @@ def publisher_name end def publication - @publication ||= events.find { |node| node.type == 'publication' } + @publication ||= events.find { |event| event.type == 'publication' } end def creation - events.find { |node| node.type == 'creation' } + events.find { |event| event.type == 'creation' } end def topics