Changes between Version 11 and Version 12 of NarrowYourSearchWidget


Ignore:
Timestamp:
Sep 17, 2012, 3:57:50 AM (12 years ago)
Author:
fxp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NarrowYourSearchWidget

    v11 v12  
    7272The filters can be reset using the reset search button.
    7373
     74==== Configuration of the facet ====
     75
     76Facets 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
     78The !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{{{
     83GeoNetwork.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}}}
    7491
    7592