summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-30 15:57:07 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-30 15:57:07 -0700
commit3d2fe9c9a4f0c1754fad5b789ed91cebd495f1cf (patch)
tree3835c76d3fe8385db69fb04f05d9fbda2d67974a /python/fatcat_web/templates
parentab5755117907a5e4f55e3b508c75f4f5220c6333 (diff)
downloadfatcat-3d2fe9c9a4f0c1754fad5b789ed91cebd495f1cf.tar.gz
fatcat-3d2fe9c9a4f0c1754fad5b789ed91cebd495f1cf.zip
stabilize sort order for entity metadata
Diffstat (limited to 'python/fatcat_web/templates')
-rw-r--r--python/fatcat_web/templates/entity_macros.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html
index b3819e0f..c47782a8 100644
--- a/python/fatcat_web/templates/entity_macros.html
+++ b/python/fatcat_web/templates/entity_macros.html
@@ -28,9 +28,9 @@
{% macro extra_metadata(extra) -%}
<table class="ui definition single line fixed compact small unstackable table">
<tbody>
-{% for (key, value) in extra.items() %}
+{% for (key, value) in extra.items()|sort %}
{% if key in ("ia", "crossref", "kbart", "arxiv", "jstor", "pubmed") and value is mapping and value %}
- {% for (inner_key, inner_value) in value.items() %}
+ {% for (inner_key, inner_value) in value.items()|sort %}
<tr><td class="three wide right aligned"><code>{{ key }}.{{ inner_key }}</code></td>
<td class="seven wide"><code>{{ inner_value }}</code>
{% endfor %}