diff options
author | bnewbold <bnewbold@archive.org> | 2021-04-13 19:02:19 +0000 |
---|---|---|
committer | bnewbold <bnewbold@archive.org> | 2021-04-13 19:02:19 +0000 |
commit | 7ca9a96705c5a2da4fe56a8cab6aa7653dac4ea5 (patch) | |
tree | 2c7ff27a124e87d9d4dd7f71294f79609717236b /python/fatcat_web/templates/container_view.html | |
parent | 83ae1d85d093f1f37bba74283b1d689bb1f1c346 (diff) | |
parent | 34afb00666814d7bcb5c29085a25353986ea805d (diff) | |
download | fatcat-7ca9a96705c5a2da4fe56a8cab6aa7653dac4ea5.tar.gz fatcat-7ca9a96705c5a2da4fe56a8cab6aa7653dac4ea5.zip |
Merge branch 'bnewbold-ui-tweaks-202104' into 'master'
Misc UI tweaks (2021-04)
See merge request webgroup/fatcat!103
Diffstat (limited to 'python/fatcat_web/templates/container_view.html')
-rw-r--r-- | python/fatcat_web/templates/container_view.html | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html index 6ec705b4..0d572c63 100644 --- a/python/fatcat_web/templates/container_view.html +++ b/python/fatcat_web/templates/container_view.html @@ -91,7 +91,7 @@ {% if container.issnl != 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> + <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) %} @@ -135,22 +135,34 @@ </div> {% endif %} +{%- if container.extra and container.extra.kbart %} <div class="ui segment attached"> <b>Preservation Holdings</b><br> -{%- if container.extra and container.extra.kbart %} {% for k, v in container.extra.kbart.items() %} - <br><span style="text-transform: uppercase;">{{ k }}:</span> + {% if k == "lockss" %} + <a href="https://www.lockss.org/">LOCKSS</a>: + {% elif k == "clockss" %} + <a href="https://clockss.org/">CLOCKSS</a>: + {% elif k == "hathitrust" and container.issnl %} + <a href="https://catalog.hathitrust.org/Search/Home?lookfor={{ container.issnl }}&searchtype=isn&ft=&setft=false">HathiTrust</a>: + {% elif k == "portico" and container.issnl %} + <a href="https://www.portico.org/coverage/titles/?keyword={{ container.issnl }}">Portico</a>: + {% else %} + <span style="text-transform: uppercase;">{{ k }}:</span> + {% endif %} + years {% for span in v.year_spans %} - {% if span|length >= 2 %} - {{ span[0] }}-{{ span[1] }} - {% elif span|length == 1 %} - {{ span[0] }} - {% endif %} - {{ ", " if not loop.last }} + {% if span|length >= 2 -%} + {{ span[0] }}-{{ span[1] -}} + {% elif span|length == 1 -%} + {{ span[0] -}} + {% endif -%} + {{- ", " if not loop.last }} {% endfor %} + <br> {% endfor %} -{% endif %} </div> +{% endif %} <div class="ui segment attached accordion"> <div class="title" style="padding: 0px;"><i class="dropdown icon"></i><b>Lookup Links</b></div> |