Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
add a todo comment for what will soon have issues in github
Browse files Browse the repository at this point in the history
  • Loading branch information
ndushay committed Mar 26, 2021
1 parent e5f308e commit 3fb807e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/indexers/descriptive_metadata_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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
Expand Down

0 comments on commit 3fb807e

Please sign in to comment.