Skip to content

Commit 24a4a86

Browse files
committed
use doi as cit:identifier
1 parent 072f78c commit 24a4a86

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

logs/geonetwork.log

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2025-10-31T16:32:12,005 WARN [org.apache.commons.dbcp2.BasicDataSource] - The requested JMX name [jdbcDataSource] was not valid and will be ignored.
2+
2025-10-31T16:32:12,676 WARN [org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager] - Found explicit default persistence unit with name 'default' in persistence.xml - overriding local default persistence unit settings ('packagesToScan'/'mappingResources')
3+
2025-10-31T16:32:24,744 WARN [org.apache.commons.dbcp2.BasicDataSource] - The requested JMX name [jdbcDataSource] was not valid and will be ignored.
4+
2025-10-31T16:32:26,593 ERROR [geonetwork.encryptor] - Password database encryptor initialization error - could not locate encryptor password via encryption file /home/cmangeat/sources/core-geonetwork/web/src/main/webapp/WEB-INF/data/config/encryptor.properties or supplied properties/environment variable (encryptor.password). GeoNetwork can not decrypt passwords already stored in the database. Either recover the previous password and restart the application or manually null all existing encrypted passwords in the database and re-enter passwords via the application
5+
2025-10-31T16:32:26,594 INFO [geonetwork.encryptor] - Generating a new random password for the database password encryptor
6+
2025-10-31T16:32:26,594 INFO [geonetwork.encryptor] - Password database encryptor initialized - Keep the file /home/cmangeat/sources/core-geonetwork/web/src/main/webapp/WEB-INF/data/config/encryptor.properties safe and make a backup. When upgrading to a newer version of GeoNetwork the file must be restored, otherwise GeoNetwork will not be able to decrypt passwords already stored in the database.
7+
2025-10-31T16:40:46,798 INFO [geonetwork.harvester] - Starting harvesting of stac
8+
2025-10-31T16:40:46,828 INFO [geonetwork.harvester] - Started harvesting from node : stac (SimpleUrlHarvester)
9+
2025-10-31T16:40:47,071 WARN [geonetwork.harvester] - Page size param 'limit' not found or is not a numeric in URL 'https://stacapi-cdos.apps.okd.crocc.meso.umontpellier.fr/collections'. Can't build a list of pages.
10+
2025-10-31T16:41:04,244 INFO [geonetwork.harvester] - Total records processed in all searches :31
11+
2025-10-31T16:41:04,244 INFO [geonetwork.harvester] - Ended harvesting from node : stac (SimpleUrlHarvester)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2025-10-31T16:40:46,798 INFO [geonetwork.harvester] - Starting harvesting of stac
2+
2025-10-31T16:40:46,828 INFO [geonetwork.harvester] - Started harvesting from node : stac (SimpleUrlHarvester)
3+
2025-10-31T16:40:47,071 WARN [geonetwork.harvester] - Page size param 'limit' not found or is not a numeric in URL 'https://stacapi-cdos.apps.okd.crocc.meso.umontpellier.fr/collections'. Can't build a list of pages.
4+
2025-10-31T16:41:04,244 INFO [geonetwork.harvester] - Total records processed in all searches :31
5+
2025-10-31T16:41:04,244 INFO [geonetwork.harvester] - Ended harvesting from node : stac (SimpleUrlHarvester)

schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/stac-to-iso19115-3.xsl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
xmlns:mri="http://standards.iso.org/iso/19115/-3/mri/1.0"
1010
xmlns:gco="http://standards.iso.org/iso/19115/-3/gco/1.0"
1111
xmlns:gex="http://standards.iso.org/iso/19115/-3/gex/1.0"
12+
xmlns:gcx="http://standards.iso.org/iso/19115/-3/gcx/1.0"
13+
xmlns:xlink="http://www.w3.org/1999/xlink"
1214
xmlns:gml="http://www.opengis.net/gml/3.2"
1315
xmlns:java-xsl-util="java:org.fao.geonet.util.XslUtil"
1416
exclude-result-prefixes="#all">
@@ -141,6 +143,21 @@
141143
</cit:title>
142144
</cit:CI_Citation>
143145
</mri:citation>
146+
<xsl:if test="sci_doi">
147+
<cit:identifier>
148+
<mcc:MD_Identifier>
149+
<mcc:code>
150+
<gcx:Anchor xlink:href="{concat('https://doi.org/', sci_doi)}"><xsl:value-of select="sci_doi"/></gcx:Anchor>
151+
</mcc:code>
152+
<mcc:codeSpace>
153+
<gco:CharacterString>doi.org</gco:CharacterString>
154+
</mcc:codeSpace>
155+
<mcc:description>
156+
<gco:CharacterString>Digital Object Identifier (DOI)</gco:CharacterString>
157+
</mcc:description>
158+
</mcc:MD_Identifier>
159+
</cit:identifier>
160+
</xsl:if>
144161
<mri:abstract>
145162
<gco:CharacterString>
146163
<xsl:value-of

schemas/iso19115-3.2018/src/test/resources/stacHarvester/biomass-and-wood-output.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,19 @@
7878
</cit:title>
7979
</cit:CI_Citation>
8080
</mri:citation>
81+
<cit:identifier>
82+
<mcc:MD_Identifier>
83+
<mcc:code>
84+
<gcx:Anchor xlink:href="https://doi.org/10.5281/zenodo.15489231">10.5281/zenodo.15489231</gcx:Anchor>
85+
</mcc:code>
86+
<mcc:codeSpace>
87+
<gco:CharacterString>doi.org</gco:CharacterString>
88+
</mcc:codeSpace>
89+
<mcc:description>
90+
<gco:CharacterString>Digital Object Identifier (DOI)</gco:CharacterString>
91+
</mcc:description>
92+
</mcc:MD_Identifier>
93+
</cit:identifier>
8194
<mri:abstract>
8295
<gco:CharacterString>FORMS-T : Height, aboveground biomass and wood volume density time-series at 10 to 30 m resolution over france (2018-2024)</gco:CharacterString>
8396
</mri:abstract>

0 commit comments

Comments
 (0)