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
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