Some metadata are not properly indexed due to incorrect metadata xml content
For example, this part is invalid since codeListValue shoud be "theme"
<gmd:descriptiveKeywords>
<gmd:MD_Keywords>
<gmd:keyword>
<gco:CharacterString>recherche</gco:CharacterString>
</gmd:keyword>
<gmd:type>
<gmd:MD_KeywordTypeCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_KeywordTypeCode"
codeListValue="GEMET - Concepts, version 2.4 "
codeSpace="ISOTC211/19115"/>
</gmd:type>
</gmd:MD_Keywords>
</gmd:descriptiveKeywords>
The behavior is strange :
- the metadata is in results but most of the fields are not shown (title, abstract)
- in default view, most of the fields are not shown
- in complete view, all fields are OK
Is it a bug ?
In geonetwork 4, a lot of harvested metdadata have this kind of problem due to invalid contents, it will be difficult to fix this contents at source.
Thanks to your advices.
To Reproduce
Steps to reproduce the behavior:
- insert this tag in XML
<gmd:descriptiveKeywords> <gmd:MD_Keywords> <gmd:keyword> <gco:CharacterString>recherche</gco:CharacterString> </gmd:keyword> <gmd:type> <gmd:MD_KeywordTypeCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_KeywordTypeCode" codeListValue="GEMET - Concepts, version 2.4 " codeSpace="ISOTC211/19115"/> </gmd:type> </gmd:MD_Keywords> </gmd:descriptiveKeywords>
- save the metadata
- find it in search
Screenshots


complete view:

Additional context
reproduced in v4.0 and v4.2.1
Some metadata are not properly indexed due to incorrect metadata xml content
For example, this part is invalid since codeListValue shoud be "theme"
The behavior is strange :
Is it a bug ?
In geonetwork 4, a lot of harvested metdadata have this kind of problem due to invalid contents, it will be difficult to fix this contents at source.
Thanks to your advices.
To Reproduce
Steps to reproduce the behavior:
<gmd:descriptiveKeywords> <gmd:MD_Keywords> <gmd:keyword> <gco:CharacterString>recherche</gco:CharacterString> </gmd:keyword> <gmd:type> <gmd:MD_KeywordTypeCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_KeywordTypeCode" codeListValue="GEMET - Concepts, version 2.4 " codeSpace="ISOTC211/19115"/> </gmd:type> </gmd:MD_Keywords> </gmd:descriptiveKeywords>Screenshots



complete view:
Additional context
reproduced in v4.0 and v4.2.1