Skip to content
Snippets Groups Projects
Commit 2373ef73 authored by esikkala's avatar esikkala
Browse files

Events: add manuscript column

parent 3aa1088d
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,16 @@ export const INITIAL_STATE = { ...@@ -49,6 +49,16 @@ export const INITIAL_STATE = {
numberedList: false, numberedList: false,
minWidth: 200, minWidth: 200,
}, },
{
id: 'manuscript',
label: 'Manuscript / Collection',
desc: 'Manuscript / Collection description',
valueType: 'object',
makeLink: true,
sortValues: false,
numberedList: false,
minWidth: 200,
},
{ {
id: 'eventTimespan', id: 'eventTimespan',
label: 'Date', label: 'Date',
......
...@@ -120,6 +120,12 @@ export const facetConfigs = { ...@@ -120,6 +120,12 @@ export const facetConfigs = {
type: 'list', type: 'list',
labelPath: 'a/(skos:prefLabel|rdfs:label)', labelPath: 'a/(skos:prefLabel|rdfs:label)',
}, },
manuscript: {
labelPath: `(crm:P30_transferred_custody_of
|crm:P108_has_produced
|mmm-schema:observed_manuscript
)/skos:prefLabel`
},
eventTimespan: { eventTimespan: {
id: 'eventTimespan', id: 'eventTimespan',
facetValueFilter: '', facetValueFilter: '',
......
...@@ -17,4 +17,22 @@ export const eventProperties = ` ...@@ -17,4 +17,22 @@ export const eventProperties = `
OPTIONAL { ?eventTimespan__id crm:P82a_begin_of_the_begin ?eventTimespan__start } OPTIONAL { ?eventTimespan__id crm:P82a_begin_of_the_begin ?eventTimespan__start }
OPTIONAL { ?eventTimespan__id crm:P82b_end_of_the_end ?eventTimespan__end } OPTIONAL { ?eventTimespan__id crm:P82b_end_of_the_end ?eventTimespan__end }
} }
UNION
{
?id crm:P30_transferred_custody_of ?manuscript__id .
?manuscript__id skos:prefLabel ?manuscript__prefLabel .
BIND(?manuscript__id AS ?manuscript__dataProviderUrl)
}
UNION
{
?id mmm-schema:observed_manuscript ?manuscript__id .
?manuscript__id skos:prefLabel ?manuscript__prefLabel .
BIND(?manuscript__id AS ?manuscript__dataProviderUrl)
}
UNION
{
?id crm:P108_has_produced ?manuscript__id .
?manuscript__id skos:prefLabel ?manuscript__prefLabel .
BIND(?manuscript__id AS ?manuscript__dataProviderUrl)
}
`; `;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment