{% comment -%} The life and times of Dr John Dee Copyright (C) 2021 Jordan Cole This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . {% endcomment -%} {% assign entry = include.entry -%} {% assign source_record = entry.source_key | collection_entry: "sources" -%} {% assign author_key = entry | attribute_from_object_or_source_record: "author_key" -%} {% include person_data.html person_key=author_key itemprop="author" -%} {% include people_avatars.html people_keys=entry.all_people_keys highlighted_person_key=author_key -%} {% if entry.category == "correspondence" -%}

Letter from {% include person_link.html person_key=entry.author_key -%} to {% include person_link.html person_key=entry.recipient_key -%}

{% endif -%} {% assign content_with_annotations = entry | annotate_content -%} {% assign content_as_html = content_with_annotations | liquify -%} {% if content_as_html == "" -%} {% assign edition_data = source_record.editions | find: "edition_key", entry.edition_key -%} {% if entry.volume_key -%} {% for volume_hash in edition_data.volumes -%} {% assign edition_volume_key = volume_hash | first -%} {% if edition_volume_key == entry.volume_key -%} {% assign edition_volume_data = volume_hash | last -%} {% endif -%} {% endfor -%} {% endif -%} {% assign source_url = edition_volume_data.url | default: edition_data.url | default: source_record.url -%}

The content for {{ entry.path }} has not been entered yet. {% if site.github_repository_url -%} You can help by contributing a transcription. {% endif -%} {% if source_url -%} The content is on {{ entry.location }} of the source. {% endif -%}

{% else -%} {% assign language = entry | attribute_from_object_or_source_record: "language" -%}
{% if entry.dates.size > 1 -%} ({{ entry.dates | first }} to {{ entry.dates | last }}) {% endif -%} {% if entry.source_key -%}
{% endif -%}

{{ content_as_html }}

{% if entry.source_key -%}
{% endif -%}
{% include source_data.html source_key=entry.source_key edition_key=entry.edition_key location=entry.location volume=entry.volume -%} {{ entry.source_key | mla_citation: entry.location, entry.edition_key, entry.volume_key, entry.author_key }} {% endif -%}