Skip to content

Commit

Permalink
feat: update configuration schema. See gbif/hosted-portals#221
Browse files Browse the repository at this point in the history
  • Loading branch information
MortenHofft committed Mar 9, 2022
1 parent 49cc21d commit a571b4f
Showing 1 changed file with 31 additions and 20 deletions.
51 changes: 31 additions & 20 deletions _includes/js/config.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
var siteTheme = gbifReactComponents.themeBuilder.extend({baseTheme: 'light', extendWith: {
primary: themeStyle.colors.primary
}});
var siteTheme = gbifReactComponents.themeBuilder.extend({
baseTheme: 'light', extendWith: {
primary: themeStyle.colors.primary
}
});

var siteConfig = {
rootPredicate: {
"type": "and",
"predicates": [
{
"type":"equals",
"key": "country",
"value": "CA"
},
{
"type": "equals",
"key": "notIssues",
"value": "COUNTRY_COORDINATE_MISMATCH"
}
]
routes: {
occurrenceSearch: {
// The route you are currently using for occurrence search. The language prefix will be added automatically
// If you need special routes per language, then you have to add locale specific overwrites. The page language is available as a global variable called `pageLang`
route: '/data'
}
},
occurrenceSearchTabs: ['MAP', 'TABLE', 'GALLERY', 'DATASETS'], // possible values are TABLE, MAP, GALLERY, DATASETS
excludeFilters: ['country'],
highlightedFilters: ['occurrenceStatus', 'collectionCode', 'taxonKey', 'year', 'q']
occurrence: {
rootPredicate: {
"type": "and",
"predicates": [
{
"type": "equals",
"key": "country",
"value": "CA"
},
{
"type": "equals",
"key": "notIssues",
"value": "COUNTRY_COORDINATE_MISMATCH"
}
]
},
occurrenceSearchTabs: ['MAP', 'TABLE', 'GALLERY', 'DATASETS'], // possible values are TABLE, MAP, GALLERY, DATASETS
excludeFilters: ['country'],
highlightedFilters: ['occurrenceStatus', 'collectionCode', 'taxonKey', 'year', 'q']
}
};

0 comments on commit a571b4f

Please sign in to comment.