Skip to content

Commit 2236dd0

Browse files
committed
TEMP: commit geocat config
1 parent 1c1f8d8 commit 2236dd0

1 file changed

Lines changed: 46 additions & 20 deletions

File tree

conf/default.toml

Lines changed: 46 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,19 @@ datahub_url = "/datahub"
1919
# This should point to a proxy to avoid CORS errors on some requests (data preview, OGC capabilities etc.)
2020
# The actual URL will be appended after this path, e.g. : https://my.proxy/?url=http%3A%2F%2Fencoded.url%2Fows`
2121
# This is an optional parameter: leave empty to disable proxy usage
22-
proxy_path = ""
23-
22+
proxy_path = "/geonetwork/proxy?url="
2423
# This optional parameter defines, in which language metadata should be queried in elasticsearch.
2524
# Use ISO 639-1 (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format in 2 characters to indicate the language of the metadata.
2625
# Setting to "current" will use the current language of the User Interface.
2726
# If not indicated, a wildcard is used and no language preference is applied for the search.
28-
# metadata_language = "current"
29-
27+
metadata_language = "current"
3028
# This optional URL should point to the login page that allows authentication to the datahub.
3129
# If not indicated, the default geonetwork login page is used.
3230
# The following three placeholders can be part of this URL:
3331
# - ${current_url}: indicates where the current location should be injected in the constructed login URL (eg. start, end)
3432
# - ${lang2}, ${lang3}: indicates if and where the current language should be part of the login URL in language 2 or 3 letter code
3533
# Example to use the georchestra login page:
36-
# login_url = "/cas/login?service=${current_url}"
37-
# logout_url = "/geonetwork/signout"
38-
# settings_url = "/geonetwork/srv/\${lang3}/admin.console#/organization/users?userOrGroup="
39-
34+
login_url = "/geonetwork/srv/${lang3}/catalog.signin?redirect=${current_url}"
4035
# 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.
4136
# 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.
4237
# The default location in the dockerized datahub app for example is "/datahub/wc-embedder.html".
@@ -46,7 +41,7 @@ proxy_path = ""
4641
# This optional parameter defines the languages that will be provided in a dropdown for the user to translate the UI.
4742
# Available languages are listed here: (https://github.com/geonetwork/geonetwork-ui/blob/main/libs/util/i18n/src/lib/i18n.constants.ts).
4843
# More information about the translation can be found in the docs (https://geonetwork.github.io/geonetwork-ui/main/docs/reference/i18n.html)
49-
# languages = ['en', 'fr', 'de']
44+
languages = ['en', 'fr', 'de', 'it']
5045

5146
# Enables displaying a "contact block" wherever relevant in applications
5247
# contact_email = "opendata@mycompany.com"
@@ -61,28 +56,27 @@ proxy_path = ""
6156
# - for font families: https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
6257
# - for background: https://developer.mozilla.org/en-US/docs/Web/CSS/background
6358
[theme]
64-
primary_color = "#c82850"
65-
secondary_color = "#001638"
66-
main_color = "#555" # All-purpose text color
59+
primary_color = "#f19330"
60+
secondary_color = "#0071ae"
61+
main_color = "#212029" # All-purpose text color
6762
background_color = "#fdfbff"
6863

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

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

7974
# These optional parameters allow changing fonts used in the app
80-
# main_font = "'My Custom Font', fallback-font"
81-
# title_font = "'My Custom Title Font', fallback-font-title"
82-
# fonts_stylesheet_url = "https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Permanent+Marker&display=swap"
75+
main_font = "'Source Sans Pro', sans-serif"
76+
title_font = "'Public Sans', sans-serif"
77+
fonts_stylesheet_url = "https://fonts.googleapis.com/css2?family=Public+Sans:wght@600&family=Source+Sans+Pro&display=swap"
8378

84-
# Use it to set custom location for the favicon; by default, the path `/favicon.ico` will be used
85-
# favicon = "assets/favicon.ico"
79+
favicon = "/geonetwork/images/logos/favicon.png"
8680

8781
### SEARCH SETTINGS
8882

@@ -106,7 +100,7 @@ background_color = "#fdfbff"
106100
# If not configured, the default values are 'organization', 'format', 'publicationYear', 'topic', 'isSpatial', 'license'
107101
# Note that some links in the datahub app set an 'organization' filter. So this field is needed to allow unsetting such filters.
108102
# WARNING: 'resourceType' filter has been deprecated, please use 'recordKind' instead. Breaking change: 'resourceType' filter won't retrieve featureCatalog anymore.
109-
# advanced_filters = ['organization', 'format', 'publicationYear', 'topic', 'isSpatial', 'license']
103+
advanced_filters = ['topic', 'publisher', 'contact', 'keyword', 'resourceType', 'representationType', 'format']
110104

111105
# Optional; if true, the default pre-configured searches ("The latest" and "The most popular")
112106
# will not be shown under the main search bar. Defaults to false.
@@ -234,3 +228,35 @@ background_color = "#fdfbff"
234228
# Welcome to <span class="text-primary">Organization</span>'s<br>
235229
# wonderful <span style="font-size: 1.2em;">data catalogue</span>
236230
# """
231+
[translations.fr]
232+
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>'
233+
search.field.location.placeholder = 'ex: Berne'
234+
datahub.header.organisations = 'Catalogues'
235+
search.filters.publisher = 'Catalogues'
236+
datahub.header.documentation = 'Documentation'
237+
datahub.header.admin = 'Admin'
238+
datahub.header.geonetwork = 'Geocat PRO'
239+
[translations.en]
240+
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>'
241+
search.field.location.placeholder = 'ex: Berne'
242+
datahub.header.organisations = 'Catalogues'
243+
search.filters.publisher = 'Catalogues'
244+
datahub.header.documentation = 'Documentation'
245+
datahub.header.admin = 'Admin'
246+
datahub.header.geonetwork = 'Geocat PRO'
247+
[translations.de]
248+
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>'
249+
search.field.location.placeholder = 'ex: Berne'
250+
datahub.header.organisations = 'Kataloge'
251+
search.filters.publisher = 'Kataloge'
252+
datahub.header.documentation = 'Dokumentation'
253+
datahub.header.admin = 'Admin'
254+
datahub.header.geonetwork = 'Geocat PRO'
255+
[translations.it]
256+
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>'
257+
search.field.location.placeholder = 'ex: Berne'
258+
datahub.header.organisations = 'Cataloghi'
259+
search.filters.publisher = 'Cataloghi'
260+
datahub.header.documentation = "Documentazione"
261+
datahub.header.admin = 'Admin'
262+
datahub.header.geonetwork = 'Geocat PRO'

0 commit comments

Comments
 (0)