Skip to content

geohyd/geonetwork-MapStoreExtension

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MapStore extension for geonetwork extension project - Version: 1.0.2

This repo is a fork of MapStoreExtension.

It contains the client side of the geonetwork extension project.

Thanks to it a user can:

  • visualize millesime layers (parent-child geonetwork files)
  • translate attribute table headers based on a geonetwork catalog attributes
  • edit attribute with multiplechoice based on a geonetwork catalog attributes

This extension was created on request of DREAL Corse.

Build .zip

Clone the repository with the --recursive option to automatically clone submodules.

git clone --recursive https://github.com/geohyd/geonetwork-MapStoreExtension

Install NodeJS >= 12.16.1 , if needed, from here.

Install the app and then build the .zip archive to be imported in MapStore :

npm install

npm run ext:build

This will create a GeonetworkExtension.zip zip in dist directory.

Add the extension to your MapStore instance

  • from UI : import GeonetworkExtension.zip throught a context creator/editor (this will automatically create the pluginsConfig.json.patch file which effects are documented below)

or

  • copy zip content in georchestra_datadir/mapstore/dist/extensions/GeonetworkExtension/
  • create/edit the following files in georchestra_datadir/mapstore :
    • extensions.json (to reference extensions) : { "GeonetworkExtension": { "bundle":"dist/extensions/GeonetworkExtension/index.js", "translations":"dist/extensions/GeonetworkExtension/translations" } }
    • pluginsConfig.json.patch (optionnal, see below) : [ { "op":"add", "path":"/plugins/-", "value": { "name":"GeonetworkExtension", "dependencies":["Toolbar"], "extension":true } } ]

pluginsConfig.json.patch file

This file determines how the extension will be handled by MapStore UI.

If present as created when imported from the UI (above content) :

  • any extension added to MapStore will be present in the default context and available for all other contexts.
  • while creating/editing a context any mapstore admin user can accidentally remove the extension, which is then totally removed from the MapStore instance, i.e., not available for any context anymore.

If present with "extension":false :

  • the extension will be considered as a plugin and will be present in the default context and available for all other contexts.
  • it won't be possible to accidentally remove the extension, it won't be possible to remove it directly from the UI (entirely removing the extension is needed to reload it/load an extension with the same name.

If absent :

  • the extension will be present in the default context and not available for any other contexts.

About

A MapStore project to develop mapstore extensions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 75.3%
  • HTML 23.1%
  • Other 1.6%