Skip to content

Commit

Permalink
Merge pull request #8 from GeoNodeUserGroup-DE/fix-missing-filter-config
Browse files Browse the repository at this point in the history
Align config with default from upstream
  • Loading branch information
ridoo authored Jun 13, 2024
2 parents 265cfc5 + 2895eec commit 9abf6c2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
labelId: 'gnhome.uploadDataset',
value: 'layer',
type: 'link',
href: '/catalogue/#/upload/dataset'
href: '{context.getCataloguePath("/catalogue/#/upload/dataset")}'
},
{
labelId: 'gnhome.uploadDocument',
value: 'document',
type: 'link',
href: '/catalogue/#/upload/document'
href: '{context.getCataloguePath("/catalogue/#/upload/document")}'
},
{
labelId: 'gnhome.createDataset',
Expand All @@ -40,19 +40,19 @@
labelId: 'gnhome.createMap',
value: 'map',
type: 'link',
href: '/catalogue/#/map/new'
href: '{context.getCataloguePath("/catalogue/#/map/new")}'
},
{
labelId: 'gnhome.createGeostory',
value: 'geostory',
type: 'link',
href: '/catalogue/#/geostory/new'
href: '{context.getCataloguePath("/catalogue/#/geostory/new")}'
},
{
labelId: 'gnhome.createDashboard',
value: 'dashboard',
type: 'link',
href: '/catalogue/#/dashboard/new'
href: '{context.getCataloguePath("/catalogue/#/dashboard/new")}'
},
{
labelId: 'gnhome.remoteServices',
Expand All @@ -68,6 +68,9 @@
]

const resourcesGridPluginFiltersFormItems = [
{
type: 'search'
},
{
type: 'group',
labelId: 'gnhome.customFiltersTitle',
Expand Down Expand Up @@ -138,6 +141,11 @@
labelId: 'gnhome.maps',
type: 'filter'
},
{
id: 'mapviewer',
labelId: 'gnhome.mapviewers',
type: 'filter'
},
{
id: 'geostory',
labelId: 'gnhome.geostories',
Expand All @@ -155,28 +163,38 @@
disableIf: '{!state("user")}'
},
{
labelId: 'gnhome.categories',
placeholderId: 'gnhome.categoriesPlaceholder',
type: 'select',
suggestionsRequestKey: 'categories'
facet: "category"
},
{
type: 'select',
facet: "keyword"
},
{
labelId: 'gnhome.keywords',
placeholderId: 'gnhome.keywordsPlaceholder',
type: 'select',
suggestionsRequestKey: 'keywords'
facet: 'place'
},
{
labelId: 'gnhome.regions',
placeholderId: 'gnhome.regionsPlaceholder',
type: 'select',
suggestionsRequestKey: 'regions'
facet: 'user'
},
{
labelId: 'gnhome.owners',
placeholderId: 'gnhome.ownersPlaceholder',
type: 'select',
suggestionsRequestKey: 'owners'
facet: "group"
},
{
type: "accordion",
style: "facet", // style can be facet or filter (checkbox)
facet: "thesaurus"
},
{
type: 'date-range',
filterKey: 'date',
labelId: 'gnviewer.dateFilter'
},
{
labelId: 'gnviewer.extent',
type: 'extent'
}
];

Expand All @@ -197,7 +215,7 @@
const plugin = localConfig.plugins[pluginPageName][i]

const filtersFormItems = resourcesGridPluginFiltersFormItems
filtersFormItems[0].items.push({
filtersFormItems[1].items.push({
id: "externalapplication",
labelId: "externalapplications.filter",
type: "filter"
Expand Down

0 comments on commit 9abf6c2

Please sign in to comment.