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

Works perspective: add author facet

parent a7124cf5
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,23 @@ export const INITIAL_STATE = { ...@@ -32,6 +32,23 @@ export const INITIAL_STATE = {
filterType: 'uriFilter', filterType: 'uriFilter',
uriFilter: null uriFilter: null
}, },
author: {
id: 'author',
label: 'Author',
// predicate: defined in backend
distinctValueCount: 0,
values: [],
flatValues: [],
sortBy: 'prefLabel',
sortDirection: 'asc',
sortButton: true,
spatialFilterButton: false,
isFetching: false,
searchField: true,
containerClass: 'ten',
filterType: 'uriFilter',
uriFilter: null
},
}, },
}; };
......
...@@ -81,6 +81,14 @@ export const facetConfigs = { ...@@ -81,6 +81,14 @@ export const facetConfigs = {
predicate: 'dct:source', predicate: 'dct:source',
type: 'list', type: 'list',
}, },
author: {
id: 'author',
facetValueFilter: '',
label: 'Author',
labelPath: '^frbroo:R16_initiated/mmm-schema:carried_out_by_as_possible_author/skos:prefLabel',
predicate: '^frbroo:R16_initiated/mmm-schema:carried_out_by_as_possible_author',
type: 'list'
},
}, },
people: { people: {
rdfType: 'mmm-schema:Person', rdfType: 'mmm-schema:Person',
......
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