GithubHelp home page GithubHelp logo

classicvalues / iso19139.nl.geografie.2.0.0 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metadata101/iso19139.nl.geografie.2.0.0

0.0 1.0 0.0 958 KB

Dutch profile for datasets v2

License: GNU General Public License v2.0

XSLT 87.61% Groovy 9.56% HTML 2.83%

iso19139.nl.geografie.2.0.0's Introduction

Dutch profile for datasets v2 schema plugin

Dutch profile for datasets v2 (iso19139.nl.geografie.2.0.0).

Installing the plugin

GeoNetwork version to use with this plugin

Use GeoNetwork 3.10.

Adding the plugin to the source code

The best approach is to add the plugin as a submodule into GeoNetwork schema module.

cd schemas
git submodule add -b 3.10.x https://github.com/metadata101/iso19139.nl.geografie.2.0.0 iso19139.nl.geografie.2.0.0

Add the new module to the schema/pom.xml:

  <module>iso19139</module>
  <module>iso19139.nl.geografie.2.0.0</module>
</modules>

Add the dependency in the web module in web/pom.xml:

<dependency>
  <groupId>${project.groupId}</groupId>
  <artifactId>schema-iso19139.nl.geografie.2.0.0</artifactId>
  <version>${project.version}</version>
</dependency>

Add the module to the webapp in web/pom.xml:

<execution>
  <id>copy-schemas</id>
  <phase>process-resources</phase>
  ...
  <resource>
    <directory>${project.basedir}/../schemas/iso19139.nl.geografie.2.0.0/src/main/plugin</directory>
    <targetPath>${basedir}/src/main/webapp/WEB-INF/data/config/schema_plugins</targetPath>
  </resource>

Adding editor configuration

Editor configuration in GeoNetwork 3.4.x is done in schemas/iso19139.nl.geografie.2.0.0/src/main/plugin/iso19139.nl.geografie.2.0.0/layout/config-editor.xml inside each view. Default values are the following:

  <sidePanel>
    <directive data-gn-onlinesrc-list=""/>
    <directive gn-geo-publisher=""
               data-ng-if="gnCurrentEdit.geoPublisherConfig"
               data-config="{{gnCurrentEdit.geoPublisherConfig}}"
               data-lang="lang"/>
    <directive data-gn-validation-report=""/>
    <directive data-gn-suggestion-list=""/>
    <directive data-gn-need-help="user-guide/describing-information/creating-metadata.html"/>
  </sidePanel>

Build the application

Once the application is build, the war file contains the schema plugin:

$ mvn clean install -Penv-prod

Deploy the profile in an existing installation

After building the application, it's possible to deploy the schema plugin manually in an existing GeoNetwork installation:

  • Copy the content of the folder schemas/iso19139.nl.geografie.2.0.0/src/main/plugin to INSTALL_DIR/geonetwork/WEB-INF/data/config/schema_plugins/iso19139.nl.geografie.2.0.0

  • Copy the jar file schemas/iso19139.nl.geografie.2.0.0/target/schema-iso19139.nl.geografie.2.0.0-3.10.jar to INSTALL_DIR/geonetwork/WEB-INF/lib.

If there's no changes to the profile Java code or the configuration (config-spring-geonetwork.xml), the jar file is not required to be deployed each time.

Setup xml snippets

The editor uses a snippet-directive for the conformance field which allows to select a snippet from the catalogue, to be introduced at that location. Unzip snippets.zip to a folder, use import (select type 'subtemplate') to import all the files into the catalogue.

Setup thesauri

The editor uses a number of thesauri as pick lists for various fields. These thesauri can be downloaded from the INSPIRE registry and Nationaalgeoregister.nl.

iso19139.nl.geografie.2.0.0's People

Contributors

jodygarnett avatar josegar74 avatar juanluisrp avatar pascallike avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.