Skip to content

<gn-results-list> (filter)

Example

You can add filters for the search in your gn-results-list web component

eg. Filter on dataset records:

  • With GeoNetwork-UI syntax

    {"cl_hierarchyLevel.key": { "dataset": true } }

Source code

html
<gn-results-list
  api-url="https://apps.titellus.net/geonetwork/srv/api"
  size="5"
  layout="TITLE"
  search-id="custom"
  primary-color="#0f4395"
  main-font="'Inter', sans-serif"
  filter='{"cl_hierarchyLevel.key": { "dataset": true } }'
></gn-results-list>

Released under the GPL-2.0 license.