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

Manuscripts: add facets for transfer of custody place and date

parent c566202f
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,27 @@ export const INITIAL_STATE = {
uriFilter: null,
spatialFilter: null,
type: 'hierarchical',
priority: 4
priority: 5
},
transferOfCustodyPlace: {
id: 'transferOfCustodyPlace',
label: 'Transfer of custody place',
//predicate: defined in backend
distinctValueCount: 0,
values: [],
flatValues: [],
sortBy: 'prefLabel',
sortDirection: 'asc',
sortButton: false,
spatialFilterButton: true,
isFetching: false,
searchField: true,
containerClass: 'ten',
filterType: 'uriFilter',
uriFilter: null,
spatialFilter: null,
type: 'hierarchical',
priority: 6
},
productionTimespan: {
id: 'productionTimespan',
......@@ -73,7 +93,28 @@ export const INITIAL_STATE = {
max: null,
timespanFilter: null,
type: 'timespan',
priority: 7
priority: 8
},
transferOfCustodyTimespan: {
id: 'transferOfCustodyTimespan',
label: 'Transfer of custody date',
//predicate: defined in backend
distinctValueCount: 0,
values: [],
flatValues: [],
sortBy: null,
sortDirection: null,
sortButton: false,
spatialFilterButton: false,
isFetching: false,
searchField: false,
containerClass: 'three',
filterType: 'timespanFilter',
min: null,
max: null,
timespanFilter: null,
type: 'timespan',
priority: 9
},
author: {
id: 'author',
......@@ -127,7 +168,7 @@ export const INITIAL_STATE = {
containerClass: 'ten',
filterType: 'uriFilter',
uriFilter: null,
priority: 8
priority: 10
},
// width: {
// id: 'width',
......@@ -164,7 +205,7 @@ export const INITIAL_STATE = {
containerClass: 'ten',
filterType: 'uriFilter',
uriFilter: null,
priority: 6
priority: 7
},
owner: {
id: 'owner',
......@@ -200,7 +241,7 @@ export const INITIAL_STATE = {
containerClass: 'three',
filterType: 'uriFilter',
uriFilter: null,
priority: 10
priority: 11
},
}
};
......
......@@ -30,6 +30,17 @@ export const facetConfigs = {
parentPredicate: '^crm:P108_has_produced/crm:P7_took_place_at/gvp:broaderPreferred+',
type: 'hierarchical',
},
transferOfCustodyPlace: {
id: 'productionPlace',
facetValueFilter: `
?id dct:source <http://vocab.getty.edu/tgn/> .
`,
label: 'Transfer of custody place',
labelPath: '^crm:P30_transferred_custody_of/crm:P7_took_place_at/skos:prefLabel',
predicate: '^crm:P30_transferred_custody_of/crm:P7_took_place_at',
parentPredicate: '^crm:P30_transferred_custody_of/crm:P7_took_place_at/gvp:broaderPreferred+',
type: 'hierarchical',
},
productionTimespan: {
id: 'productionTimespan',
facetValueFilter: '',
......@@ -40,6 +51,16 @@ export const facetConfigs = {
endProperty: 'crm:P82b_end_of_the_end',
type: 'timespan',
},
transferOfCustodyTimespan: {
id: 'transferOfCustodyTimespan',
facetValueFilter: '',
sortByAscPredicate: '^crm:P30_transferred_custody_of/crm:P4_has_time-span/crm:P82a_begin_of_the_begin',
sortByDescPredicate: '^crm:P30_transferred_custody_of/crm:P4_has_time-span/crm:P82b_end_of_the_end',
predicate: '^crm:P30_transferred_custody_of/crm:P4_has_time-span',
startProperty: 'crm:P82a_begin_of_the_begin',
endProperty: 'crm:P82b_end_of_the_end',
type: 'timespan',
},
language: {
id: 'language',
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