aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/work.html
blob: 693b1a668edbee81a15aa25852f52412948be4a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{% import "search_macros.html" as search_macros %}
{% extends "base.html" %}

{% block title %}
{{ work.title }}
{% endblock %}

{% block extra_head %}
  <link rel="canonical" href="https://scholar.archive.org/work/{{ work.work_ident }}">

  <meta name="citation_title" content="{{ work.biblio.title }}">
{% for contrib in work.biblio.contrib_names %}
  <meta name="citation_author" content="{{ contrib }}">
{% endfor %}
{% if work.biblio.release_date or work.biblio.release_year %}
  <meta name="citation_publication_date" content="{{ work.biblio.release_date or work.biblio.release_year }}">
{% endif %}
{% if work.biblio.container_name %}
  <meta name="citation_journal_title" content="{{ work.biblio.container_name }}">
{% endif %}
{% if work.biblio.volume %}
  <meta name="citation_volume" content="{{ work.biblio.volume }}">
{% endif %}
{% if work.biblio.issue %}
  <meta name="citation_issue" content="{{ work.biblio.issue }}">
{% endif %}
{% if work.biblio.pages %}
  <meta name="citation_first_page" content="{{ work.biblio.pages }}">
{% endif %}
{% if work.biblio.doi %}
  <meta name="citation_doi" content="{{ work.biblio.doi }}">
{% endif %}
{% if work.work_ident and work.fulltext.access_url and work.biblio.release_ident == work.fulltext.release_ident and work.fulltext.access_type in ['wayback', 'ia_file'] and work.fulltext.file_mimetype in ["application/pdf", None] and work.fulltext.file_sha1 %}
  <!-- single PDF access redirect URL -->
  <meta name="citation_pdf_url" content="{{ make_access_redirect_url(work.work_ident, work.fulltext.access_type, work.fulltext.access_url) }}">
  <!-- direct URL: {{ work.fulltext.access_url | safe }} -->
{% endif %}

{% endblock %}

{% block fullmain %}
<div class="ui centered grid">
  <div class="ui fourteen wide column serp-column" style="margin-top: 2em;">
    {{ search_macros.fulltext_search_result_row(doc, locale=locale, debug_mode=False, expand=True) }}
  </div>
</div>
{% endblock %}