Skip to content

Metadata with failed indexation not shown properly #7051

Description

@Fonaine

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 :

  1. the metadata is in results but most of the fields are not shown (title, abstract)
  2. in default view, most of the fields are not shown
  3. 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:

  1. 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>
  2. save the metadata
  3. find it in search

Screenshots
image
image
complete view:
image

Additional context
reproduced in v4.0 and v4.2.1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions