Skip to content

EML upload: distribution/online/url must have a function="download" attribute #231

@rogerdahl

Description

@rogerdahl

Currently, a distribution/online/url is used even if it does not have a function="download" attribute, but if it does not have that, the element should be ignored, and if there are no url elements with function="download", the EML should be rejected.

Current code:

    url_el = physical_el.find('distribution/online/url')
    if url_el is None:
        raise util.exc.EmlError(f'No <url> element found for entity: {entity_name_el.text}')

The attribute requirement can probably be added to the find().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions