summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/container_view.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-10-12 20:04:48 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-10-13 16:21:30 -0700
commit178047b3a8795609f2eae21c1bd5848c9a0b43b6 (patch)
tree653ea55e632db0530955cb8ff10dc0609392e057 /python/fatcat_web/templates/container_view.html
parentaeedc23706cd66ae2e753a0ad5603a66049e757c (diff)
downloadfatcat-178047b3a8795609f2eae21c1bd5848c9a0b43b6.tar.gz
fatcat-178047b3a8795609f2eae21c1bd5848c9a0b43b6.zip
web: implement new schema changes
Diffstat (limited to 'python/fatcat_web/templates/container_view.html')
-rw-r--r--python/fatcat_web/templates/container_view.html15
1 files changed, 10 insertions, 5 deletions
diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html
index 0d572c63..ddad07ae 100644
--- a/python/fatcat_web/templates/container_view.html
+++ b/python/fatcat_web/templates/container_view.html
@@ -88,17 +88,22 @@
{% endif %}
{% endif %}
-{% if container.issnl != None or container.wikidata_qid != None %}
+<div class="ui segment attached">
+ <b>Type</b> &nbsp;{{ container.container_type or 'Unknown' }}
+ <b>Status</b> &nbsp;{{ container.publication_status or 'Unknown' }}
+</div>
+
+{% if container.issnl != None or container.issne != None or container.issnp != None or container.wikidata_qid != None %}
<div class="ui segment attached">
{% if container.issnl != None %}
<b>ISSN-L<sup><a href="https://en.wikipedia.org/wiki/International_Standard_Serial_Number#Linking_ISSN">?</a></sup></b>
&nbsp;<code>{{ container.issnl }}</code>
{% endif %}
- {% if container.extra != None and container.extra.issnp != None and (container.extra.issnp|length > 0) %}
- <br><i class="icon paperclip"></i>Print: &nbsp;<code>{{ container.extra.issnp }}</code>
+ {% if container.issnp or (container.extra != None and container.extra.issnp != None and (container.extra.issnp|length > 0)) %}
+ <br><i class="icon paperclip"></i>Print: &nbsp;<code>{{ container.issnp or container.extra.issnp }}</code>
{% endif %}
- {% if container.extra != None and container.extra.issne != None and (container.extra.issne|length > 0) %}
- <br><i class="icon plug"></i>Electronic: &nbsp;<code>{{ container.extra.issne }}</code>
+ {% if container.issne or (container.extra != None and container.extra.issne != None and (container.extra.issne|length > 0)) %}
+ <br><i class="icon plug"></i>Electronic: &nbsp;<code>{{ container.issne or container.extra.issne }}</code>
{% endif %}
<br>
{% if container.wikidata_qid != None %}