Source code for tdw_catalog.metadata_template.point_of_contact

from typing import Optional
import tdw_catalog.metadata_template.organization_member as organization_member
from tdw_catalog.organization_member import OrganizationMember

import tdw_catalog.metadata_template.field as field


[docs]class Field(field.RecommendedTemplateMetadataField[OrganizationMember], organization_member.Field): """ Primary person who manages the data license Attributes ---------- None """ def __init__(self, key: str, default_value: Optional[OrganizationMember], optional: Optional[bool]) -> None: super().__init__(key, default_value, optional) def serialize(self) -> dict: res = super().serialize() res["recommended_type"] = "poc" return res