-
Notifications
You must be signed in to change notification settings - Fork 0
Changing filtering facets on the home page, search tab or contribute tab
Elena Robu edited this page Jul 12, 2024
·
12 revisions
In GeoNetowrk 4.x the indexing is happening dynamically so as long as the thesaurus is loaded correctly, the facets can be added as needed on the home page or in amongst the filtering facets on the Search and Contribute Board pages.
A user with Administrator privileges can add a new Thesaurus into the catalog like so:
- navigate to Admin Console > Classification systems > Thesaurus
- select
From local file
from the Add thesaurus button - set the
Thesaurus type
to Theme,Origin
to external and upload the relevant thesaurus file by clicking (or dropping it on) the greenChoose or drop files here
button
As long as the thesaurus is loaded in the catalog, adding the facet to the Home page can be done from the Admin console > Settings > User interface
page by adding the following block of code to the Home page > Facets configuration
sub-section:
"th_os-ngd_tree.default": {
"terms": {
"field": "th_os-ngd_tree.default",
"size": 100,
"order": {
"_key": "asc"
},
"include": "[^^]+^?[^^]+"
}
},
In order for the facet name to appear correctly on the Home page you will need to add the following to the en-custom.json
file:
"facet-th_os-ngd_tree": "OS National Geographic Database"