-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
Indexing / Do not create empty object if no text #7294
Conversation
When a CharacterString or an Anchor is empty, an empty object is created in the index. This is not necessary. eg. ```xml <gmd:identificationInfo> <gmd:MD_DataIdentification> <gmd:citation> <gmd:CI_Citation> <gmd:title> <gco:CharacterString>Biologische Waarderingskaart en Natura 2000 Habitat</gco:CharacterString> </gmd:title> <gmd:alternateTitle gco:nilReason="missing"> <gco:CharacterString/> </gmd:alternateTitle> ```
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, works fine.
Follow #7294 Clarify usage of the function which can return an element or text.
Follow #7294 Clarify usage of the function which can return an element or text.
When a CharacterString or an Anchor is empty, an empty object is created in the index. This is not necessary. eg. ```xml <gmd:identificationInfo> <gmd:MD_DataIdentification> <gmd:citation> <gmd:CI_Citation> <gmd:title> <gco:CharacterString>Biologische Waarderingskaart en Natura 2000 Habitat</gco:CharacterString> </gmd:title> <gmd:alternateTitle gco:nilReason="missing"> <gco:CharacterString/> </gmd:alternateTitle> ```
Follow #7294 Clarify usage of the function which can return an element or text.
When a CharacterString or an Anchor is empty, an empty object is created in the index. This is not necessary.
eg.
Index change:
This would avoid field label to be displayed with no value eg.