Skip to content

Commit

Permalink
Add rights_retention_statement_included
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwrobel committed Jul 28, 2022
1 parent 3e8fed2 commit 3ae96b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/services/willow_sword/assign_mets_to_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,7 @@ def assign_ref_admin
'ref_compliant_availability' => 'ref_compliant_availability',
'ref_exception_required' => 'ref_exception_required',
'ref_exception_note' => 'ref_other_exception_note',
'rights_retention_statement_included' => 'rights_retention_statement_included'
}
admin_attrs = {}
@metadata.fetch('ref_admin', {}).each do |key, val|
Expand Down
1 change: 1 addition & 0 deletions app/services/willow_sword/crosswalk_to_mods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,7 @@ def add_ref_admin
'ref_compliant_availability' => 'ref_compliant_availability',
'ref_exception_required' => 'ref_exception_required',
'ref_exception_note' => 'ref_other_exception_note',
'rights_retention_statement_included' => 'rights_retention_statement_included'
}
fields.each do |xml_fld, data_fld|
val = get_child_content('admin_information', data_fld)
Expand Down
2 changes: 1 addition & 1 deletion app/services/willow_sword/parse_mets_with_mods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def get_ref_admin
ele = @amd.xpath('sourceMD/mdWrap/xmlData/mods/extension/ref_admin')
fields = %w(apc_admin_apc_number apc_admin_review_status apc_admin_spreadsheet_identifier
apc_admin_apc_requested ref_compliant_at_deposit ref_compliant_avialability
ref_exception_required ref_exception_note)
ref_exception_required ref_exception_note rights_retention_statement_included)
ra = {}
fields.each do |field|
vals = get_text(ele, field)
Expand Down

0 comments on commit 3ae96b3

Please sign in to comment.