Skip to content

Commit

Permalink
Merge pull request geonetwork#982 from geonetwork/me-add-prerequisite…
Browse files Browse the repository at this point in the history
…-documentation

[ME]: Add some prerequisites documentation.
  • Loading branch information
jahow authored Sep 2, 2024
2 parents 0925104 + 3a7889a commit d000fb8
Show file tree
Hide file tree
Showing 7 changed files with 1,482 additions and 377 deletions.
5 changes: 2 additions & 3 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vitepress'
const packageJson = require('../../package.json')
import packageJson from '../../package.json'

// https://vitepress.dev/reference/site-config
export default defineConfig({
Expand Down Expand Up @@ -50,10 +50,9 @@ function sidebarGuide() {
text: 'Guide',
items: [
{ text: 'Why?', link: '/guide/why' },
{ text: 'Getting started', link: '/guide/getting-started' },
{ text: 'Prerequisites', link: '/guide/prerequisites' },
{ text: 'Configure', link: '/guide/configure' },
{ text: 'Deploy', link: '/guide/deploy' },
{ text: 'Configure', link: '/guide/configure' },
{ text: 'Theming', link: '/guide/theming' },
{ text: 'Web components', link: '/guide/webcomponents' },
{ text: 'Custom Applications', link: '/guide/custom-app' },
Expand Down
3 changes: 3 additions & 0 deletions docs/.vitepress/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
9 changes: 7 additions & 2 deletions docs/guide/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ outline: deep

# Deployment

This guide will offer you indications and advices for successfully deploying one or several GeoNetwork-UI applications
in your infrastructure.
This guide will offer you indications and advices for successfully deploying one or several GeoNetwork-UI applications in your infrastructure.

::: tip

Before diving into this guide, please refer yourself to the [prerequisites](./prerequisites.md) page to make sure your environment is ready for deploying GeoNetwork-UI applications.

:::

## Basic principle

Expand Down
35 changes: 0 additions & 35 deletions docs/guide/getting-started.md

This file was deleted.

56 changes: 53 additions & 3 deletions docs/guide/prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,58 @@
outline: deep
---

# Prerequisistes
# Prerequisites

## Chapter 1
In order for GeoNetwork-UI to work properly, the following prerequisites should be met:

## Chapter 2
## GeoNetwork

A running GeoNetwork instance is required for GeoNetwork-UI applications to run properly, as GeoNetwork API is essentially the backend service for these applications.

GeoNetwork-UI applications are compatible with **any GeoNetwork versions starting from 4.2.2.**

> [!IMPORTANT]
> For the [Metadata Editor application](../apps/editor), **GeoNetwork 4.2.5 or higher is required**.
::: details When using GeoNetwork 4.2.4 and below

These issues will cause the Metadata Editor application to not work properly:

- Saving a record will wipe all its attachments, thus potentially breaking existing records and preventing uploading attachments to new ones
> This issue has been fixed by https://github.com/geonetwork/core-geonetwork/pull/7178
- Spatial extents might be corrupted on save (an unexpected `xmlns=""` is added inside GML geometries, thus making them unreadable)
> This issue has been by https://github.com/geonetwork/core-geonetwork/pull/6650
:::

::: details When using GeoNetwork 4.2.2

A bug in GeoNetwork 4.2.2 prevents the organizations from showing up correctly in the DataHub application.

As a temporary workaround, the following change is necessary in GeoNetwork data directory:

```diff
diff --git a/web/src/main/webResources/WEB-INF/data/config/index/records.json b/web/src/main/webResources/WEB-INF/data/config/index/records.json
index 1d7e499af7..78e682e3db 100644
--- a/web/src/main/webResources/WEB-INF/data/config/index/records.json
+++ b/web/src/main/webResources/WEB-INF/data/config/index/records.json
@@ -1317,7 +1317,7 @@
"mapping": {
"type": "nested",
"properties": {
- "org": {
+ "organisation": {
"type": "keyword"
},
"role": {
```

:::

## ElasticSearch

ElasticSearch is the search engine used by GeoNetwork and is relied on heavily by GeoNetwork-UI applications to provide an outstanding search experience..

GeoNetwork-UI applications require **a running instance of ElasticSearch version 7.11 or above** alongside GeoNetwork.

For more information on which ElasticSearch version is compatible with which GeoNetwork version, please refer to the [official GeoNetwork documentation](https://docs.geonetwork-opensource.org/latest/install-guide/installing-index/#elasticsearch-compatibility).
Loading

0 comments on commit d000fb8

Please sign in to comment.