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

Wrong fixture for otherRestrictions #12745

Open
etj opened this issue Nov 26, 2024 · 0 comments
Open

Wrong fixture for otherRestrictions #12745

etj opened this issue Nov 26, 2024 · 0 comments

Comments

@etj
Copy link
Contributor

etj commented Nov 26, 2024

The identifier and descriptions for otherRestrictions have swapped content:

https://github.com/GeoNode/geonode/blob/4.4.1/geonode/base/fixtures/initial_data.json#L401-L403

{
   "model": "base.restrictioncodetype",
   "fields": {
      "is_choice": true,
      "gn_description": "otherRestrictions",
      "identifier": "limitation not listed",
      "description": "otherRestrictions"
   }
}

It causes a bad codeListValue, making the metadata document invalid:

      <gmd:resourceConstraints>
        <gmd:MD_LegalConstraints>
          <gmd:useConstraints>
            <gmd:MD_RestrictionCode codeSpace="ISOTC211/19115" codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_RestrictionCode" codeListValue="limitation not listed">limitation not listed</gmd:MD_RestrictionCode>
          </gmd:useConstraints>
          <gmd:otherConstraints>
            <gco:CharacterString/>
          </gmd:otherConstraints>
        </gmd:MD_LegalConstraints>
      </gmd:resourceConstraints>
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

1 participant