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

Manuscripts: add facets for physical dimensions

parent 117e64af
No related branches found
No related tags found
No related merge requests found
...@@ -168,6 +168,25 @@ export const INITIAL_STATE = { ...@@ -168,6 +168,25 @@ export const INITIAL_STATE = {
containerClass: 'ten', containerClass: 'ten',
filterType: 'uriFilter', filterType: 'uriFilter',
uriFilter: null, uriFilter: null,
priority: 19,
},
height: {
id: 'height',
label: 'Height',
// predicate: defined in backend
distinctValueCount: 0,
values: [],
flatValues: [],
sortBy: 'instanceCount',
sortDirection: 'desc',
sortButton: true,
spatialFilterButton: false,
isFetching: false,
searchField: true,
containerClass: 'three',
type: 'integer',
filterType: 'integerFilter',
integerFilter: null,
priority: 11 priority: 11
}, },
width: { width: {
...@@ -187,7 +206,121 @@ export const INITIAL_STATE = { ...@@ -187,7 +206,121 @@ export const INITIAL_STATE = {
type: 'integer', type: 'integer',
filterType: 'integerFilter', filterType: 'integerFilter',
integerFilter: null, integerFilter: null,
priority: 10 priority: 12
},
folios: {
id: 'folios',
label: 'Folios',
// predicate: defined in backend
distinctValueCount: 0,
values: [],
flatValues: [],
sortBy: 'instanceCount',
sortDirection: 'desc',
sortButton: true,
spatialFilterButton: false,
isFetching: false,
searchField: true,
containerClass: 'three',
type: 'integer',
filterType: 'integerFilter',
integerFilter: null,
priority: 13
},
lines: {
id: 'lines',
label: 'Lines',
// predicate: defined in backend
distinctValueCount: 0,
values: [],
flatValues: [],
sortBy: 'instanceCount',
sortDirection: 'desc',
sortButton: true,
spatialFilterButton: false,
isFetching: false,
searchField: true,
containerClass: 'three',
type: 'integer',
filterType: 'integerFilter',
integerFilter: null,
priority: 14
},
columns: {
id: 'columns',
label: 'Columns',
// predicate: defined in backend
distinctValueCount: 0,
values: [],
flatValues: [],
sortBy: 'instanceCount',
sortDirection: 'desc',
sortButton: true,
spatialFilterButton: false,
isFetching: false,
searchField: true,
containerClass: 'three',
type: 'integer',
filterType: 'integerFilter',
integerFilter: null,
priority: 15
},
miniatures: {
id: 'miniatures',
label: 'Miniatures',
// predicate: defined in backend
distinctValueCount: 0,
values: [],
flatValues: [],
sortBy: 'instanceCount',
sortDirection: 'desc',
sortButton: true,
spatialFilterButton: false,
isFetching: false,
searchField: true,
containerClass: 'three',
type: 'integer',
filterType: 'integerFilter',
integerFilter: null,
priority: 16
},
decoratedInitials: {
id: 'decoratedInitials',
label: 'Decorated initials',
// predicate: defined in backend
distinctValueCount: 0,
values: [],
flatValues: [],
sortBy: 'instanceCount',
sortDirection: 'desc',
sortButton: true,
spatialFilterButton: false,
isFetching: false,
searchField: true,
containerClass: 'three',
type: 'integer',
filterType: 'integerFilter',
integerFilter: null,
priority: 17
},
historiatedInitials: {
id: 'historiatedInitials',
label: 'Historiated initials',
// predicate: defined in backend
distinctValueCount: 0,
values: [],
flatValues: [],
sortBy: 'instanceCount',
sortDirection: 'desc',
sortButton: true,
spatialFilterButton: false,
isFetching: false,
searchField: true,
containerClass: 'three',
type: 'integer',
filterType: 'integerFilter',
integerFilter: null,
priority: 18
}, },
collection: { collection: {
id: 'collection', id: 'collection',
......
...@@ -120,6 +120,13 @@ export const facetConfigs = { ...@@ -120,6 +120,13 @@ export const facetConfigs = {
predicate: 'crm:P45_consists_of', predicate: 'crm:P45_consists_of',
type: 'list', type: 'list',
}, },
height: {
id: 'height',
facetValueFilter: '',
labelPath: 'mmm-schema:height/crm:P90_has_value',
predicate: 'mmm-schema:height/crm:P90_has_value',
type: 'integer',
},
width: { width: {
id: 'width', id: 'width',
facetValueFilter: '', facetValueFilter: '',
...@@ -127,6 +134,48 @@ export const facetConfigs = { ...@@ -127,6 +134,48 @@ export const facetConfigs = {
predicate: 'mmm-schema:width/crm:P90_has_value', predicate: 'mmm-schema:width/crm:P90_has_value',
type: 'integer', type: 'integer',
}, },
folios: {
id: 'folios',
facetValueFilter: '',
labelPath: 'mmm-schema:folios/crm:P90_has_value',
predicate: 'mmm-schema:folios/crm:P90_has_value',
type: 'integer',
},
lines: {
id: 'lines',
facetValueFilter: '',
labelPath: 'mmm-schema:lines/crm:P90_has_value',
predicate: 'mmm-schema:lines/crm:P90_has_value',
type: 'integer',
},
columns: {
id: 'columns',
facetValueFilter: '',
labelPath: 'mmm-schema:columns/crm:P90_has_value',
predicate: 'mmm-schema:columns/crm:P90_has_value',
type: 'integer',
},
miniatures: {
id: 'miniatures',
facetValueFilter: '',
labelPath: 'mmm-schema:miniatures/crm:P90_has_value',
predicate: 'mmm-schema:miniatures/crm:P90_has_value',
type: 'integer',
},
decoratedInitials: {
id: 'folios',
facetValueFilter: '',
labelPath: 'mmm-schema:decorated_initials/crm:P90_has_value',
predicate: 'mmm-schema:decorated_initials/crm:P90_has_value',
type: 'integer',
},
historiatedInitials: {
id: 'folios',
facetValueFilter: '',
labelPath: 'mmm-schema:historiated_initials/crm:P90_has_value',
predicate: 'mmm-schema:historiated_initials/crm:P90_has_value',
type: 'integer',
},
collection: { collection: {
id: 'collection', id: 'collection',
facetValueFilter: '', facetValueFilter: '',
......
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