From 816589d9d3c8359ee2d4bb523e4c343f26ecac71 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 7 Mar 2019 00:39:17 -0800 Subject: webface: structure meta tags for release pages --- python/fatcat_web/templates/release_view.html | 67 +++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) (limited to 'python/fatcat_web/templates') diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html index b2ee524f..2f61dcbc 100644 --- a/python/fatcat_web/templates/release_view.html +++ b/python/fatcat_web/templates/release_view.html @@ -2,6 +2,73 @@ {% import "entity_macros.html" as entity_macros %} {% extends "base.html" %} +{# HTML metadata embeddings #} +{% if release and release.status == "active" %} + {% block extra_head %} + + + + + + + + + {% if abstracts %} + + + + {% endif %} + {% for author in authors %} + + + {% endfor %} + {% if release.release_date or release.release_year %} + + + {% endif %} + {% if release.language %} + + + {% endif %} + {% if release.container and release.container.issnl %}{# only want actual journals/conferences #} + + + + + {% if release.container.issnl %}{% endif %} + {% elif release.publisher %} + + + {% endif %} + {% if release.volume %} + + + {% endif %} + {% if release.issue %} + + + {% endif %} + {% if release.pages %} + + + {% endif %} + {% if release.doi %} + + + {% endif %} + {% if release.isbn13 %} + + + {% endif %} + {% for file in (entity.files or [])[:10] %}{% for url in (file.urls or [])[:10] %} + {% if '//web.archive.org/web/' in url.url %} + + + {% endif %} + {% endfor %}{% endfor %} + {% endblock %} +{% endif %} + {% block fullbody %}
-- cgit v1.2.3