Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

Commit

Permalink
Fix figshare metadata [ci skip]
Browse files Browse the repository at this point in the history
 - Multi-line for preferred citation
 - Provide list of references with hyphen
 - Only provide license name
  • Loading branch information
astrochun committed Apr 1, 2021
1 parent 80183bb commit ad556b1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion templates/receive.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,21 @@ <h1>Submitted!</h1>
{% for key in fs_metadata %}
<tr>
<th>{{ key }}</th>
<td>{{ fs_metadata[key]|safe }}</td>
<td>
{% if key == 'preferred_citation' %}
{% for cite_text in fs_metadata[key] %}
{{ cite_text }}<br>
{% endfor %}
{% elif key == "references" %}
{% for reference in fs_metadata[key] %}
&nbsp;&nbsp;- {{ reference }}<br>
{% endfor %}
{% elif key == "license" %}
{{ fs_metadata[key]['name'] |safe }}
{% else %}
{{ fs_metadata[key]|safe }}
{% endif %}
</td>
</tr>
{% endfor %}
</table>
Expand Down

0 comments on commit ad556b1

Please sign in to comment.