| 74 | ==== Configuration of the facet ==== |
| 75 | |
| 76 | Facets configuration is defined on the server side because facets are computed in a separate index (named taxonomy) which is populated when metadata are indexed. The client application could also overrides the default server configuration by only displaying a subset of the information retrieved from the server. |
| 77 | |
| 78 | The !FacetsPanel widget provides a facetListConfig property to define: |
| 79 | * the list of facet to display (facets are displayed in the order of the list) |
| 80 | * and for each facet, the maximum number of top values to display |
| 81 | |
| 82 | {{{ |
| 83 | GeoNetwork.Settings.facetListConfig = [ |
| 84 | {name: 'orgNames', count: 5}, // First display the top 5 organization |
| 85 | {name: 'types'}, // then types |
| 86 | {name: 'denominators'}, // ... |
| 87 | {name: 'keywords'}, |
| 88 | {name: 'createDateYears'} // and in last position years. |
| 89 | ]; |
| 90 | }}} |