Skip to content

Commit

Permalink
updated to add a lonely operator when .text is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
aprilrieger committed Oct 6, 2023
1 parent 63e28a6 commit 46fe6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/oral_history_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def self.process_record(record)
history.attributes["series_sort"] = child.elements['mods:titleInfo/mods:title'].text
history.attributes["abstract_display"] = child.elements['mods:abstract']&.text
history.attributes["abstract_t"] = []
history.attributes["abstract_t"] << child.elements['mods:abstract'].text
history.attributes["abstract_t"] << child.elements['mods:abstract']&.text
elsif child.name == "note"
if child.attributes == {}
history.attributes["admin_note_display"] = child.text
Expand Down

0 comments on commit 46fe6dd

Please sign in to comment.