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

Events: update tooltips

parent 4dfcd0ba
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,10 @@ export const INITIAL_STATE = {
{
id: 'type',
label: 'Type',
desc: 'Type description',
desc: `
Distinguish between “Transfer of Custody”, “Production”, and other
types of “Activity” events.
`,
valueType: 'object',
makeLink: true,
externalLink: false,
......@@ -56,7 +59,9 @@ export const INITIAL_STATE = {
{
id: 'manuscript',
label: 'Manuscript / Collection',
desc: 'Manuscript / Collection description',
desc: `
The manuscript or manuscript collection associated with the event.
`,
valueType: 'object',
makeLink: true,
externalLink: false,
......@@ -68,7 +73,7 @@ export const INITIAL_STATE = {
id: 'eventTimespan',
label: 'Date',
desc: `
Date description.
The date or time period associated with the event.
`,
valueType: 'object',
makeLink: false,
......@@ -80,7 +85,7 @@ export const INITIAL_STATE = {
{
id: 'place',
label: 'Place',
desc: 'Place description',
desc: 'The specific place associated with the event.',
valueType: 'object',
makeLink: true,
externalLink: false,
......@@ -91,7 +96,10 @@ export const INITIAL_STATE = {
{
id: 'source',
label: 'Source',
desc: 'Source description',
desc: `
The source database (Schoenberg, Bibale, and Bodleian) that provided
the information about the event.
`,
valueType: 'object',
makeLink: true,
externalLink: true,
......
......@@ -33,7 +33,25 @@ export const INITIAL_STATE = {
filterType: 'uriFilter',
uriFilter: null,
spatialFilter: null,
priority: 3
priority: 4
},
manuscript: {
id: 'manuscript',
label: 'Manuscript / Collection',
// predicate: defined in backend
distinctValueCount: 0,
values: [],
flatValues: [],
sortBy: null,
sortDirection: null,
sortButton: false,
spatialFilterButton: false,
isFetching: false,
searchField: false,
containerClass: 'one',
filterType: 'textFilter',
textFilter: null,
priority: 2
},
eventTimespan: {
id: 'eventTimespan',
......@@ -54,7 +72,7 @@ export const INITIAL_STATE = {
max: null,
timespanFilter: null,
type: 'timespan',
priority: 2
priority: 3
},
place: {
id: 'place',
......@@ -76,6 +94,24 @@ export const INITIAL_STATE = {
type: 'hierarchical',
priority: 1
},
// source: {
// id: 'source',
// label: 'Source',
// // predicate: defined in backend
// distinctValueCount: 0,
// values: [],
// flatValues: [],
// sortBy: 'instanceCount',
// sortDirection: 'desc',
// sortButton: false,
// spatialFilterButton: false,
// isFetching: false,
// searchField: false,
// containerClass: 'three',
// filterType: 'uriFilter',
// uriFilter: null,
// priority: 5
// },
}
};
......
......@@ -318,6 +318,13 @@ export const facetConfigs = {
parentPredicate: 'crm:P7_took_place_at/gvp:broaderPreferred+',
type: 'hierarchical',
},
source: {
id: 'source',
facetValueFilter: '',
labelPath: 'dct:source/skos:prefLabel',
predicate: 'dct:source',
type: 'list',
},
},
actors: {
facetClass: 'crm:E21_Person crm:E74_Group crm:E39_Actor',
......
......@@ -65,6 +65,7 @@ export const eventProperties = `
{
?id dct:source ?source__id .
?source__id skos:prefLabel ?source__prefLabel .
BIND(?source__id AS ?source__dataProviderUrl)
OPTIONAL { ?id mmm-schema:data_provider_url ?dataProviderUrl_ }
BIND(COALESCE(?dataProviderUrl_, ?source__id) AS ?source__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