Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Here's a few more global attributes to pull from the yaml files #3

Merged
merged 8 commits into from
May 12, 2023

Conversation

JessyBarrette
Copy link
Contributor

@JessyBarrette JessyBarrette commented Jan 13, 2022

This PR adds a few more mapping from the CIOOS Metadata Form YAML format to ERDDAP XML.

One of the most significant changes is if a DOI is associated with a metadata record. The attributes doi and id gets the doi code while the naming_authoriy = org.doi. infoUrl gets the full DOI link.

Otherwise the id and naming_authority fields gets the CIOOS id

if record['identification'].get("identifier"):
    infoUrl = 'https://www.doi.org/' + record['identification']["identifier"]
    id = record['identification']["identifier"]
    naming_authority = "org.doi"
else:
    # Link to National CIOOS, don't think we can link to the upstream CKAN
    infoUrl = "https://catalogue.cioos.ca/en/dataset/ca-cioos_" + record['metadata']["identifier"]
    id = record['metadata']["identifier"]
    naming_authority = record["metadata"]["naming_autority"]

@JessyBarrette JessyBarrette merged commit d624468 into add-more-globals May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants