diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat/templates/container_view.html | 14 | ||||
-rw-r--r-- | python/fatcat/templates/creator_view.html | 9 | ||||
-rw-r--r-- | python/fatcat/templates/home.html | 69 | ||||
-rw-r--r-- | python/fatcat/templates/release_view.html | 3 |
4 files changed, 70 insertions, 25 deletions
diff --git a/python/fatcat/templates/container_view.html b/python/fatcat/templates/container_view.html index 1b8903b2..db7e0d24 100644 --- a/python/fatcat/templates/container_view.html +++ b/python/fatcat/templates/container_view.html @@ -16,13 +16,13 @@ <p><b>Publisher:</b> {% if container.publisher != None %}{{ container.publisher }}{% else %}<i>Unknown</i>{% endif %} {% if container.coden != None %} -<p><b>CODEN<sup><a href="https://en.wikipedia.org/wiki/CODEN">?</a></sup>:</b> <code>{{ container.coden }}</code> +<br><b>CODEN<sup><a href="https://en.wikipedia.org/wiki/CODEN">?</a></sup>:</b> <code>{{ container.coden }}</code> {% endif %} {% if container.abbrev != None %} -<p><b>Abbrev.:</b> <code>{{ container.abbrev }}</code> +<br><b>Abbrev.:</b> <code>{{ container.abbrev }}</code> {% endif %} -{% if (container.extra != None) and (container.extra.url != None) %} -<p><b>Homepage:</b> <a href="{{ container.extra.url }}"> <code>{{ container.extra.url }}</code></a> +{% if (container.extra != None) and (container.extra['url'] != None) and (container.extra['url']|length > 0) %} +<br><b>Homepage:</b> <a href="{{ container.extra['url'] }}"> <code>{{ container.extra['url'] }}</code></a> {% endif %} {% if container.extra != None %} @@ -53,10 +53,10 @@ Raw Object: {% 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> - {% if container.extra != None and container.extra.ISSNp != None %} + {% if container.extra != None and (container.extra.ISSNp|length > 0) %} <br><i class="icon paperclip"></i>Print: <code>{{ container.extra.ISSNp }}</code> {% endif %} - {% if container.extra != None and container.extra.ISSNe != None %} + {% if container.extra != None and (container.extra.ISSNe|length > 0) %} <br><i class="icon plug"></i>Electronic: <code>{{ container.extra.ISSNe }}</code> {% endif %} </div><div class="ui segment attached"> @@ -76,7 +76,7 @@ Raw Object: <i class="icon times grey"></i> Not in <a href="https://road.issn.org">ISSN ROAD</a><br> {% endif %} {% if container.extra.is_kept == True %} - <i class="icon check green"></i> In <a href="https://thekeepers.org/journals?query={{ container.issnl }}">Keepers Registery</a><br> + <i class="icon check green"></i> In <a href="https://thekeepers.org/purl/issn/{{ container.issnl }}">Keepers Registery</a><br> {% elif container.extra.is_kept == False %} <i class="icon times grey"></i> Not in <a href="https://thekeepers.org/journals?query={{ container.issnl }}">Keepers Registry</a><br> {% endif %} diff --git a/python/fatcat/templates/creator_view.html b/python/fatcat/templates/creator_view.html index 67d5e67b..a8a7cf51 100644 --- a/python/fatcat/templates/creator_view.html +++ b/python/fatcat/templates/creator_view.html @@ -13,8 +13,10 @@ <div class="one wide column"></div> <div class="ten wide column"> -<p><b>Given ("first") name:</b> {{ creator.given_name}} -<p><b>Sur ("family"/"last") name:</b> {{ creator.surname }} +<p><b>Given ("first") name:</b> + {% if creator.given_name != None %}{{ creator.given_name}}{% else %}<i>None or unknown</i>{% endif %} +<p><b>Sur ("family"/"last") name:</b> + {% if creator.surname != None %}{{ creator.surname }}{% else %}<i>None or unknown</i>{% endif %} {% if creator.extra != None %} <h3>Extra Metadata (raw JSON)</h3> @@ -29,7 +31,8 @@ <p>This creator has contributed to: <ul> {% for release in releases %} - <li>"{{ release.title }}", a {{ release.release_type }} published {{ release.release_date }} (status: <code>{{ release.release_status }})</code>. + <li>"{{ release.title }}", a {{ release.release_type }} published {{ release.release_date }} + {% if release.release_status != None %}(status: <code>{{ release.release_status }})</code>{% endif %}. <br>Fatcat ID: <a href="/release/{{ release.ident }}"><code>{{ release.ident }}</code></a> {% endfor %} </ul> diff --git a/python/fatcat/templates/home.html b/python/fatcat/templates/home.html index 9a8a55c8..476127f6 100644 --- a/python/fatcat/templates/home.html +++ b/python/fatcat/templates/home.html @@ -4,8 +4,16 @@ <h1>Welcome to fatcat!</h1> -<p><b>Current Status:</b> Demo/prototype. No authentication, etc. All edits -will be lost. +<div class="ui message"> + <div class="header">Current Status: Prototype</div> + <ul class="list"> + <li>No authentication or accounts + <li>Any edits will be lost + <li>Most creation/edit forms don't work + <li>Any data was bulk-imported, and may not be up to date + <li>Search results are from Crossref, not local API/database + </ul> +</div> <p>This is versioned, user-editable catalog of research publications: journal articles, conference proceedings, pre-prints, etc. Features include archival @@ -21,27 +29,60 @@ indexing (aka, linking together of pre-prints and final copies). <tr><th>Entity <th>Actions <th>Examples + <th>Lookup </thead> +<tr><td><b>Release</b> + <br>journal article, pre-print, book + <br>published version of a Work + <td><a href="/release/create">Create</a> + <td><a href="/release/00000000-0000-0000-4444-000000000002">Dummy</a> + <br><a href="/release/00000000-0000-0000-4444-000000000003">Realistic</a> + <td><form class="" role="lookup" action="/release/lookup" method="get"> + <div class="ui icon input"> + <i class="search icon"></i> + <input type="text" placeholder="DOI" name="doi"> + </div> + </form> <tr><td><b>Container</b> + <br>journal or serial <td><a href="/container/create">Create</a> - <td><a href="/container/00000000-0000-0000-1111-000000000002">Fake</a> - <br><a href="/container/00000000-0000-0000-1111-000000000003">Real</a> + <td><a href="/container/00000000-0000-0000-1111-000000000002">Dummy</a> + <br><a href="/container/00000000-0000-0000-1111-000000000003">Realistic</a> + <td><form class="" role="lookup" action="/container/lookup" method="get"> + <div class="ui icon input"> + <i class="search icon"></i> + <input type="text" placeholder="ISSN-L" name="issnl"> + </div> + </form> + <tr><td><b>Creator</b> + <br>authors, editors, translators <td><!-- <a href="/creator/create">Create</a> --> - <td><a href="/creator/00000000-0000-0000-2222-000000000002">Fake</a> - <br><a href="/creator/00000000-0000-0000-2222-000000000003">Real</a> + <td><a href="/creator/00000000-0000-0000-2222-000000000002">Dummy</a> + <br><a href="/creator/00000000-0000-0000-2222-000000000003">Realistic</a> + <td><form class="" role="lookup" action="/creator/lookup" method="get"> + <div class="ui icon input"> + <i class="search icon"></i> + <input type="text" placeholder="ORCID" name="orcid"> + </div> + </form> <tr><td><b>File</b> + <br>specific digital blobs (immutable) <td> - <td><a href="/file/00000000-0000-0000-3333-000000000002">Fake</a> - <br><a href="/file/00000000-0000-0000-3333-000000000003">Real</a> -<tr><td><b>Release</b> - <td><a href="/release/create">Create</a> - <td><a href="/release/00000000-0000-0000-4444-000000000002">Fake</a> - <br><a href="/release/00000000-0000-0000-4444-000000000003">Real</a> + <td><a href="/file/00000000-0000-0000-3333-000000000002">Dummy</a> + <br><a href="/file/00000000-0000-0000-3333-000000000003">Realistic</a> + <td><form class="" role="lookup" action="/file/lookup" method="get"> + <div class="ui icon input"> + <i class="search icon"></i> + <input type="text" placeholder="SHA-1" name="sha1"> + </div> + </form> <tr><td><b>Work</b> + <br>for grouping Releases + <td> + <td><a href="/work/00000000-0000-0000-5555-000000000002">Dummy</a> + <br><a href="/work/00000000-0000-0000-5555-000000000003">Realistic</a> <td> - <td><a href="/work/00000000-0000-0000-5555-000000000002">Fake</a> - <br><a href="/work/00000000-0000-0000-5555-000000000003">Real</a> </table> </div> diff --git a/python/fatcat/templates/release_view.html b/python/fatcat/templates/release_view.html index 07c03a30..45997caa 100644 --- a/python/fatcat/templates/release_view.html +++ b/python/fatcat/templates/release_view.html @@ -188,7 +188,7 @@ This release citing other releases. <i class="icon times grey"></i> Not in <a href="https://road.issn.org">ISSN ROAD</a><br> {% endif %} {% if container.extra.is_kept == True %} - <i class="icon check green"></i> In <a href="https://thekeepers.org/journals?query={{ container.issnl }}">Keepers Registery</a><br> + <i class="icon check green"></i> In <a href="https://thekeepers.org/purl/issn/{{ container.issnl }}">Keepers Registery</a><br> {% elif container.extra.is_kept == False %} <i class="icon times grey"></i> Not in <a href="https://thekeepers.org/journals?query={{ container.issnl }}">Keepers Registry</a><br> {% endif %} @@ -196,6 +196,7 @@ This release citing other releases. {% if container.issnl != None %} <i class="icon hashtag"></i>ISSN-L: <code>{{ container.issnl }}</code><br> {% endif %} + <i class="icon linkify"></i>Fatcat: <small><code><a href="/container/{{ container.ident }}">{{ container.ident }}</a></code><small><br> </div><div class="ui segment attached"> {% endif %} |