From a24615d3d3ee3f0d4a523e3c8055be32093ff65e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 14 Jan 2021 14:56:54 -0800 Subject: WIP: model pop-ups --- fatcat_scholar/templates/search_macros.html | 260 +++++++++++++++++----------- 1 file changed, 161 insertions(+), 99 deletions(-) (limited to 'fatcat_scholar/templates/search_macros.html') diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 3ce49f6..5f19506 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -88,7 +88,7 @@

{% if paper.doc_type == "work" %} - + {% if paper.biblio.title %} {{ paper.biblio.title[:512] }} {% if paper.biblio.title|length > 512 %}...{% endif %} @@ -235,136 +235,198 @@ {% set access_alt = _('fulltext access') %} {% endif %} - {% endif %} - + {# publisher #} + {% if paper.biblio.doi %} + + + + {% endif %} + + {# trusted platform fulltext links #} + {# TODO: DOAJ, dblp #} + {% if paper.biblio.arxiv_id %} + + + + {% elif paper.biblio.pmcid %} + + + + {% endif %} {# ### VERSIONS #} {% if (paper.access and paper.access|length > 1) or (paper.releases and paper.releases|length > 1) %} - -
- {% if paper.fulltext and paper.fulltext.access_url and paper.fulltext.thumbnail_url and 0 %} - {% if paper.fulltext.file_mimetype == "application/pdf" %} - {% set access_alt = _('fulltext PDF download') %} - {% elif paper.fulltext.access_type == "ia_sim" %} - {% set access_alt = _('read fulltext microfilm') %} - {% else %} - {% set access_alt = _('fulltext access') %} + {# ### OTHER ACTIONS #} + + + + + + + + {# ### CITATION MODAL #} + +

Cite Paper

+ Something something bibtex will go here. +
+ + {# ### VERSIONS MODAL #} + +

Paper Versions

+ {% if paper.fulltext.thumbnail_url %} + fulltext thumbnail +
{% endif %} + There are several versions of this paper! + + + + + + + + + + + + {% for release in paper.releases %} + + + + + + + {% endfor %} + {% for access in paper.access %} + {% if not access.release_ident and access.access_type == "ia_sim" %} + + + + + + + {% endif %} + {% endfor %} + +
{{ _("Publication Stage") }}{{ _("Date") }}{{ _("Fulltext") }}{{ _("Metadata") }}
+ + {{ release.release_stage or _("unknown") }} + + + {% if release.release_date %} + {{ release.release_date }} + {% elif release.release_year %} + {{ release.release_year }} + {% endif %} + + {% for access in paper.access %} + {% if access.release_ident == release.ident %} + + + {% if access.mimetype == "application/pdf" %} + + {% endif %} + {{ access.access_type }} + + + {% endif %} + {% endfor %} + + + + + fatcat + + +
+ + {{ _("published") }} + + + + + + {{ _("microfilm") }} + + +
+ +
- -
- fulltext thumbnail -
-
- {% else %} - {# No Fulltext #} - {% endif %}
{% endmacro %} -- cgit v1.2.3