Commit 7d1f5bbc authored by Magnus Westergaard's avatar Magnus Westergaard
Browse files

DEICH-5811: Index and display publisher subdivision.

parent d9990d00
......@@ -159,9 +159,8 @@ export default {
publishers: {
label: "Utgiver",
shape: "LinkList",
valueKey: "name",
searchQuery: "utgiver",
searchValue: "name"
transformation: (publishers = []) => publishers.map(fullName)
},
contributors: {
label: "Aktører",
......
......@@ -34,7 +34,7 @@ CONSTRUCT {
:parts ?pubPartWorkMainTitle ;
:partTitle ?partTitle ;
:publicationYear ?publicationYear ;
:publishedBy ?publishedByName ;
:publishedBy ?publishedBy ;
:recordId ?recordId ;
:serialNumber ?serialNumber ;
:series ?serialTitle ;
......@@ -74,9 +74,11 @@ CONSTRUCT {
UNION { ?uri deich:hasDescription ?description }
UNION { ?uri deich:ageLimit ?ageLimit }
UNION {
?uri deich:publishedBy ?publishedBy .
?publishedBy deich:name ?publishedByName
OPTIONAL { ?publishedBy deich:alternativeName ?publishedByAltName }
?uri deich:publishedBy ?publishedByNode .
?publishedByNode deich:name ?publishedByName
OPTIONAL { ?publishedByNode deich:alternativeName ?publishedByAltName }
OPTIONAL { ?publishedByNode deich:subdivision ?publishedBySubdivision }
BIND(IF(BOUND(?publishedBySubdivision), CONCAT(?publishedByName, ". ", ?publishedBySubdivision), ?publishedByName) AS ?publishedBy)
}
UNION { ?uri deich:subtitle ?subtitle . }
UNION { ?uri deich:partNumber ?partNumber . }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment