generated from gbif/hp-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update configuration schema. See gbif/hosted-portals#221
- Loading branch information
1 parent
49cc21d
commit a571b4f
Showing
1 changed file
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] | ||
} | ||
}; |