diff --git a/_includes/js/config.js b/_includes/js/config.js index e287833..8e50dc7 100644 --- a/_includes/js/config.js +++ b/_includes/js/config.js @@ -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'] + } };