From 0242d1034933b163f0d48db1e3403e89d15db94e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 7 Mar 2019 01:38:47 -0800 Subject: webface: more validator fixes, including microdata bump to document-wide --- python/fatcat_web/templates/release_view.html | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'python/fatcat_web/templates/release_view.html') diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html index 2130c0f7..b42db4a5 100644 --- a/python/fatcat_web/templates/release_view.html +++ b/python/fatcat_web/templates/release_view.html @@ -69,9 +69,11 @@ {% endblock %} {% endif %} +{% block main_extra_attr %}itemscope itemtype="http://schema.org/ScholarlyArticle" itemid="#release"{% endblock %} + {% block fullbody %} -
+

{{ release.title }} @@ -100,10 +102,10 @@ Published in {{ container.name }} {% else %} Released as a {{ release.release_type }} - {% if container %} in {{ container.name }} {% endif %} + {% if container %} in {{ container.name }} {% endif %} {% endif %} {% if release.publisher %} - by {{ release.publisher }} + by {{ release.publisher }} {% endif %}

@@ -162,7 +164,7 @@ {% for contrib in release.contribs %}
{% if contrib.index or contrib.index == 0 %} {{ contrib.index + 1 }}{% endif %} -
- {% else %}

There are no known files associated with this release (you could try other releases for this work?). @@ -245,7 +246,6 @@ {% endfor %} - {% endif %} @@ -267,7 +267,6 @@ {% endfor %} - {% endif %} @@ -323,10 +322,10 @@ Status   {{ release.release_status or 'unknown' }}
{% endif %} {% if release.release_date %} - + Date   {{ release.release_date }}
{% elif release.release_year %} - + Year   {{ release.release_year }}
{% endif %}

@@ -335,7 +334,7 @@ {% if release.doi or release.pmid or release.pmcid or release.wikidata_qid %}
{% if release.doi %} - DOI  {{ release.doi }}
+ DOI  {{ release.doi }}
{% endif %} {% if release.pmid != None %} PubMed  {{ release.pmid }}
-- cgit v1.2.3