Skip to content

Instantly share code, notes, and snippets.

@fordmadox
Created October 18, 2018 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fordmadox/6f91ee378ae9d8a471bb8720fd6f2bd9 to your computer and use it in GitHub Desktop.
Save fordmadox/6f91ee378ae9d8a471bb8720fd6f2bd9 to your computer and use it in GitHub Desktop.
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