Skip to content

Commit

Permalink
Include sameAs URI's when loading instance relators (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwahlin authored Nov 21, 2023
1 parent 11d3421 commit 8288909
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class ContributionByRoleStep extends MarcFramePostProcStepBase {
if (domainRef) {
def domain = ld.toTermKey(domainRef)
if (ld.isSubClassOf(domain, 'Embodiment')) {
return it[ID]
return [it[ID]] + it['sameAs'].collect { it[ID] }
}
}
} as Set
}.flatten() as Set
log.debug "Using as instance relations: $instanceRelators"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@
"contribution": [
{
"role": [
{"@id": "https://id.kb.se/relator/author"},
{"@id": "https://id.kb.se/relator/publisher"}
{"@id": "https://id.kb.se/relator/aut"},
{"@id": "https://id.kb.se/relator/pbl"}
],
"@type": "PrimaryContribution",
"agent": {"@id": "x"}
Expand All @@ -131,7 +131,7 @@
"contribution": [
{
"role": [
{"@id": "https://id.kb.se/relator/author"}
{"@id": "https://id.kb.se/relator/aut"}
],
"@type": "PrimaryContribution",
"agent": {"@id": "x"}
Expand All @@ -141,7 +141,7 @@
"contribution": [
{
"role": [
{"@id": "https://id.kb.se/relator/publisher"}
{"@id": "https://id.kb.se/relator/pbl"}
],
"@type": "Contribution",
"agent": {"@id": "x"}
Expand All @@ -157,14 +157,14 @@
"contribution": [
{
"role": [
{"@id": "https://id.kb.se/relator/author"}
{"@id": "https://id.kb.se/relator/aut"}
],
"@type": "PrimaryContribution",
"agent": {"@id": "x"}
},
{
"role": [
{"@id": "https://id.kb.se/relator/publisher"}
{"@id": "https://id.kb.se/relator/pbl"}
],
"@type": "Contribution",
"agent": {"@id": "x"}
Expand Down

0 comments on commit 8288909

Please sign in to comment.