From ad556b1c28e2d2cd4c84d7c16956bf52803c6b1f Mon Sep 17 00:00:00 2001 From: Chun Ly Date: Thu, 1 Apr 2021 13:52:13 -0700 Subject: [PATCH] Fix figshare metadata [ci skip] - Multi-line for preferred citation - Provide list of references with hyphen - Only provide license name --- templates/receive.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/templates/receive.html b/templates/receive.html index e8c4d16..9b902f9 100644 --- a/templates/receive.html +++ b/templates/receive.html @@ -41,7 +41,21 @@

Submitted!

{% for key in fs_metadata %} {{ key }} - {{ fs_metadata[key]|safe }} + + {% if key == 'preferred_citation' %} + {% for cite_text in fs_metadata[key] %} + {{ cite_text }}
+ {% endfor %} + {% elif key == "references" %} + {% for reference in fs_metadata[key] %} +   - {{ reference }}
+ {% endfor %} + {% elif key == "license" %} + {{ fs_metadata[key]['name'] |safe }} + {% else %} + {{ fs_metadata[key]|safe }} + {% endif %} + {% endfor %}