Skip to content

Commit a9bee34

Browse files
committed
TEMP: commit geocat config
1 parent 998c4d6 commit a9bee34

File tree

1 file changed

+58
-43
lines changed

1 file changed

+58
-43
lines changed

conf/default.toml

+58-43
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,21 @@
66
[global]
77
# This URL (relative or absolute) must point to the API endpoint of a GeoNetwork4 instance
88
geonetwork4_api_url = "/geonetwork/srv/api"
9-
datahub_url = "/datahub"
109
# This should point to a proxy to avoid CORS errors on some requests (data preview, OGC capabilities etc.)
1110
# The actual URL will be appended after this path, e.g. : https://my.proxy/?url=http%3A%2F%2Fencoded.url%2Fows`
1211
# This is an optional parameter: leave empty to disable proxy usage
13-
proxy_path = ""
12+
proxy_path = "/geonetwork/proxy?url="
1413
# This optional parameter defines, in which language metadata should be queried in elasticsearch.
1514
# Use ISO 639-2/B (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format to indicate the language of the metadata.
16-
# Setting to "current" will use the current language of the User Interface.
1715
# If not indicated, a wildcard is used and no language preference is applied for the search.
18-
# metadata_language = "current"
16+
metadata_language = "current"
1917
# This optional URL should point to the login page that allows authentication to the datahub.
2018
# If not indicated, the default geonetwork login page is used.
2119
# The following three placeholders can be part of this URL:
2220
# - ${current_url}: indicates where the current location should be injected in the constructed login URL (eg. start, end)
2321
# - ${lang2}, ${lang3}: indicates if and where the current language should be part of the login URL in language 2 or 3 letter code
2422
# Example to use the georchestra login page:
25-
# login_url = "/cas/login?service=${current_url}"
26-
# logout_url = "/geonetwork/signout"
27-
# settings_url = "/geonetwork/srv/\${lang3}/admin.console#/organization/users?userOrGroup="
23+
login_url = "/geonetwork/srv/${lang3}/catalog.signin?redirect=${current_url}"
2824
# This optional URL should point to the static html page wc-embedder.html which allows to display a web component (like chart and table) via a permalink.
2925
# URLs can be indicated from the root of the same server starting with a "/" or as an external URL. Be conscious of potential CORS issues when using an external URL.
3026
# The default location in the dockerized datahub app for example is "/datahub/wc-embedder.html".
@@ -34,10 +30,7 @@ proxy_path = ""
3430
# This optional parameter defines the languages that will be provided in a dropdown for the user to translate the UI.
3531
# Available languages are listed here: (https://github.com/geonetwork/geonetwork-ui/blob/main/libs/util/i18n/src/lib/i18n.constants.ts).
3632
# More information about the translation can be found in the docs (https://geonetwork.github.io/geonetwork-ui/main/docs/reference/i18n.html)
37-
# languages = ['en', 'fr', 'de']
38-
39-
# Enables displaying a "contact block" wherever relevant in applications
40-
# contact_email = "opendata@mycompany.com"
33+
languages = ['en', 'fr', 'de', 'it']
4134

4235
### VISUAL THEME
4336

@@ -46,77 +39,70 @@ proxy_path = ""
4639
# - for font families: https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
4740
# - for background: https://developer.mozilla.org/en-US/docs/Web/CSS/background
4841
[theme]
49-
primary_color = "#c82850"
50-
secondary_color = "#001638"
51-
main_color = "#555" # All-purpose text color
42+
primary_color = "#f19330"
43+
secondary_color = "#0071ae"
44+
main_color = "#212029" # All-purpose text color
5245
background_color = "#fdfbff"
5346

5447
# These optional parameters indicate which background should be used for the main header and the text color used
5548
# on top of the background. The color should be chosen to contrast well with the background (defaults to white).
5649
# Note: The search header does not use the header_foreground_color as it allows futher customisation via HTML.
57-
# header_background = "center /cover url('assets/img/header_bg.webp')" or "var(--color-gray-500)"
58-
# header_foreground_color = 'white'
50+
header_background = "linear-gradient(to bottom, #fff 0%, var(--color-secondary) 100%)"
51+
header_foreground_color = 'inherit'
5952

