Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keywords appear as duplicates when multilingual #5247

Closed
jmbourdaret opened this issue Dec 7, 2020 · 4 comments
Closed

Keywords appear as duplicates when multilingual #5247

jmbourdaret opened this issue Dec 7, 2020 · 4 comments
Milestone

Comments

@jmbourdaret
Copy link

Describe the bug
keywords appears as doubled or even tripled when declared in a multilingual tag

To Reproduce
**GN 4.0.1, import record, via UI copy&paste this XML with apply XSLT ISO19139-to-115-2018:
<?xml version="1.0" encoding="UTF-8"?> <gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gcol="http://www.isotc211.org/2005/gco" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.isotc211.org/2005/gmd http://schemas.opengis.net/csw/2.0.2/profiles/apiso/1.0.0/apiso.xsd"> <gmd:fileIdentifier> <gcol:CharacterString>testtest</gcol:CharacterString> </gmd:fileIdentifier> <gmd:identificationInfo> <gmd:MD_DataIdentification> <gmd:descriptiveKeywords> <gmd:MD_Keywords> <gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType"> <gcol:CharacterString>AirTemp KW1</gcol:CharacterString> <gmd:PT_FreeText> <gmd:textGroup> <gmd:LocalisedCharacterString locale="#locale-eng">Air Temperature Sensor Height at level 1</gmd:LocalisedCharacterString> </gmd:textGroup> </gmd:PT_FreeText> </gmd:keyword> <gmd:thesaurusName> <gmd:CI_Citation> <gmd:title> <gcol:CharacterString>Variables</gcol:CharacterString> </gmd:title> </gmd:CI_Citation> </gmd:thesaurusName> </gmd:MD_Keywords> </gmd:descriptiveKeywords> </gmd:MD_DataIdentification> </gmd:identificationInfo> </gmd:MD_Metadata>

This is displayed on the view record page :
GNissueKW

Expected behavior
Only one keyword should appear on the view record page, instead of three. either the "AirTemp KW1" (the title) or the one matching my language, "Air Temperature ...".

Additional context

  • if I remove the CI_Citation, one of the three disappears, and I get "only" two keywords: AirTemp KW1 and Air Temperature...
  • if I use a very simple structure MD_Keywords->keyword->Anchor it works fine

I am aware the XML posted above isn't quite compliant with any standard, by far. It happens also with more complete records, but the structure around those parts is the same, even if they are not fully compliant neither.

@fxprunayre
Copy link
Member

Please, check #4727 before opening issues about 4.0.x.

Also #5193 will probably help in 4.0.2. Maybe you can check current branch 4.0.x and see if it fixes your case? Thanks.

@fxprunayre fxprunayre added this to the 4.0.2 milestone Dec 7, 2020
@jmbourdaret
Copy link
Author

Thanks fxprunayre for the quick reply !
#5193 may help, I'll check ASAP.

This also happens when importing data in 19115-2014 format (XSLT 2014-2018 transformation applied)

@fxprunayre
Copy link
Member

This should be fixed now. Please test and open again if you have issue on the record tested. Thanks.

@jmbourdaret
Copy link
Author

It is fixed with 4.0.2, thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants