Skip to content

MDTranslator ISO19115-2 to DCATUS: distribution ignores transferOptions if distributor is not present #6062

@torrin47

Description

@torrin47

Within a ISO19115-2 record, either distributionFormat or distributor is mandatory under MD_Distribution, but not both. (We usually refer to the NOAA Workbook for authoritative guidance: https://www.ncei.noaa.gov/sites/default/files/2024-07/ISO%2019115-2%20Workbook.pdf) transferOptions is always optional, though often the element that is of primary importance to a catalog.data.gov listing. The code in MDtranslator here:
https://github.com/GSA/mdTranslator/blob/master/lib/adiwg/mdtranslator/readers/iso19115_2/modules/module_distribution.rb
correctly processes transferOptions to DCATUS if distributor is a sibling element, but ignores transferOptions if only distributionFormat is present.

How to reproduce

Translate a ISO19115 record with and without a distributor element.

Expected behavior

Expect transferOptions to be translated regardless of the presence of distributor

Actual behavior

transferOptions is only translated if distributor element is present.

Sketch

Related to #4894

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSoftware defect or bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions