Skip to content

Commit

Permalink
feat: APPS-2504 Update Arce OAI with Related Records field (#1134)
Browse files Browse the repository at this point in the history
* update mods_arce_solr_document with related_records

* remove related_recod from oai.yml so it does not show up on the DC feed
  • Loading branch information
jendiamond authored Nov 29, 2023
1 parent 1faaa59 commit 878a46a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/models/concerns/mods_arce_solr_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ def to_mods_arce
end
end
end
if self[:related_record_ssm]
xml['mods'].relatedItem(otherType: "relatedRecord") do
self[:related_record_ssm]&.each { |related_record| xml['mods'].identifier({ type: 'ark' }, related_record.to_s) }
end
end
if self[:related_to_ssm]
xml['mods'].relatedItem(otherType: "relatedTo", otherTypeAuth: "Bibframe") do
xml['mods'].titleInfo do
Expand Down
1 change: 0 additions & 1 deletion config/oai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ DC:
description:
- content_disclaimer_ssm
- related_to_ssm
- related_record_ssm
DPLA:
parent_schema: default
object:
Expand Down

0 comments on commit 878a46a

Please sign in to comment.