aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates
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
parentaeedc23706cd66ae2e753a0ad5603a66049e757c (diff)
downloadfatcat-178047b3a8795609f2eae21c1bd5848c9a0b43b6.tar.gz
fatcat-178047b3a8795609f2eae21c1bd5848c9a0b43b6.zip
web: implement new schema changes
Diffstat (limited to 'python/fatcat_web/templates')
-rw-r--r--python/fatcat_web/templates/container_view.html15
-rw-r--r--python/fatcat_web/templates/entity_macros.html11
-rw-r--r--python/fatcat_web/templates/release_lookup.html13
-rw-r--r--python/fatcat_web/templates/release_view.html5
4 files changed, 37 insertions, 7 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 %}
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html
index 6b565f69..9ebff060 100644
--- a/python/fatcat_web/templates/entity_macros.html
+++ b/python/fatcat_web/templates/entity_macros.html
@@ -228,7 +228,7 @@
{% endif %}
{# ### IDENTIFIERS #}
- {% if paper.doi or paper.pmcid or paper.pmid or paper.arxiv_id or paper.jstor_id or paper.doaj_id or paper.dblp_id %}
+ {% if paper.doi or paper.pmcid or paper.pmid or paper.arxiv_id or paper.jstor_id or paper.doaj_id or paper.dblp_id or paper.hdl %}
<br>
{% endif %}
{% if paper.doi %}
@@ -251,6 +251,9 @@
{% if paper.dblp_id %}
<a href="https://dblp.org/rec/{{ paper.dblp_id }}.html" style="color: green;">dblp:{{ paper.dblp_id }}</a> &nbsp;
{% endif %}
+ {% if paper.hdl %}
+ <a href="https://hdl.handle.net/{{ paper.hdl }}" style="color: green;">hdl:{{ paper.hdl}}</a> &nbsp;
+ {% endif %}
{# WIP: elastic release work grouping searches
<br>
@@ -276,6 +279,9 @@
{% if entity.container_type %}
&nbsp;{{ entity.container_type }}
{% endif %}
+ {% if entity.publication_status and entity.publication_status != "active" %}
+ &nbsp;{{ entity.publication_status }}
+ {% endif %}
</div>
{% endmacro %}
@@ -449,6 +455,9 @@ yellow
{% if release.ext_ids.dblp %}
<a href="#" style="color:green;">dblp:{{ release.ext_ids.dblp }}</a>&nbsp;
{% endif %}
+ {% if release.ext_ids.hdl %}
+ <a href="https://hdl.handle.net/{{ release.ext_ids.hdl }}" style="color:green;">hdl:{{ release.ext_ids.hdl }}</a>&nbsp;
+ {% endif %}
{% endmacro %}
{# similar to the release_summary above, but for CSL-JSON #}
diff --git a/python/fatcat_web/templates/release_lookup.html b/python/fatcat_web/templates/release_lookup.html
index add8da93..a0ef3bb3 100644
--- a/python/fatcat_web/templates/release_lookup.html
+++ b/python/fatcat_web/templates/release_lookup.html
@@ -38,6 +38,9 @@ you don't know the version, you can append "v1" to get the first version.
{% elif lookup_key == "wikidata_qid" %}
<p>You can check if it is a real Wikidata entity by visiting:
<b><a href="https://www.wikidata.org/wiki/{{ lookup_value }}">https://www.wikidata.org/wiki/{{ lookup_value }}</a></b>
+{% elif lookup_key == "hdl" %}
+<p>You can check if it is a real Handle entity by visiting:
+<b><a href="https://hdl.handle.net/{{ lookup_value }}">https://hdl.handle.net/{{ lookup_value }}</a></b>
{% endif %}
</div>
{% endif %}
@@ -120,6 +123,16 @@ releases must be versioned; if you don't know the version you can always lookup
<i>&nbsp; Old and new style supported, but version always required for exact lookups.</i>
</div>
+<div class="ui attached segment">
+
+<h2>Handle</h2>
+<p><a href="https://handle.net">Handle identifiers</a> are registered under the
+hierarchal handle.net system, maintained by CNRI. While technically all DOIs
+are Handles, our system treats them as distinct identifiers.
+{{ entity_macros.lookup_form("release", "hdl", "20.500.12690/RIN/IDDOAH/BTNH25", lookup_key, lookup_value, lookup_error) }}
+<i>&nbsp; Only include the identifier itself</i>
+
+</div>
<div class="ui attached bottom segment">
<h2>JSTOR</h2>
diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html
index 4652f4a2..01769b1b 100644
--- a/python/fatcat_web/templates/release_view.html
+++ b/python/fatcat_web/templates/release_view.html
@@ -266,7 +266,7 @@ accessible version.
</div>
{% endif %}
-{% if release.number or release.ext_ids.doi or release.ext_ids.pmid or release.ext_ids.pmcid or release.ext_ids.wikidata_qid or release.ext_ids.isbn13 or release.ext_ids.arxiv or release.ext_ids.jstor or release.ext_ids.ark or release.ext_ids.doaj or release.ext_ids.dblp %}
+{% if release.number or release.ext_ids.doi or release.ext_ids.pmid or release.ext_ids.pmcid or release.ext_ids.wikidata_qid or release.ext_ids.isbn13 or release.ext_ids.arxiv or release.ext_ids.jstor or release.ext_ids.ark or release.ext_ids.doaj or release.ext_ids.dblp or release.ext_ids.hdl %}
<div class="ui segment attached" style="word-wrap: break-word;">
{% if release.number %}
<b>Number</b> &nbsp;<code>{{ release.number }}</code><br>
@@ -301,6 +301,9 @@ accessible version.
{% if release.ext_ids.dblp != None %}
<b>dblp</b> &nbsp;<a href="https://dblp.org/rec/{{ release.ext_ids.dblp }}.html"><code>{{ release.ext_ids.dblp }}</code></a><br>
{% endif %}
+{% if release.ext_ids.hdl != None %}
+ <b>Handle</b> &nbsp;<a href="https://hdl.handle.net/{{ release.ext_ids.hdl}}"><code>{{ release.ext_ids.hdl }}</code></a><br>
+{% endif %}
</div>
{% endif %}