From 95ef7f917cbcac255a1fd2ce1182b4420cbb3b7f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 7 Mar 2019 00:40:02 -0800 Subject: webface: ScholarlyArticle microdata for all release pages --- python/fatcat_web/templates/release_view.html | 60 +++++++++++++++------------ 1 file changed, 34 insertions(+), 26 deletions(-) (limited to 'python/fatcat_web') diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html index 2f61dcbc..f5035c96 100644 --- a/python/fatcat_web/templates/release_view.html +++ b/python/fatcat_web/templates/release_view.html @@ -71,10 +71,10 @@ {% block fullbody %} -
+
-

{{ release.title }} +

{{ release.title }}
release {{ release.ident }}

{% if authors != [] %} by {% endif %} @@ -95,35 +95,37 @@

-
+
{% if release.release_status == 'published' %} - Published in {{ container.name }} + 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 %} -
- +
{% if container != None and container.issnl != None %} - - + + - + + - + + @@ -160,13 +162,13 @@ {% for contrib in release.contribs %}
ISSN-L{{ container.issnl }} + {{ container.issnl }} {% endif %} {% if release.volume != None %} -
Volume{{ release.volume }} +
Volume{{ release.volume }} {% endif %} {% if release.issue != None %} -
Issue{{ release.issue }} +
Issue{{ release.issue }} {% endif %} {% if release.pages != None %} -
Page(s){{ release.pages }} +
Page(s){{ release.pages }} {% endif %} {% if release.release_date != None %}
Release Date
{% if contrib.index or contrib.index == 0 %} {{ contrib.index + 1 }}{% endif %} - +
{{ contrib.role or 'unknown' }} {% endfor %}
@@ -178,7 +180,7 @@ {% if release.abstracts != [] %}

Abstract

-

{{ release.abstracts[0].content }} +

{{ release.abstracts[0].content }}
In {{ release.abstracts[0].mimetype }} format {% endif %} @@ -312,14 +314,20 @@ No Full Text Available {% endif %} -{% if release.release_type != None %} +{% if release.release_type or release.release_status or release.release_year %}

- Type  {{ release.release_type }} -
Status   {{ release.release_status or 'unknown' }} - {% if release.release_date != None %} -
Date   {{ release.release_date }} - {% elif release.release_year != None %} -
Year   {{ release.release_year }} + {% if release.release_date %} + Type  {{ release.release_type }}
+ {% endif %} + {% if release.release_status %} + Status   {{ release.release_status or 'unknown' }}
+ {% endif %} + {% if release.release_date %} + + Date   {{ release.release_date }}
+ {% elif release.release_year %} + + Year   {{ release.release_year }}
{% endif %}
{% endif %} @@ -327,7 +335,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