{% 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 result is the header's headline. The content answers the other three in order. The anatomy comes from `overview/page.html` and 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 %}{% endblock %} {% block overview.properties %}{% endblock %} Measurement blocks: overview.result (along the header's foot, 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 side column, overview.location comes straight after the citation: 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 kind="measurement" label=measurement_type info=type_info id="about-measurement-type" %} {% endblock overview.badges %} {% block overview.facts %} {% if sample_visible %}
  • {% translate "Measured on" %}{{ sample }}
  • {% endif %}
  • {% translate "Dataset" %}{{ measurement.dataset }}
  • {% if primary_identifier %}
  • {{ primary_identifier.type }}{{ primary_identifier.value }}
  • {% endif %} {% endblock overview.facts %} {% 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 %}{% 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 %}
    {% if sample_status %}{{ sample_status.label }}{% endif %}
    {{ sample }}
    {% if sample.local_id %}{{ sample.local_id }}{% endif %} {% translate "in" %} {{ sample.dataset }}
    {% 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 %} {% else %}

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

    {% endif %}
    {% endblock overview.sample %} {% block overview.siblings %} {% if siblings.total %} {% for row in siblings.rows %} {% endfor %}
    {% translate "Measurement" %} {% translate "Type" %} {% translate "Dataset" %} {% translate "Added" %}
    {{ row.measurement.name|default:row.measurement.uuid }} {{ row.type|capfirst }} {% if row.measurement.dataset_id != measurement.dataset_id %}{{ row.measurement.dataset }}{% else %}{% translate "This dataset" %}{% endif %} {{ row.measurement.added|naturalday:"j M Y"|capfirst }}
    {% if siblings.more %} {% blocktranslate count counter=siblings.more asvar more %}and {{ counter }} more{% plural %}and {{ counter }} more{% endblocktranslate %} {% if sample_measurements_url %} {{ more }} {% else %}

    {{ more }}

    {% endif %} {% endif %}
    {% endif %} {% endblock overview.siblings %} {% endblock overview.main %} {% block overview.side %} {% block overview.cite %}{{ block.super }}{% endblock overview.cite %} {% block overview.location %} {% if effective_location.source == "own" %} {% elif effective_location %} {% elif sample_visible %} {% else %} {% endif %} {% endblock overview.location %} {% block overview.details %}{{ block.super }}{% endblock overview.details %} {% block overview.people %}{{ block.super }}{% endblock overview.people %} {% block overview.record_facts %}{% endblock overview.record_facts %} {% endblock overview.side %}