{% extends "overview/page.html" %} {% load i18n humanize fairdm thumbnail %} {% comment %} The measurement's own page, drawn from the base Measurement model and what the registry says about the measurement's type. A reuser asks four things of a single measurement: what the result was, how it was measured, what it was measured on, and whether they can cite and reuse it. The page answers them in that order. The anatomy and the facts column come from `overview/page.html`; the context is gathered by the measurement `Overview` plugin. A measurement type adds its own content by providing `/_overview.html`, which extends this template and fills its blocks: {% extends "measurement/measurement_overview.html" %} {% block overview.result %}…the type's own result…{% endblock %} {% block overview.properties %}…{% endblock %} Measurement blocks: overview.result (in the figures' place; shown when the type declares a `value`, otherwise the block a type fills first), then in the wide column overview.properties (empty here), overview.procedure, overview.notes, overview.sample, overview.siblings; in the facts column, overview.location (the measurement's own map, else its sample's when the viewer may open the sample and it has a location). What the registry says about the type opens from the type badge in the header. Every other block is listed in `overview/page.html`. {% endcomment %} {% block overview.badges %} {% include "overview/includes/type_badge.html" with label=measurement_type info=type_info id="about-measurement-type" %} {% endblock overview.badges %} {% block overview.notices %} {% if not measurement.dataset.data_is_public %} {% translate "Only people with access to this dataset can see this measurement until it is published." %} {% endif %} {% endblock overview.notices %} {% block overview.figures %} {% block overview.result %} {% if result %}

{% translate "Result" %}

{{ result.text }}

{% endif %} {% endblock overview.result %} {% endblock overview.figures %} {% block overview.main %} {% block overview.properties %}{% endblock overview.properties %} {% block overview.procedure %} {% if can_manage %} {% translate "Nothing is recorded about how this measurement was made. The setup and conditions are what let someone else judge whether the value is comparable with theirs." as empty %} {% else %} {% translate "No details of how this measurement was made have been recorded." as empty %} {% endif %} {% endblock overview.procedure %} {% block overview.notes %} {% if notes %}
{{ notes|safe_markdown }}
{% endif %} {% endblock overview.notes %} {% block overview.sample %} {% if sample_visible %}
{{ sample_type }} {% if sample_status %}{{ sample_status.label }}{% endif %}
{{ sample }} {% if sample.local_id %}{{ sample.local_id }}{% endif %} {% translate "in" %} {{ sample.dataset }} {% with keywords=sample.keywords.all %} {% if keywords %}
    {% for keyword in keywords %}
  • {{ keyword.display_label }}
  • {% endfor %}
{% endif %} {% endwith %}
{% else %}

{% translate "The sample this was measured on belongs to a dataset that hasn't been published yet." %}

{% endif %} {% if other_dataset %} {% translate "This measurement and its sample are recorded in different datasets. That's normal when one group measures specimens another group collected." %} {% endif %}
{% endblock overview.sample %} {% block overview.siblings %} {% if siblings.total %} {{ siblings.total }}
    {% for row in siblings.rows %}
  • {{ row.measurement.name }} {{ row.type|capfirst }} {% if row.measurement.dataset_id != measurement.dataset_id %}{% translate "in" %} {{ row.measurement.dataset }}{% endif %} {% blocktranslate with when=row.measurement.added|naturalday:"SHORT_DATE_FORMAT" %}Added {{ when }}{% endblocktranslate %}
  • {% endfor %}
{% if siblings.more %}
{% blocktranslate count counter=siblings.more %}and {{ counter }} more{% plural %}and {{ counter }} more{% endblocktranslate %} {% translate "All measurements" as label %}{% translate "Every measurement made on this sample, as a filterable table." as reason %}
{% endif %}
{% endif %} {% endblock overview.siblings %} {% endblock overview.main %} {% block overview.record_facts %} {% block overview.location %} {% if effective_location.source == "own" %} {% elif effective_location %} {% elif sample_visible %} {% else %} {% endif %} {% endblock overview.location %} {% endblock overview.record_facts %} {% block extra_js %} {{ block.super }} {% if effective_location %}{% include "overview/includes/map_library.html" %}{% endif %} {% endblock extra_js %}