Skip to content

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.

License

geonetwork/core-geonetwork

main
Switch branches/tags
Code

Latest commit

* Search / Aggregation / Add decorator

Currently only home page aggregations INSPIRE themes, ISO topics and resource type are illustrated with an icon.
This PR makes it more generic so that we can configure the way we want to decorate an aggregation in the home page or in other pages.

A decorator can be used to add an icon or image next to an aggregation. The decorator is configured in the `meta` properties of the facet:

```js
"resourceType": {
  "terms": {
    "field": "resourceType",
    "size": 10
  },
  "meta": {
    "decorator": {
      "type": "icon",
      "prefix": "fa fa-2x pull-left gn-icon-"
    }
}
```

Decorator types are:

* Fixed icon. eg. adding a tag icon to all values

```js
decorator: {
  type: 'icon',
  prefix: "fa fa-fw fa-tag "
}
```

* Icon defined in a CSS class name using the value. eg. used for resource types `gn-icon-dataset`

```js
"decorator": {
  "type": "icon",
  "prefix": "fa fa-fw gn-icon-"
}
```

* Icon defined in a css class name which is using only a portion of the value. eg. used for INSPIRE themes. The expression allows to extract the value

```js
"decorator": {
  "type": "icon",
  "prefix": "fa fa-fw gn-icon iti-",
  "expression": "http://inspire.ec.europa.eu/theme/(.*)"
}
```

* Icon defined with a map of values for the class name to use.

```js
"decorator": {
  "type": "icon",
  "prefix": "fa fa-fw ",
  "map": {
    "availableInViewService": "fa-globe",
    "availableInDownloadService": 'fa-download"
  }
}
```

Define the image to use for each values:

```js
"decorator": {
  "type": "img",
  "map": {
    "EEA": "https://upload.wikimedia.org/wikipedia/en/thumb/7/79/EEA_agency_logo.svg/220px-EEA_agency_logo.svg.png"
  }
}
```

* Fix for the missing font of the `all values except` option in the facets list

* New styling for the facets on the homepage when an image is used for the background of a topic

Co-authored-by: Michel Gabriël <michel.gabriel@geocat.net>
5b05453

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time

GeoNetwork Open-source

Build Health

Build Status

Features

  • Immediate search access to local and distributed geospatial catalogues
  • Uploading and downloading of data, graphics, documents, pdf files and any other content type
  • An interactive Web Map Viewer to combine Web Map Services from distributed servers around the world
  • Online editing of metadata with a powerful template system
  • Scheduled harvesting and synchronization of metadata between distributed catalogs
  • Support for OGC-CSW 2.0.2 ISO Profile, OAI-PMH, SRU protocols
  • Fine-grained access control with group and user management
  • Multi-lingual user interface

Documentation

User documentation is managed in the geonetwork/doc repository covering all releases of GeoNetwork.

The docs folder includes geonetwork/doc as a git submodule. This documentation is compiled into html pages during a release for publishing on the geonetwork-opensource.org website.

Developer documentation located in README.md files in the code-base:

  • General documentation for the project as a whole is in this README.md
  • Software Development Documentation provides instructions for setting up a development environment, building Geonetwork, compiling user documentation, and making a releases
  • Module specific documentation can be found in each module (assuming there is module specific documentation required)

About

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published