6053
# This optional parameter allows to override the fallback image that should be used for thumbnails,
6154
# if the metadata record has no thumbnail image url or it is broken.
6255
# thumbnail_placeholder = 'assets/img/my_custom_placeholder.png'
6356

6457
# These optional parameters allow changing fonts used in the app
65-
# main_font = "'My Custom Font', fallback-font"
66-
# title_font = "'My Custom Title Font', fallback-font-title"
67-
# fonts_stylesheet_url = "https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Permanent+Marker&display=swap"
68-
69-
# Use it to set custom location for the favicon; by default, the path `/favicon.ico` will be used
70-
# favicon = "assets/favicon.ico"
58+
main_font = "'Source Sans Pro', sans-serif"
59+
title_font = "'Public Sans', sans-serif"
60+
fonts_stylesheet_url = "https://fonts.googleapis.com/css2?family=Public+Sans:wght@600&family=Source+Sans+Pro&display=swap"
7161

7262
### SEARCH SETTINGS
7363

7464
# This section contains settings used for fine-tuning the search experience
7565
[search]
76-
7766
# Optional; specify a GeoJSON object to be used as filter: all records contained inside the geometry will be boosted on top,
7867
# all records which do not intersect with the geometry will be shown with lower priority; can be specified as URL or inline
7968
# Note: if the GeoJSON object contains multiple features, only the geometry of the first one will be kept!
8069
# filter_geometry_url = "https://my.domain.org/assets/boundary.geojson"
8170
# filter_geometry_data = '{ "coordinates": [...], "type": "Polygon" }'
8271

8372
# The advanced search filters available to the user can be customized with this setting.
84-
# The following fields can be used for filtering: 'organization', 'format', 'publicationYear', 'standard', 'inspireKeyword', 'keyword', 'topic', 'isSpatial', 'license', 'resourceType', 'representationType', 'producerOrg', 'publisherOrg'
85-
# If not configured, the default values are 'organization', 'format', 'publicationYear', 'topic', 'isSpatial', 'license'
86-
# Note that some links in the datahub app set an 'organization' filter. So this field is needed to allow unsetting such filters.
87-
# advanced_filters = ['organization', 'format', 'publicationYear', 'topic', 'isSpatial', 'license']
73+
# The following fields can be used for filtering: 'publisher', 'format', 'publicationYear', 'standard', 'inspireKeyword', 'topic', 'isSpatial', 'license'
74+
# any other field will be ignored
75+
advanced_filters = ['topic', 'publisher', 'contact', 'keyword', 'resourceType', 'representationType', 'format']
8876

8977
# One or several search presets can be defined here; every search preset is composed of:
9078
# - a name (which can be a translation key)
91-
# - a sort criteria: either `createDate`, `userSavedCount` or `_score` (prepend with `-` for descending sort) (optionnal)
79+
# - a sort criteria: either `createDate`, `userSavedCount` or `_score` (prepend with `-` for descending sort)
9280
# - filters which can be expressed like so:
9381
# [[search_preset]]
9482
# name = 'filterByName'
9583
# filters.q = 'Full text search'
96-
# filters.organization = ['Org 1', 'Org 2']
84+
# filters.publisher = ['Org 1', 'Org 2']
9785
# filters.format = ['format 1', 'format 2']
9886
# filters.documentStandard = ['iso19115-3.2018']
9987
# filters.inspireKeyword = ['keyword 1', 'keyword 2']
10088
# filters.topic = ['boundaries']
10189
# filters.publicationYear = ['2023', '2022']
10290
# filters.isSpatial = ['yes']
10391
# filters.license = ['unknown']
104-
# sort = 'createDate'
10592
# [[search_preset]]
10693
# name = 'otherFilterName'
10794
# filters.q = 'Other Full text search'
10895
# ...
10996

11097
# Search presets will be advertised to the user along the main search field.
11198

112-
113-
### METADATA QUALITY SETTINGS
114-
115-
# This section contains settings used for fine-tuning the metadata quality experience
116-
[metadata-quality]
117-
# By default the widget is not activated to enable it, just add this parameter.
118-
# enabled = true
119-
# If u want to use metadata quality widget this configuration is required
99+
# [[search_preset]]
100+
# sort = "-createDate"
101+
# name = 'filterByOrgs'
102+
# filters.publisher = ['DREAL', 'atmo Hauts-de-France', 'blargz']
103+
# [[search_preset]]
104+
# name = 'Wind turbines'
105+
# filters.q = 'wind'
120106

