{% if include.relatedArtifact.exists() %} {% for relatedArtifact in include.relatedArtifact %} {% if relatedArtifact.where(type = 'documentation').exists() %} {%include row-header.html header='Documentation' %} {% endif %} {% if relatedArtifact.where(type = 'justification').exists() %} {%include row-header.html header='Justification' %} {% endif %} {% if relatedArtifact.where(type = 'citation').exists() %} {%include row-header.html header='Citation' %} {% endif %} {% if relatedArtifact.where(type = 'depends-on').exists() %} {%include row-header.html header='Dependency' %} {% endif %} {% if relatedArtifact.display.exists() %} Description: {{relatedArtifact.display}} {% if relatedArtifact.citation.exists() or relatedArtifact.url.exists() or relatedArtifact.document.exists() or relatedArtifact.resource.exists() %}
{% endif %} {% endif %} {% if relatedArtifact.citation.exists() %} Citation: {{relatedArtifact.citation}} {% endif %} {% if relatedArtifact.url.exists() %} Content URL: {{relatedArtifact.url}} {% if relatedArtifact.document.exists() or relatedArtifact.resource.exists() %}
{% endif %} {% endif %} {% if relatedArtifact.document.exists() %} Document: {{relatedArtifact.document}} {% if relatedArtifact.citation.resource.exists() %}
{% endif %} {% endif %} {% if relatedArtifact.resource.exists() %} Resource: {{relatedArtifact.resource}}
Canonical URL: {{relatedArtifact.resource.toString()}} {% endif %} {% endfor %} {% endif %}