Skip to content

Commit

Permalink
adjust template to add related works
Browse files Browse the repository at this point in the history
  • Loading branch information
fostermh committed Jan 25, 2024
1 parent 97d3a1f commit 36ca534
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion metadata_xml/iso19115-cioos-template/main.j2
Original file line number Diff line number Diff line change
Expand Up @@ -612,11 +612,13 @@
</cit:CI_Citation>
</mri:name>
<mri:associationType>
<mri:DS_AssociationTypeCode codeList="https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#DS_AssociationTypeCode" codeListValue="{{- associated_resources['association_type'] -}}"></mri:DS_AssociationTypeCode>
<mri:DS_AssociationTypeCode codeList="https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#DS_AssociationTypeCode" codeListValue="{{- associated_resources['association_type_iso'] -}}"></mri:DS_AssociationTypeCode>
</mri:associationType>
{% if 'initiative_type' in associated_resources %}
<mri:initiativeType>
<mri:DS_InitiativeTypeCode codeList="https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#DS_InitiativeTypeCode" codeListValue="{{- associated_resources['initiative_type'] -}}"></mri:DS_InitiativeTypeCode>
</mri:initiativeType>
{% endif %}
</mri:MD_AssociatedResource>
</mri:associatedResource>
{% endfor %}
Expand Down
3 changes: 2 additions & 1 deletion sample_records/record.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ identification:
fr: associated resource title in french
authority: ca.cioos
code: 26443ab2-964f-4031-a53b-f132434573e8
association_type: crossReference
association_type: Cites
association_type_iso: crossReference
initiative_type: study
topic_category: elevation
dates:
Expand Down

0 comments on commit 36ca534

Please sign in to comment.