Open
Conversation
* static page for record view menu * Additional link drop down contains static pages * Update web-ui/src/main/resources/catalog/components/search/mdview/mdviewModule.js Co-authored-by: Jose García <josegar74@gmail.com> * record view menus customization * remove showStaticPageMenu configuration --------- Co-authored-by: Jose García <josegar74@gmail.com>
…le (#7470) * Search / Avoid NPE when record has no documentStandard. * Use indexfield names * More robust search if schema not registered Do not break search if a record indexed is using a schema not available in the current installation. Record with error are flagged with indexing error and will also log an error during search ```log Record is indexed indexing error flag. 2024-09-20T08:59:31,591 ERROR [geonetwork.datamanager] - Record 127 / Schema 'dcat-ap' is not registered in this catalog. Install it or remove those records. Record is indexed indexing error flag. 2024-09-20T09:00:04,688 ERROR [geonetwork.index] - Failed to load metadata schema for aa122105-7db3-4a4d-9887-0ced5c2ee6b5. Error is: Schema not registered : dcat-ap ``` * More robust search if schema not registered - code improvements --------- Co-authored-by: Jose García <josegar74@gmail.com>
…8247) * Database harvester * Database harvester - Define MetadataRepository as class member and use IMetadataUtils class member instead of context.getBean * Database harvester - update documentation to document the field types supported * Database harvester - support field filter operator * Database harvester - update to latest GeoNetwork version
Some users are using ROR to add organisation identifier.
```xml
<cit:CI_Organisation>
<cit:name>
<gcx:Anchor xlink:href="https://ror.org/05hnb7x64">Bureau de Recherches Géologiques et Minières (Orléans - France)</gcx:Anchor>
</cit:name>
```
It may be more relevant to use party identifier
```xml
<cit:partyIdentifier>
<mcc:MD_Identifier>
<mcc:code>
<gco:CharacterString>https://ror.org/05hnb7x64</gco:CharacterString>
</mcc:code>
</mcc:MD_Identifier>
</cit:partyIdentifier>
```
… default mode. When configuring INSPIRE validator on CSW or a portal, CSW requests are made by the validator and only public records can be retrieved by the validator. Update doc and add information in admin settings and editor. Add the possibility to configure a processing on default validation mode (like it can be done in CSW using post processing). Remove doc info about internal INSPIRE validation which was removed.
* Standard / ISO19115-3 / Duplicate record / Remove record date. When duplicating a record, remove metadata dates of the source record. They will be initialized by db dates and this will avoid to have multiple creation dates. * Standard / ISO19115-3 / Duplicate record / Remove creation date from template. It will be initialized on creation.
…les (#8585) * Allow to configure the Elasticsearch connection in environment variables * Allow to configure the Elasticsearch connection in environment variables - documentation updates * remove es.url and use the components instead (#111) Co-authored-by: david.blasby <david.blasby@geocat.net> --------- Co-authored-by: davidblasby <48937730+davidblasby@users.noreply.github.com> Co-authored-by: david.blasby <david.blasby@geocat.net>
The npm build arises during the compile phase, and the copy resources which would copy from src to target/resources, during the prepare-package maven phase. Unfortunately, the maven-resource plugin will scan the resources directories prior to these phases, leading to a first build (or a build containing a clean phase) to generate an incomplete artifact. e.g. after a `mvn clean`, a `mvn package` will lead to the following output: ``` [...] [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ gn-datahub-integration --- [INFO] skip non existing resourceDirectory /home/pmauduit/src/geonetwork/core-geonetwork/plugins/datahub-integration/src/main/resources [INFO] skip non existing resourceDirectory /home/pmauduit/src/geonetwork/core-geonetwork/plugins/datahub-integration/target/resources [INFO] [...] ``` Below the content of the generated jar: ``` % jar tf target/gn-datahub-integration-4.4.8-SNAPSHOT.jar META-INF/MANIFEST.MF META-INF/ org/ org/fao/ org/fao/geonet/ org/fao/geonet/datahub/ META-INF/maven/ META-INF/maven/org.geonetwork-opensource.plugins/ META-INF/maven/org.geonetwork-opensource.plugins/gn-datahub-integration/ org/fao/geonet/datahub/FileUtils.class org/fao/geonet/datahub/DatahubController.class rebel.xml META-INF/jpms.args META-INF/maven/org.geonetwork-opensource.plugins/gn-datahub-integration/pom.xml META-INF/maven/org.geonetwork-opensource.plugins/gn-datahub-integration/pom.properties ``` where all the expected `datahub` sudirectory is missing. This PR suggests to attach the npm / copy-resource execution goals to earlier phases, so that we can have the complete artifact with only one maven run. Tested using `mvn clean package` which generates a jar containing the expected `datahub/` directory.
Add a note about how to reload schematron. This is useful when developing new rules.
Added pre-login filter to enable autologin, and restrict guest users Added configuration for a OAuth2AuthorizedClientManager, which enables refreshing access token Fixed the check for setting the userNameAttribute in GeonetworkOidcUserService.java and the Client Registration UserNameAttribute configuration in GeonetworkClientRegistrationProvider.java to based on OIDCConfig Update the postLogoutRedirect endpoint to exclude default port numbers * Update AudienceAccessTokenValidator.java Fix logic * oidc fix * remove @configuration in OAuth2Config * add license file header
…able for other configs (#8769) * Update AudienceAccessTokenValidator.java Fix logic * Refactor excluded path to be accessible from other config * add missing import
* Change md to mdView.current.record * Add isMdWorkflowEnable to GnMdViewController * Refactor recordviewMenu * Whitespace/layout
* Prevent null parametersForLocale array * Remove duplicate parameter * Change watchlist email subject parameter from int to string
* Include links in saved selections index query * Add map list support for esri rest
* setting option to enable/disable backup during delete record * Change default of withBackup to allow null and default with setting value. * System setting of delete record backup options * Change no preference to Use API parameter option * update translation
* Add new recordProfileUserAdmin notification level * Add null profile checks in case of a misconfigured notification level * Filter out records with no group from notification when a recordProfile notification level is set
…8780) * Contact full view vs icon view configuration on record summary page * update help text * organization not showing issue
…#8781) * Minor upgrade of FontAwesome to version 6.4.2 and update Twitter and additional social links styling.
minor update
* add test * use doi as cit:identifier * use doi as onlineResource * move doi in identification section two levels up so to allow its indexation * rebase's consequence
* add test * locale in indentification info transformed into default or other * add test for indexation * also index indentification info's other locales * set time zone utc for indexation test * trigger build
- Allow configuring WMS layer info for resource name and description fields in URL mode (related to #6195) - Fix multilingual language code usage in descriptions - Document WMS layer configuration options in the user guide Refs: #6465 --------- Co-authored-by: Juan Luis Rodriguez Ponce <juanluisrp@gmail.com>
* Fix the WFS format menu for very long download format lists.
Datacite version is "The version number of the resource.". Some records may contains `cit:edition` related to other element (eg. specifications).
…9116) * Fix element creation via <gn_create/> with XPATH ending on predicate * Editor / API / XPath edit with predicate trigger NPE / Add test. --------- Co-authored-by: Francois Prunayre <fx.prunayre@gmail.com> Co-authored-by: joachimnielandt <joachim.nielandt@gmail.com>
…e resource linking modal from the schema plugin (#9117) * Enable more configurability for the Online resource linking modal from the schema plugin * Editor / Associated panel / Doc for configuration. --------- Co-authored-by: Francois Prunayre <fx.prunayre@gmail.com> Co-authored-by: joachimnielandt <joachim.nielandt@gmail.com>
…ctbearer mode to enable external API calls (#9174) * Refactor JWT Token Parsing to Use Spring Jwt Objects * Refactor JWT Authentication Provider to Use JwtAuthenticationToken * Add Spring Security OAuth2 Dependencies * Support JwtAuthenticationToken in OAuth2 Security Utilities * Add Multi-Auth Support to Listeners and Criteria * Remove unused user service
Follow up of #6792 * Update metadata linkage with permalink (instead of api/records). This allows to have DOI use for metadata linkage or custom permalink path * Perserve additional properties if set in the editor * Make the completeMetadata field readonly in the editor.
Trivy scan is reporting vulnerability on Mapfish print jyaml parser library. It is fixed by mapfish/mapfish-print-v2@28cd8bf Updating to latest 2.3.x.
* Add context handling for static page menu * Refactor static page menus to work properly with the record view page
* ISO19139 / Full record view - don't display keyword panel if there are no keywords to display * ISO19139 / ISO19115.3-2018 /Full record view - don't display distribution format if the format name is empty
…#9197) * Editor user can not change privileges when the metadata is published. * Fix publishMetadata method in integration test to save all the operations * Add test for editor sharing privileges on published metadata * Add sharePublishedMetadataWithEditorUser test that reproduces the exact scenario from issue #9196: an Editor modifies non-publication privileges on a record that was already published by a Reviewer. The test verifies that the Editor can set group privileges and that existing publication privileges are preserved. Fixes #9196. --------- Co-authored-by: Juan Luis Rodriguez Ponce <juanluisrp@gmail.com>
* Fix access to retrieve DOI servers for a metadata * Add integration tests * Fix review issues and add metadata not found test Fix grammatically broken error message for DOI metadata access. Add null check for metadata with 404 response when not found. Fix minor formatting issues (whitespace, missing space). Add test to verify 404 is returned for non-existing metadata ID. --------- Co-authored-by: Juan Luis Rodriguez Ponce <juanluisrp@gmail.com>
* Add UUID display to directory entries * Update web-ui/src/main/resources/catalog/templates/editor/directory.html Co-authored-by: Jose García <josegar74@gmail.com> --------- Co-authored-by: Olivier Curdy <91627293+OCurdy@users.noreply.github.com> Co-authored-by: Jose García <josegar74@gmail.com>
* add test * use example as online resource * thanks to lhbruneton, add stac doc
* ISO19115-3 / Formatter / Datacite * Update to version 4.6 and more complete mapping. * ISO19115-3 / From Datacite conversion. * ISO19115-3 / Formatter / Citation / Add withAffiliation parameter and add co-authors. * ISO19115-3 / From Datacite conversion / Add more example of resource type and add some more mapping values. * ISO19115-3 / Formatter / Citation / Improve affiliation output. * ISO19115-3 / Formatter / Datacite / Comment datacite value having no ISO mapping.
* Enable groupOwner access to new field * Enable groupOwner access to new field test enhancement * Enable groupOwner access to new field changes in EsHTTPProxy * Update core/src/main/java/org/fao/geonet/kernel/XmlSerializer.java Co-authored-by: Jose García <josegar74@gmail.com> * Update services/src/main/java/org/fao/geonet/api/es/EsHTTPProxy.java Co-authored-by: Jose García <josegar74@gmail.com> * Enable groupOwner access to new field - adding enum MetadataOperationFilterType --------- Co-authored-by: Jose García <josegar74@gmail.com>
* add test * full view: fix section tab disappearence one tab, a one configured with an xpath in config-editor, may group many sections, deep-equals condition has to be written in order to match when one element is equal, not when all element are equal. cf. #9000" Test record, metadata constraints and lineage were not displayed: ```xml <mdb:MD_Metadata xmlns:mda="http://standards.iso.org/iso/19115/-3/mda/1.0" xmlns:gco="http://standards.iso.org/iso/19115/-3/gco/1.0" xmlns:mrs="http://standards.iso.org/iso/19115/-3/mrs/1.0" xmlns:mds="http://standards.iso.org/iso/19115/-3/mds/2.0" xmlns:gfc="http://standards.iso.org/iso/19110/gfc/1.1" xmlns:mrd="http://standards.iso.org/iso/19115/-3/mrd/1.0" xmlns:mrc="http://standards.iso.org/iso/19115/-3/mrc/2.0" xmlns:mco="http://standards.iso.org/iso/19115/-3/mco/1.0" xmlns:mdt="http://standards.iso.org/iso/19115/-3/mdt/2.0" xmlns:srv="http://standards.iso.org/iso/19115/-3/srv/2.0" xmlns:msr="http://standards.iso.org/iso/19115/-3/msr/2.0" xmlns:mpc="http://standards.iso.org/iso/19115/-3/mpc/1.0" xmlns:lan="http://standards.iso.org/iso/19115/-3/lan/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mac="http://standards.iso.org/iso/19115/-3/mac/2.0" xmlns:gcx="http://standards.iso.org/iso/19115/-3/gcx/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gex="http://standards.iso.org/iso/19115/-3/gex/1.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:dqm="http://standards.iso.org/iso/19157/-2/dqm/1.0" xmlns:mdb="http://standards.iso.org/iso/19115/-3/mdb/2.0" xmlns:cit="http://standards.iso.org/iso/19115/-3/cit/2.0" xmlns:cat="http://standards.iso.org/iso/19115/-3/cat/1.0" xmlns:mcc="http://standards.iso.org/iso/19115/-3/mcc/1.0" xmlns:mex="http://standards.iso.org/iso/19115/-3/mex/1.0" xmlns:mdq="http://standards.iso.org/iso/19157/-2/mdq/1.0" xmlns:mas="http://standards.iso.org/iso/19115/-3/mas/1.0" xmlns:mri="http://standards.iso.org/iso/19115/-3/mri/1.0" xmlns:mmi="http://standards.iso.org/iso/19115/-3/mmi/1.0" xmlns:mrl="http://standards.iso.org/iso/19115/-3/mrl/2.0"> <mdb:metadataIdentifier> <mcc:MD_Identifier> <mcc:code> <gco:CharacterString>312a39be-7409-4333-8351-a7442312eebd</gco:CharacterString> </mcc:code> <mcc:codeSpace> <gco:CharacterString>urn:uuid</gco:CharacterString> </mcc:codeSpace> </mcc:MD_Identifier> </mdb:metadataIdentifier> <mdb:defaultLocale> <lan:PT_Locale id="EN"> <lan:language> <lan:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/" codeListValue="eng"/> </lan:language> <lan:characterEncoding> <lan:MD_CharacterSetCode codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#MD_CharacterSetCode" codeListValue="anyValidURI"/> </lan:characterEncoding> </lan:PT_Locale> </mdb:defaultLocale> <mdb:dateInfo> <cit:CI_Date> <cit:date> <gco:DateTime>2026-01-28T15:55:38.540859914Z</gco:DateTime> </cit:date> <cit:dateType> <cit:CI_DateTypeCode codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#CI_DateTypeCode" codeListValue="creation"/> </cit:dateType> </cit:CI_Date> </mdb:dateInfo> <mdb:dateInfo> <cit:CI_Date> <cit:date> <gco:DateTime>2026-01-29T07:50:25.697492263Z</gco:DateTime> </cit:date> <cit:dateType> <cit:CI_DateTypeCode codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#CI_DateTypeCode" codeListValue="revision"/> </cit:dateType> </cit:CI_Date> </mdb:dateInfo> <mdb:metadataStandard> <cit:CI_Citation> <cit:title> <gco:CharacterString>ISO 19115-3</gco:CharacterString> </cit:title> </cit:CI_Citation> </mdb:metadataStandard> <mdb:metadataLinkage> <cit:CI_OnlineResource> <cit:linkage> <gco:CharacterString>http://localhost:8080/geonetwork/srv/api/records/312a39be-7409-4333-8351-a7442312eebd</gco:CharacterString> </cit:linkage> <cit:function> <cit:CI_OnLineFunctionCode codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#CI_OnLineFunctionCode" codeListValue="completeMetadata"/> </cit:function> </cit:CI_OnlineResource> </mdb:metadataLinkage> <mdb:referenceSystemInfo> <mrs:MD_ReferenceSystem> <mrs:referenceSystemIdentifier> <mcc:MD_Identifier> <mcc:code> <gco:CharacterString>WGS 1984</gco:CharacterString> </mcc:code> </mcc:MD_Identifier> </mrs:referenceSystemIdentifier> </mrs:MD_ReferenceSystem> </mdb:referenceSystemInfo> <mdb:identificationInfo> <mri:MD_DataIdentification> <mri:citation> <cit:CI_Citation> <cit:title> <gco:CharacterString>Copie du modèle Template for geographical data créée le 2026-01-28T16:55:38.522729039+01:00[Europe/Paris]</gco:CharacterString> </cit:title> </cit:CI_Citation> </mri:citation> </mri:MD_DataIdentification> </mdb:identificationInfo> <mdb:distributionInfo> <mrd:MD_Distribution/> </mdb:distributionInfo> <mdb:distributionInfo> <mrd:MD_Distribution/> </mdb:distributionInfo> <mdb:resourceLineage> <mrl:LI_Lineage> <mrl:statement> <gco:CharacterString>LINEAGE1</gco:CharacterString> </mrl:statement> <mrl:scope> <mcc:MD_Scope> <mcc:level> <mcc:MD_ScopeCode codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#MD_ScopeCode" codeListValue="dataset"/> </mcc:level> </mcc:MD_Scope> </mrl:scope> </mrl:LI_Lineage> </mdb:resourceLineage> <mdb:resourceLineage> <mrl:LI_Lineage> <mrl:statement> <gco:CharacterString>LINEAGE2</gco:CharacterString> </mrl:statement> <mrl:scope> <mcc:MD_Scope> <mcc:level> <mcc:MD_ScopeCode codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#MD_ScopeCode" codeListValue="dataset"/> </mcc:level> </mcc:MD_Scope> </mrl:scope> </mrl:LI_Lineage> </mdb:resourceLineage> <mdb:metadataConstraints> <mco:MD_SecurityConstraints> <mco:classification> <mco:MD_ClassificationCode codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#MD_ClassificationCode" codeListValue="confidential"/> </mco:classification> </mco:MD_SecurityConstraints> </mdb:metadataConstraints> <mdb:metadataConstraints> <mco:MD_SecurityConstraints> <mco:classification> <mco:MD_ClassificationCode codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#MD_ClassificationCode" codeListValue="limitedDistribution"/> </mco:classification> </mco:MD_SecurityConstraints> </mdb:metadataConstraints> </mdb:MD_Metadata> ``` Fixes #9147 --------- Co-authored-by: christophe mangeat <christophe.mangeat@camptocamp.com>
* add test * make mef importer take info.xml isTemplate field into account when present * take metadata type param into account if set, if no set read it from info.xml, when loading samples, do not set param (Util.getParam fallback to null instead of 'n') * refactor * get rid of 'defensive' indirections * fall back to MetadataType.METADATA when readTypeFromInfo failure * remove dead code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.