Hi everyone,
I have created a custom GeoNetwork editor by configuring config-editor.xml, codelists.xml, labels.xml and strings.xml. I have configured conformity section to contain 3 state checkbox for selecting INSPIRE compliance (not evaluated, compliant, non compliant)
For “compliant” and “non compliant” selection, editor saves proper Boolean values:
<gmd:pass>
<gco:Boolean>{true or false}</gco:Boolean>
</gmd:pass>
For "not evaluated" option by default GeoNetwork creates empty <gco:Boolean> tag that is against INSPIRE requirements. Hence, I had to configure CheckboxWithNilReason.js file to write: <gmd:pass gco:nilReason=”unknown” /> in case where document is “not evaluated”.
Everything works fine, but when I enter editor and I don’t click on any checkbox (I leave them as they are) and then save & exit from editor, <gmd:pass> and <gco:Boolean> tags disappear from metadata leaving only “true” or “false” text (or nothing at all if it was “not evaluated” because all info is within tags in that case).
Anyone knows why this happens?
Configuration files:
https://github.com/mleontenko/GeoNetwork-custom-INSPIRE-Editor
Thanks
Marin Leontenko