Skip to content

metadata101/iso19139.bfs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iso19139.bfs: ISO19139 BfS 1.0 schema plugin

This is the ISO19139 BfS Version 1.0 schema plugin for GeoNetwork 3.x or greater version.

Installing the plugin

GeoNetwork version to use with this plugin

Use GeoNetwork 3.6.0+ version. It'll not be supported in previous versions so don't plug it into it!

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 master https://github.com/OpenBfS/iso19139.bfs iso19139.bfs

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

  <module>iso19139</module>
  <module>iso19139.bfs</module>
</modules>

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

<dependency>
  <groupId>${project.groupId}</groupId>
  <artifactId>schema-iso19139.bfs</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.bfs/src/main/plugin</directory>
    <targetPath>${basedir}/src/main/webapp/WEB-INF/data/config/schema_plugins</targetPath>
  </resource>

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.bfs/src/main/plugin to INSTALL_DIR/geonetwork/WEB-INF/data/config/schema_plugins/iso19139.bfs

  • (optional, because iso19139.bfs does not have any java-classes yet): Copy the jar file schemas/iso19139.bfs/target/schema-iso19139.bfs-3.4.2-SNAPSHOT.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.

About

ISO19139 BfS Profile Version 1.0

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • XSLT 84.2%
  • Groovy 14.2%
  • HTML 1.6%