diff --git a/lib/cocina/models/mapping/from_mods/note.rb b/lib/cocina/models/mapping/from_mods/note.rb index fe0653be..3e1c90a2 100644 --- a/lib/cocina/models/mapping/from_mods/note.rb +++ b/lib/cocina/models/mapping/from_mods/note.rb @@ -32,7 +32,7 @@ def abstracts note_present?(node) end altrepgroup_abstract_nodes, other_abstract_nodes = AltRepGroup.split(nodes: all_abstract_nodes) - other_abstract_nodes.map { |node| common_note_for(node).merge(abstract_type(node)) } + \ + other_abstract_nodes.map { |node| common_note_for(node).merge(abstract_type(node)) } + altrepgroup_abstract_nodes.map { |parallel_nodes| parallel_abstract_for(parallel_nodes) } end @@ -92,7 +92,7 @@ def notes note_present?(node) && node[:type] != 'contact' end altrepgroup_note_nodes, other_note_nodes = AltRepGroup.split(nodes: all_note_nodes) - other_note_nodes.map { |node| common_note_for(node) } + \ + other_note_nodes.map { |node| common_note_for(node) } + altrepgroup_note_nodes.map { |parallel_nodes| parallel_note_for(parallel_nodes) } end @@ -123,7 +123,7 @@ def table_of_contents note_present?(node) end altrepgroup_toc_nodes, other_toc_nodes = AltRepGroup.split(nodes: all_toc_nodes) - other_toc_nodes.map { |node| toc_for(node).merge({ type: 'table of contents' }) } + \ + other_toc_nodes.map { |node| toc_for(node).merge({ type: 'table of contents' }) } + altrepgroup_toc_nodes.map { |parallel_nodes| parallel_toc_for(parallel_nodes) } end