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

Manuscripts: add collection facet

parent d2ba0a31
No related branches found
No related tags found
No related merge requests found
......@@ -16,8 +16,8 @@ export const INITIAL_STATE = {
facetUpdateID: 0,
updatedFilter: null,
facets: {
label: {
id: 'label',
prefLabel: {
id: 'prefLabel',
label: 'Label',
// predicate: defined in backend
distinctValueCount: 0,
......@@ -103,9 +103,9 @@ export const INITIAL_STATE = {
filterType: 'uriFilter',
uriFilter: null
},
owner: {
language: {
id: 'owner',
label: 'Owner',
label: 'Language',
// predicate: defined in backend
distinctValueCount: 0,
values: [],
......@@ -120,9 +120,26 @@ export const INITIAL_STATE = {
filterType: 'uriFilter',
uriFilter: null
},
language: {
collection: {
id: 'collection',
label: 'Collection',
// predicate: defined in backend
distinctValueCount: 0,
values: [],
flatValues: [],
sortBy: 'instanceCount',
sortDirection: 'desc',
sortButton: true,
spatialFilterButton: false,
isFetching: false,
searchField: true,
containerClass: 'ten',
filterType: 'uriFilter',
uriFilter: null
},
owner: {
id: 'owner',
label: 'Language',
label: 'Owner',
// predicate: defined in backend
distinctValueCount: 0,
values: [],
......
......@@ -5,10 +5,11 @@
export const facetConfigs = {
manuscripts: {
facetClass: 'frbroo:F4_Manifestation_Singleton',
label: {
id: 'label',
prefLabel: {
id: 'prefLabel',
labelPath: 'skos:prefLabel',
textQueryProperty: 'skos:prefLabel',
type: 'text',
textQueryProperty: 'skos:prefLabel'
},
author: {
id: 'author',
......@@ -45,16 +46,17 @@ export const facetConfigs = {
predicate: 'crm:P128_carries/crm:P72_has_language',
type: 'list',
},
// for sorting facet results
prefLabel: {
labelPath: 'skos:prefLabel',
},
event: {
id: 'event',
// event: {
// id: 'event',
// facetValueFilter: '',
// label: 'Event',
// labelPath: '^mmm-schema:observed_manuscript/mmm-schema:observed_time-span',
// type: 'list',
// },
collection: {
id: 'collection',
facetValueFilter: '',
label: 'Event',
labelPath: '^mmm-schema:observed_manuscript/mmm-schema:observed_time-span',
predicate: 'crm:P46i_forms_part_of',
type: 'list',
},
owner: {
......
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