121107
### MAP SETTINGS
122108

@@ -135,8 +121,8 @@ background_color = "#fdfbff"
135121

136122
# Optional; URL template enabling to open map layers in an external viewer; if set, displays a button next to the map's layer drop down
137123
# The template must include the following placeholders, which allow the datahub to inject the correct values when adding a layer to a viewer:
138-
# ${service_url}: URL of the OWS or geojson file
139-
# ${service_type}: Type of the OWS or geojson file; currently supported WMS, WFS, GEOJSON
124+
# ${service_url}: URL of the OWS
125+
# ${service_type}: Type of the OWS; currently supported WMS, WFS
140126
# ${layer_name}: Name of the layer
141127
# Be careful to use englobing single quotes, if your template syntax includes JSON (with double quotes)
142128
# Examples:
@@ -148,9 +134,6 @@ background_color = "#fdfbff"
148134
# Optional; if true, opens external viewer in new tab (default false)
149135
# external_viewer_open_new_tab = false
150136

151-
# Optional; Will not tile WMS. False by default.
152-
# do_not_tile_wms = false
153-
154137
# Optional; if true, the default basemap will not be added to the map.
155138
# Use [[map_layer]] sections to define your own custom layers (see below)
156139
# do_not_use_default_basemap = false
@@ -199,3 +182,35 @@ background_color = "#fdfbff"
199182
# Welcome to <span class="text-primary">Organization</span>'s<br>
200183
# wonderful <span style="font-size: 1.2em;">data catalogue</span>
201184
# """
185+
[translations.fr]
186+
datahub.header.title.html = '<div class="flex justify-center sm:justify-start"><img src="assets/img/geocat-logo.png" class="h-20 sm:h-36 md:h-[10.5rem] -m-2"/></div>'
187+
search.field.location.placeholder = 'ex: Berne'
188+
datahub.header.organisations = 'Catalogues'
189+
search.filters.publisher = 'Catalogues'
190+
datahub.header.documentation = 'Documentation'
191+
datahub.header.admin = 'Admin'
192+
datahub.header.geonetwork = 'Geocat PRO'
193+
[translations.en]
194+
datahub.header.title.html = '<div class="flex justify-center sm:justify-start"><img src="assets/img/geocat-logo.png" class="h-20 sm:h-36 md:h-[10.5rem] -m-2"/></div>'
195+
search.field.location.placeholder = 'ex: Berne'
196+
datahub.header.organisations = 'Catalogues'
197+
search.filters.publisher = 'Catalogues'
198+
datahub.header.documentation = 'Documentation'
199+
datahub.header.admin = 'Admin'
200+
datahub.header.geonetwork = 'Geocat PRO'
201+
[translations.de]
202+
datahub.header.title.html = '<div class="flex justify-center sm:justify-start"><img src="assets/img/geocat-logo.png" class="h-20 sm:h-36 md:h-[10.5rem] -m-2"/></div>'
203+
search.field.location.placeholder = 'ex: Berne'
204+
datahub.header.organisations = 'Kataloge'
205+
search.filters.publisher = 'Kataloge'
206+
datahub.header.documentation = 'Dokumentation'
207+
datahub.header.admin = 'Admin'
208+
datahub.header.geonetwork = 'Geocat PRO'
209+
[translations.it]
210+
datahub.header.title.html = '<div class="flex justify-center sm:justify-start"><img src="assets/img/geocat-logo.png" class="h-20 sm:h-36 md:h-[10.5rem] -m-2"/></div>'
211+
search.field.location.placeholder = 'ex: Berne'
212+
datahub.header.organisations = 'Cataloghi'
213+
search.filters.publisher = 'Cataloghi'
214+
datahub.header.documentation = "Documentazione"
215+
datahub.header.admin = 'Admin'
216+
datahub.header.geonetwork = 'Geocat PRO'

0 commit comments

Comments
 (0)