Created
October 18, 2018 18:18
-
-
Save fordmadox/6f91ee378ae9d8a471bb8720fd6f2bd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AppConfig[:record_inheritance] = { | |
:archival_object => { | |
:composite_identifiers => { | |
:include_level => true, | |
:identifier_delimiter => " ", | |
}, | |
:inherited_fields => [ | |
{ | |
:property => "title", | |
:inherit_directly => true | |
}, | |
{ | |
:property => "component_id", | |
:inherit_directly => false | |
}, | |
{ | |
:property => "language", | |
:inherit_directly => true | |
}, | |
{ | |
:property => "dates", | |
:inherit_directly => true | |
}, | |
{ | |
:property => "extents", | |
:inherit_directly => false | |
}, | |
{ | |
:property => "linked_agents", | |
:inherit_if => proc { |json| json.select {|j| j["role"] == "creator"} }, | |
:inherit_directly => false | |
}, | |
{ | |
:property => "notes", | |
:inherit_if => proc { |json| json.select {|j| j["type"] == "accessrestrict"} }, | |
:inherit_directly => true | |
}, | |
{ | |
:property => "notes", | |
:inherit_if => proc { |json| json.select {|j| j["type"] == "prefercite"} }, | |
:inherit_directly => false | |
}, | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment