diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-10-12 20:04:48 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-10-13 16:21:30 -0700 |
commit | 178047b3a8795609f2eae21c1bd5848c9a0b43b6 (patch) | |
tree | 653ea55e632db0530955cb8ff10dc0609392e057 /python/fatcat_web/templates/container_view.html | |
parent | aeedc23706cd66ae2e753a0ad5603a66049e757c (diff) | |
download | fatcat-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.html | 15 |
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> {{ container.container_type or 'Unknown' }} + <b>Status</b> {{ 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> <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: <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: <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: <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: <code>{{ container.issne or container.extra.issne }}</code> {% endif %} <br> {% if container.wikidata_qid != None %} |