Hi Daniel,
I have another question. How can I define which facets are shown on the Hubs to filter occurrence data? The visible filters depends of a configuration file?
This a good question and one that may help many other groups so I'd recommend posting questions like this to the GBIF ALA-portal mailing list (CCed).
The facet fields that are shown in the left column of the search results can be changed via the configuration settings - either Config.groovy or the external properties file (e.g. /data/generic-hub/config/generic-hub-config.properties), depending on which
you are using.
The config variables starting with "facets." are responsible for this:
• facets.include - comma separated list of fields to include (usually only those fields not in the default set as specified by ${biocache.baseUrl}/search/facets)
• facets.exclude - comma separated list of fields to exclude. i.e. fields in the default set you don't want to appear
• facets.hide - comma separated list of field that would be included the facet column but that you want to be hidden (i.e. unticked in the "customise filters" drop down). So these fields will be displayed if the user changes the default display
settings and chooses to turn them on.
Note you can also change the default set of facets but this is set in the biocache-service application, also via config vars (I think). You may also want to change the way facets are grouped together (see ${biocache.baseUrl}/search/grouped/facets).
I'll add this info to the Wiki, as well.
Cheers
Nick
Thanks Nick!!
This was the problem. I changed the javascript file and now is working fine.
I have another question. How can I define which facets are shown on the Hubs to filter occurrence data? The visible filters depends
of a configuration file?
Thanks again!!
Cheers,