aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-03-28 22:23:05 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-03-28 22:23:05 -0700
commit4d484c18add7d6ac05a28e9fb0ca01298381ed41 (patch)
treea15e28c7437ad3dcdfe840e0e4d3b91071e7bfa2
parent4b75a81cbd0faeefa6a0f04b97ecc6832924ee69 (diff)
parent49891b9b306fcab27b0e55c1979269aa88580323 (diff)
downloadfatcat-4d484c18add7d6ac05a28e9fb0ca01298381ed41.tar.gz
fatcat-4d484c18add7d6ac05a28e9fb0ca01298381ed41.zip
Merge branch 'bnewbold-translation-view'
-rw-r--r--python/fatcat_web/entity_helpers.py4
-rw-r--r--python/fatcat_web/templates/entity_base.html3
2 files changed, 7 insertions, 0 deletions
diff --git a/python/fatcat_web/entity_helpers.py b/python/fatcat_web/entity_helpers.py
index 4d13da43..7ac0f155 100644
--- a/python/fatcat_web/entity_helpers.py
+++ b/python/fatcat_web/entity_helpers.py
@@ -72,6 +72,10 @@ def enrich_release_entity(entity):
# November 1.
if ref.extra and ref.extra.get('unstructured'):
ref.extra['unstructured'] = strip_extlink_xml(ref.extra['unstructured'])
+ # for backwards compatability, copy extra['subtitle'] to subtitle
+ if not entity.subtitle and entity.extra and entity.extra.get('subtitle'):
+ if isinstance(entity.extra['subtitle'], str):
+ entity.subtitle = entity.extra['subtitle']
# author list to display; ensure it's sorted by index (any othors with
# index=None go to end of list)
authors = [c for c in entity.contribs if
diff --git a/python/fatcat_web/templates/entity_base.html b/python/fatcat_web/templates/entity_base.html
index 437bc071..189d52b0 100644
--- a/python/fatcat_web/templates/entity_base.html
+++ b/python/fatcat_web/templates/entity_base.html
@@ -26,6 +26,9 @@
<h1 class="ui header">
{% if entity_type == "container" %}
{{ entity.name }}
+ {% if entity.extra.original_title %}
+ <br><span style="font-size: smaller; font-weight: normal;">{{ entity.extra.original_title }}</span>
+ {% endif %}
{% elif entity_type == "creator" %}
{{ entity.display_name }}
{% elif entity_type == "file" %}