We're updating the issue view to help you get more done. 

Using "relationships" within "parents" in a hierarchy builder fails when there is more than one level

Description

In the data importer, in a hierarchy builder, using refinery options with "relationships" on specific "parents" where there's more than one parent, results in improper application of relationships due to misalignment of options with parent entries. An example configuration exhibiting the issue is:

"{""matchOn"":[""label"",""idno""],
""parents"": [{
""idno"": ""%"",
""name"": ""^24"",
""type"": ""folder"",
""attributes"": {
""description"": ""^26""
},
""relationships"": [{
""relatedTable"": ""ca_storage_locations"",
""type"": ""location"",
""relationshipType"": ""current"",
""idno"": ""^25"",
""preferred_labels"": ""Box ^25""
}]
}, {
""idno"": ""^20"",
""name"": ""^21"",
""type"": ""subsubseries"",
""attributes"": {
""scopecontent"": ""^22""
}
},
{
""idno"": ""^8"",
""name"": ""^9"",
""type"": ""subseries"",
""attributes"": {
""adminbiohist"": ""^10"",
""scopecontent"": ""^11"",
""coverageDates"": ""^12"",
""arrangement"": ""^13"",
""internal_notes"": ""^14"",
""keywords"": ""^16"",
""see_also"":

}
},
{
""idno"": ""^4"",
""name"": ""^5"",
""type"": ""series"",
""attributes"": {
""see_also"":

}

},

{
""idno"": ""^2"",
""name"": ""^3"",
""type"": ""recordgrp""
},
{
""idno"": ""%"",
""name"": ""^1"",
""type"": ""collection""
}
]
}"

Environment

None

Assignee

Seth

Reporter

Talya Cooper

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure