diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat/templates/file_view.html | 16 | ||||
-rw-r--r-- | python/fatcat/templates/release_view.html | 18 |
2 files changed, 26 insertions, 8 deletions
diff --git a/python/fatcat/templates/file_view.html b/python/fatcat/templates/file_view.html index 6a53b6c6..e8d81ed7 100644 --- a/python/fatcat/templates/file_view.html +++ b/python/fatcat/templates/file_view.html @@ -13,12 +13,6 @@ <div class="one wide column"></div> <div class="ten wide column"> -<p><b>Size:</b> {{ file.size }} (bytes) - -{% if file.mimetype %} -<p><b>File Type:</b> <code>{{ file.mimetype }}</code> -{% endif %} - {% if file.extra != None %} <p><b>Additional Metadata (raw JSON):</b> <pre>{{ file.extra }}</pre> @@ -83,6 +77,16 @@ Raw Object: <div class="ui segment attached"> +{% if file.size != None %} +<p><b>Size</b> {{ file.size }} (bytes) +</div><div class="ui segment attached"> +{% endif %} + +{% if file.mimetype != None %} +<p><b>File Type</b> <code>{{ file.mimetype }}</code> +</div><div class="ui segment attached"> +{% endif %} + <b>Fatcat Bits</b> <p>Revision #{{ file.revision }}. State is "{{ file.state }}" <br><a href="https://api.qa.fatcat.wiki/v0/file/{{ file.ident }}">As JSON object via API</a> diff --git a/python/fatcat/templates/release_view.html b/python/fatcat/templates/release_view.html index 8c414088..8a0c1e76 100644 --- a/python/fatcat/templates/release_view.html +++ b/python/fatcat/templates/release_view.html @@ -26,7 +26,7 @@ <br><b>DOI:</b> <a href="https://doi.org/{{ release.doi }}"> <code>{{ release.doi }}</code></a> {% endif %} {% if release.isbn13 != None %} -<p><b>ISBN-13:</b> <code>{{ release.isbn13 }}</code> +<br><b>ISBN-13:</b> <code>{{ release.isbn13 }}</code> {% endif %} {% if release.language != None %} <br><b>Primary Language:</b> <code>{{ release.language }}</code> (<a href="https://www.loc.gov/standards/iso639-2/php/langcodes_name.php?iso_639_1={{ release.language }}">lookup ISO-639 code</a>) @@ -143,10 +143,19 @@ This release citing other releases. {% endif %} <div class="ui segment attached"> +{% if release.release_type != None %} +<b>Release Type</b> <code>{{ release.release_type }}</code> +</div><div class="ui segment attached"> +{% endif %} + {% if release.doi %} <b>DOI </b> <a href="https://doi.org/{{ release.doi }}">{{ release.doi }}</a> </div><div class="ui segment attached"> {% endif %} +{% if release.isbn13 != None %} +<p><b>ISBN-13 </b> <code>{{ release.isbn13 }}</code> +</div><div class="ui segment attached"> +{% endif %} {% if release.extra.is_oa == True %} <b><i class="ui icon unlock alternate green"></i> Open Access</b> @@ -186,7 +195,6 @@ This release citing other releases. {% endif %} </div><div class="ui segment attached"> -<!-- (<a href="https://openlibrary.org/search?isbn={{ release.isbn13 }}">openlibrary.org</a>) --> <b>Lookup Links</b> {% if container != None and container.issnl != None %} @@ -195,6 +203,12 @@ This release citing other releases. {% if container.doi != None %} <br><a href="https://oadoi.org/{{ release.doi }}">oaDOI/unpaywall</a> {% endif %} +{% if release.isbn13 != None %} + <br><a href="https://openlibrary.org/search?isbn={{ release.isbn13 }}">Open Library</a> + <br><a href="http://www.worldcat.org/search?q=bn%3A{{ release.isbn13 }}">Worldcat</a> +{% else %} + <br><a href="http://www.worldcat.org/search?qt=worldcat_org_art&q={{ release.title }}">Worldcat</a> +{% endif %} <br><a href="https://www.wikidata.org/w/index.php?search={{ release.title }}">wikidata.org</a> <br><a href="https://core.ac.uk/search?q={{ release.title }}">CORE.ac.uk</a> <br><a href="https://www.semanticscholar.org/search?q={{ release.title }}">Semantic Scholar</a> (CS, neuro) |