-
Notifications
You must be signed in to change notification settings - Fork 16
/
article.html
228 lines (204 loc) · 10.4 KB
/
article.html
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
{% extends "layouts/public_base.html" %}
{% block body_class %}article-details{% endblock %}
{% block page_title %}{% include "doaj/includes/_article_meta_title.html" %}{% endblock %}
{% block meta_og_title %}{% include "doaj/includes/_article_meta_title.html" %}{% endblock %}
{% block meta_twitter_title %}{% include "doaj/includes/_article_meta_title.html" %}{% endblock %}
{%- block meta_description -%}{% include "doaj/includes/_article_meta_description.html" %}{%- endblock -%}
{%- block meta_og_description -%}{% include "doaj/includes/_article_meta_description.html" %}{%- endblock -%}
{%- block meta_twitter_description -%}{% include "doaj/includes/_article_meta_description.html" %}{%- endblock -%}
{% block extra_meta_tags %}
{% set bibjson = article.bibjson() %}
{% set jbib = journal.bibjson() %}
{% set jtitle, cite = bibjson.vancouver_citation() %}
{% set issns = bibjson.issns() %}
{% set doi = bibjson.get_one_identifier("doi") %}
{% set normalised_doi = article.get_normalised_doi() %}
{% if jtitle %}
<meta name="citation_journal_title" content="{{ jtitle }}">
{% endif %}
{% if jbib.publisher %}
<meta name="citation_publisher" content="{{ jbib.publisher }}">
{% endif %}
{% if doi %}
<meta name="citation_doi" content="{{ normalised_doi }}">
{% endif %}
{% for author in bibjson.author %}
<meta name="citation_author" content="{{author.name}}">
{% endfor %}
{% if bibjson.title %}
<meta name="citation_title" content="{{ bibjson.title }}">
{% endif %}
{% if bibjson.get_publication_date("%Y/%m/%d") %}
<meta name="citation_publication_date" content="{{ bibjson.get_publication_date("%Y/%m/%d") }}">
{% endif %}
{% if bibjson.volume %}
<meta name="citation_volume" content="{{ bibjson.volume }}">
{% endif %}
{% if bibjson.number %}
<meta name="citation_issue" content="{{ bibjson.number }}">
{% endif %}
{% if bibjson.start_page %}
<meta name="citation_firstpage" content="{{ bibjson.start_page }}">
{% endif %}
{% if bibjson.end_page %}
<meta name="citation_lastpage" content="{{ bibjson.end_page }}">
{% endif %}
{% for issn in issns %}
<meta name="citation_issn" content="{{ issn }}">
{% endfor %}
{% endblock %}
{% block content %}
{%
set TYN = {
True : "Yes",
False : "No",
}
%}
{% set bibjson = article.bibjson() %}
{% set jbib = journal.bibjson() %}
{% set jtitle, cite = bibjson.vancouver_citation() %}
{% set issns = bibjson.issns() %}
{% set doi = bibjson.get_one_identifier("doi") %}
{% set normalised_doi = article.get_normalised_doi() %}
<main class="page-content">
<div class="hero">
<header class="container">
<p class="label">
<a href="{{url_for('doaj.toc', identifier=journal.toc_id)}}">{{jtitle}}</a>
({{ bibjson.get_publication_date(date_format="%b %Y") }})
</p>
<h1>
{% if bibjson.title %}
{{ bibjson.title }}
{% else %}
<em>[Article title missing]</em>
{% endif %}
</h1>
<div class="row article-details__meta">
{% if bibjson.author %}
<div class="col-md-6 col-lg-6">
<ul class="inlined-list">
{% for author in bibjson.author %}
<li>{{author.name}}{% if loop.last %}{% else %}, {% endif %}</li>
{% endfor %}
</ul>
{# TODO: do not display this block if there are no affiliations or ORCiDs #}
<p>
<span class="button" role="button" data-toggle="collapse" data-target="#authors-affiliations" aria-expanded="false">
Affiliations
<span data-feather="plus" aria-hidden="true"></span>
</span>
</p>
<dl id="authors-affiliations" class="collapse" aria-expanded="false">
{% for author in bibjson.author %}
<dt>{{author.name}}</dt>
{% if author.orcid_id %}
<dd><a href="{{author.orcid_id}}" target="_blank" rel="noopener">ORCiD</a></dd>
{% endif %}
{% if author.affiliation %}
<dd>{{author.affiliation}}</dd>
{% endif %}
{% endfor %}
</dl>
</div>
{% endif %}
<dl class="col-md-6 col-lg-6">
{% if doi %}
<dt>DOI</dt>
<dd>
{% set url_text = normalised_doi | doi_url | safe %}
<a href="{{ url_text }}" target="_blank" rel="noopener">{{ url_text }}</a>
</dd>
{% endif %}
{% if bibjson.volume or bibjson.number %}
<dt>Journal volume & issue</dt>
<dd>
{% if bibjson.volume %}Vol. {{ bibjson.volume }}{% endif %}{% if bibjson.volume and bibjson.number %},{% endif %}
{% if bibjson.number %}no. {{ bibjson.number }}{% endif %}<br/>
{% if bibjson.start_page %}
{% if bibjson.end_page %}pp.{% else %}p.{% endif %}
{{ bibjson.start_page }}
{% if bibjson.end_page %}– {{ bibjson.end_page }}{% endif %}
{% endif %}
</dd>
{% endif %}
</dl>
</div>
</header>
</div>
<div class="container">
<div class="row">
<section class="col-md-8">
<h2>Abstract</h2>
<p>
{% if bibjson.get_urls("fulltext") %}
{% for url in bibjson.get_urls("fulltext") %}
<a href="{{url}}" class="button button--primary" target="_blank" rel="noopener" role="button">Read online</a>
{% endfor %}
{% else %}
{% if doi %}
{% set url_text = normalised_doi | doi_url | safe %}
{% if url_text != "" %}
<a href="{{url_text}}" class="button button--primary" target="_blank" rel="noopener" role="button">Read online</a>
{% endif %}
{% endif %}
{% endif %}
</p>
{% if bibjson.abstract %}
<p class="article-details__abstract">{{ bibjson.abstract | striptags }}</p>
{% else %}
<em class="article-details__abstract--empty">No abstracts available.</em>
{% endif %}
{% if bibjson.keywords %}
<h2 class="sr-only">Keywords</h2>
<ul class="tags">
{% for keyword in bibjson.keywords %}
<li class="tag">
<a href="{{ url_for("doaj.articles_search") }}?ref=article-page&source=%7B%22query%22%3A%7B%22query_string%22%3A%7B%22query%22%3A%22{{ keyword|safe }}%22%2C%22default_operator%22%3A%22AND%22%7D%7D%7D">
{{ keyword }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% if doi %}
{# Dimensions badge #}
<p>
<script async src="https://badge.dimensions.ai/badge.js" charset="utf-8"></script>
<span class="__dimensions_badge_embed__" data-doi="{{ normalised_doi }}" data-legend="never" data-hide-zero-citations="true"></span>
</p>
{% endif %}
</section>
<aside class="col-md-4">
<h2>Published in <em>{{jtitle}}</em></h2>
<dl>
{% if jbib.issns()|length > 0 %}
<dt>ISSN</dt>
{% for identifier in jbib.get_identifiers(idtype='pissn') %}<dd>{{identifier}} (Print)</dd>{% endfor %}
{% for identifier in jbib.get_identifiers(idtype='eissn') %}<dd>{{identifier}} (Online)</dd>{% endfor %}
{% endif %}
{% if jbib.publisher %}
<dt>Publisher</dt>
<dd>{{jbib.publisher}}</dd>
{% endif %}
{% if jbib.country %}
<dt>Country of publisher</dt>
<dd>{{jbib.country_name()}}</dd>
{% endif %}
{% for path in bibjson.lcc_paths() %}
{% if loop.index0 == 0 %}<dt>LCC subjects</dt>{% endif %}
<dd>{{ path }}</dd>
{% endfor %}
{% if jbib.get_single_url("homepage") %}
<dt>Website</dt>
<dd><a href="{{jbib.get_single_url('homepage')}}" target="_blank" rel="noopener">{{jbib.get_single_url('homepage')}}</a></dd>
{% endif %}
</dl>
<p>
<a href="{{url_for('doaj.toc', identifier=journal.toc_id)}}" class="button secondary-button">About the journal</a>
</p>
</aside>
</div>
</div>
</main>
{% endblock %}