{% extends "record/view.html" %}{% block record_data %} {% for group, fields in g.field_groups.items() %} {% if h.group_fields_have_data(g.record_dict, fields.keys()) %} {% for field, label in fields.items() %} {% if g.record_dict[field] %} {% endif %} {% endfor %} {% endif %} {% endfor %}
{{ group }}
{{ label }}: {% if field == 'determinations' %} {% if g.record_dict['determinations'] %} {% for label in g.record_dict['determination_labels'] %} {% endfor %} {% for i in range(0, g.record_dict['determinations']['_len']) %} {% for label in g.record_dict['determination_labels'] %} {% endfor %} {% endfor %}
{{ label }}
{% if g.record_dict['determinations'][label][i] %} {% taxonomy'determinations' + label, g.record_dict['collectionCode'], g.record_dict %} {{ g.record_dict['determinations'][label][i] }} {% endtaxonomy %} {% endif %}
{% endif %} {% elif field == 'collectionCode' %} {{ g.record_dict[field] }} ( {{ h.get_department(g.record_dict[field]) }}) {% elif field == 'associatedOccurrences' %} {% set voucher_guid = h.get_sample_voucher_guid(g.record_dict[field]) %} {{ voucher_guid }} {% elif field == 'created' or field == 'modified' %} {{ g.record_dict[field] }} {% else %} {% set value = g.record_dict[field] %} {% if value is iterable and (value is not string and value is not mapping) %} {{ value | join(", ") }} {% else %} {% taxonomy field, g.record_dict['collectionCode'], g.record_dict %} {{ g.record_dict[field] }} {% endtaxonomy %} {% endif %} {% endif %}
{% if field in g.custom_filters %} {% set filter = g.custom_filters[field] %} {% else %} {% set filter = '%s:%s' % (field, g.record_dict[field]) %} {% endif %} {% if filter and field in filterable_fields %} {% endif %}
{% endblock %} {% block record_additional_information_inner %} {% snippet "record/snippets/external_links.html", pkg_dict=g.pkg_dict, res=res, record=g.record_dict %} {{ super() }}{% endblock %} {% block record_additional_information_rows %} {% if 'created' in g.record_dict %} {{ _('Created') }} {{ g.record_dict['created'] }} {% endif %} {% if 'modified' in g.record_dict %} {{ _('Last updated') }} {{ g.record_dict['modified'] }} {% endif %} {{ super() }} {% endblock %}