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

Manuscripts: add sales price facet

parent 54365710
No related branches found
No related tags found
No related merge requests found
...@@ -117,6 +117,25 @@ export const INITIAL_STATE = { ...@@ -117,6 +117,25 @@ export const INITIAL_STATE = {
type: 'timespan', type: 'timespan',
priority: 9 priority: 9
}, },
// salesPrice: {
// id: 'salesPrice',
// label: 'Sales price',
// // 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: 19
// },
author: { author: {
id: 'author', id: 'author',
label: 'Author', label: 'Author',
...@@ -169,7 +188,7 @@ export const INITIAL_STATE = { ...@@ -169,7 +188,7 @@ export const INITIAL_STATE = {
containerClass: 'ten', containerClass: 'ten',
filterType: 'uriFilter', filterType: 'uriFilter',
uriFilter: null, uriFilter: null,
priority: 19, priority: 20,
}, },
height: { height: {
id: 'height', id: 'height',
...@@ -375,7 +394,7 @@ export const INITIAL_STATE = { ...@@ -375,7 +394,7 @@ export const INITIAL_STATE = {
containerClass: 'three', containerClass: 'three',
filterType: 'uriFilter', filterType: 'uriFilter',
uriFilter: null, uriFilter: null,
priority: 12 priority: 21
}, },
} }
}; };
......
...@@ -176,6 +176,13 @@ export const facetConfigs = { ...@@ -176,6 +176,13 @@ export const facetConfigs = {
predicate: 'mmm-schema:historiated_initials/crm:P90_has_value', predicate: 'mmm-schema:historiated_initials/crm:P90_has_value',
type: 'integer', type: 'integer',
}, },
salesPrice: {
id: 'folios',
facetValueFilter: '',
labelPath: '^crm:P30_transferred_custody_of/mmm-schema:had_sales_price/crm:P181_has_amount',
predicate: '^crm:P30_transferred_custody_of/mmm-schema:had_sales_price/crm:P181_has_amount',
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