Skip to content

Commit

Permalink
Remove session and series metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
aprilrieger committed Nov 7, 2023
1 parent 8bdc3a7 commit 3911b03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/oral_history_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ def self.process_record(record)
history.attributes['links_t'] = []
set.children.each do |child|
next if child.class == REXML::Text

# Skip series and session level metadata
next if child.name == "relatedItem" && ['constituent', 'series'].include?(child.attributes['type'])

if child.name == "titleInfo"
child.elements.each('mods:title') do |title|
title_text = title.text.to_s.strip
Expand Down

0 comments on commit 3911b03

Please sign in to comment.