Skip to content

Bad role CI_RoleCode codelistvalues #12534

@etj

Description

@etj

Codelist values for gmd:CI_RoleCode should be

Entry Description Notes
author party who authored the resource
custodian party that accepts accountability and responsability for the data and ensures appropriate care and maintenance of the resource
distributor party who distributes the resource
originator party who created the resource
owner party that owns the resource
pointOfContact party who can be contacted for acquiring knowledge about or acquisition of the resource
principalInvestigator key party responsible for gathering information and conducting research
processor party who has processed the data in a manner such that the resource has been modified
publisher party who published the resource
resourceProvider party that supplies the resource
sponsor party that sponsors the resource
user party who uses the resource

In GeoNode they are defined as

class Roles(enum.Enum):
"""Roles with their `label`, `is_required`, `is_multivalue`, `is_toggled_in_metadata_editor"""
OWNER = Role("Owner", True, False, False)
METADATA_AUTHOR = Role("Metadata Author", True, True, True)
PROCESSOR = Role("Processor", False, True, True)
PUBLISHER = Role("Publisher", False, True, True)
CUSTODIAN = Role("Custodian", False, True, True)
POC = Role("Point of Contact", True, True, False)
DISTRIBUTOR = Role("Distributor", False, True, True)
RESOURCE_USER = Role("Resource User", False, True, True)
RESOURCE_PROVIDER = Role("Resource Provider", False, True, True)
ORIGINATOR = Role("Originator", False, True, True)
PRINCIPAL_INVESTIGATOR = Role("Principal Investigator", False, True, True)

where the label is also set as codeListValue:

<gmd:role>
<gmd:CI_RoleCode codeSpace="ISOTC211/19115" codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_RoleCode" codeListValue="{{ label }}">{{ label }}</gmd:CI_RoleCode>
</gmd:role>

This values are still not inserted into the xml metadata because of #12533

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions