diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-08-06 22:50:55 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-08-06 22:50:55 -0700 |
commit | 45e263f32a9dd05a6bc3932fd525712733b69a9d (patch) | |
tree | 962f533a4351b925fd9ee0d1b5dae5f094db7b72 /fatcat_scholar/templates | |
parent | 373f1e17c24f18f84c2fad77ad5ffaf216303a7e (diff) | |
download | fatcat-scholar-45e263f32a9dd05a6bc3932fd525712733b69a9d.tar.gz fatcat-scholar-45e263f32a9dd05a6bc3932fd525712733b69a9d.zip |
'more versions' dropdown table
Diffstat (limited to 'fatcat_scholar/templates')
-rw-r--r-- | fatcat_scholar/templates/search_macros.html | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 796193e..8d2567e 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -163,6 +163,88 @@ {{ tag_label("lang:" + paper.biblio.lang_code) }} {% endif %} + {# ### VERSIONS #} + {% if (paper.access and paper.access|length > 1) or (paper.releases and paper.releases|length > 1) %} + <div class="ui basic label blue small simple dropdown item"> + <i class="ui icon add"></i> + Multiple Versions + + <div class="menu" style="font-weight: normal;"> + <table class="ui celled table"> + <thead> + <tr> + <th>Publication Stage</th> + <th>Date</th> + <th>Fulltext</th> + <th>Metadata</th> + </tr> + </thead> + <tbody> + {% for release in paper.releases %} + <tr> + <td> + <span style="font-weight: normal; text-transform: uppercase; font-weight: bold; color: brown;"> + {{ release.release_stage or "unknown" }} + </span> + </td> + <td> + {% if release.release_date %} + {{ release.release_date }} + {% elif release.release_year %} + {{ release.release_year }} + {% endif %} + </td> + <td> + {% for access in paper.access %} + {% if access.release_ident == release.ident %} + <a href="{{ access.access_url }}"> + <span class="ui blue label"> + {% if access.mimetype == "application/pdf" %} + <i class="file pdf outline icon"></i> + {% endif %} + {{ access.access_type }} + </span> + </a> + {% endif %} + {% endfor %} + </td> + <td> + <a href="https://fatcat.wiki/release/{{ release.ident }}"> + <span class="ui green label"> + <i class="share square icon"></i> + fatcat + </span> + </a> + </td> + </tr> + {% endfor %} + {% for access in paper.access %} + {% if not access.release_ident and access.access_type == "ia_sim" %} + <tr> + <td> + <span style="font-weight: normal; text-transform: uppercase; font-weight: bold; color: brown;"> + published + </span> + </td> + <td></td> + <td> + <a href="{{ access.access_url }}"> + <span class="ui blue label"> + <i class="film icon"></i> + microfilm + </span> + </a> + </td> + <td></td> + </tr> + {% endif %} + {% endfor %} + </tbody> + </table> + </div> + </div> + {% endif %} + {# ### COLLAPSED HITS #} {% if paper._collapsed_count > 0 %} <button class="ui basic label blue small button" form="search_form" type="submit" name="collapse_key" value="{{ paper.collapse_key }}"> |