From d0c2dea01b390e93cbad490e13ddeeb943e09c37 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 28 Sep 2018 13:14:54 -0700 Subject: try to fix reference display --- python/fatcat/templates/release_view.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/python/fatcat/templates/release_view.html b/python/fatcat/templates/release_view.html index e3c077b9..c29492aa 100644 --- a/python/fatcat/templates/release_view.html +++ b/python/fatcat/templates/release_view.html @@ -144,7 +144,22 @@ Raw Object: This release citing other releases.
    {% for ref in release.refs %} -
  1. {% if ref.extra != None and ref.extra.unstructured != None %}{{ ref.extra.unstructured }}{% else %}unknown{% endif %} +
  2. + {% if ref.title %} + {{ ref.title }} + {% if ref.container_name %}{{ ref.container_name }}.{% endif %} + {% if ref.year %}{{ ref.year }}{% endif %} + {% if ref.locator %}{{ ref.locator }}{% endif %} + {% elif ref.extra and ref.extra.crossref %} + {% if ref.extra.crossref.get('author') %}{{ ref.extra.crossref['author'] }}.{% endif %} + {% if ref.extra.crossref.get('article-title') %}{{ ref.extra.crossref['article-title'] }}.{% endif %} + {% if ref.container_name %}{{ ref.container_name }}.{% endif %} + {% if ref.year %}{{ ref.year }}.{% endif %} + {% elif ref.extra and ref.extra.unstructured %} + {{ ref.extra.unstructured }} + {% else %} + unknown + {% endif %} {% if ref.target_release_id != None %} (fatcat release) {# {% elif ref.extra != None and ref.extra.doi != None %} -- cgit v1.2.3