blob: 6259f0e2bc3346c3228882e5b4c2fb1278e2b167 (
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
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
|
{% extends "base.html" %}
{% block fullbody %}
<div class="ui stackable mobile reversed grid centered">
<div class="one wide column"></div>
<div class="fifteen wide column">
<h1 class="ui header">{{ release.title }}
<div class="sub header"><code>release {{ release.ident }}</code></div></h1>
<p style="font-size: larger;">
{% if authors != [] %} by {% endif %}
{% for contrib in authors %}
{% if contrib.creator_id %}
<b><a href="/creator/{{contrib.creator_id}}">{{ contrib.raw_name }}</a></b>{% if not loop.last %}, {% endif %}
{% else %}
{% if contrib.raw_name != None %}{{ contrib.raw_name }}{% else %}<i>Unknown</i>{% endif %}{% if not loop.last %}, {% endif %}
{% endif %}
{% endfor %}
</div>
</div>
<div class="ui stackable mobile reversed grid centered">
<div class="one wide column"></div>
<div class="ten wide column" style="font-size: 16px;">
<div class="ui accordion">
<div class="title">
<i class="dropdown icon"></i>
{% if release.release_status == 'published' %}
Published in <a href="/container/{{ container.ident }}">{{ container.name }}</a>
{% else %}
Released as a <i>{{ release.release_type }}</i>
{% if container %} in <a href="/container/{{ container.ident }}">{{ container.name }}</a> {% endif %}
{% endif %}
{% if release.publisher %}
by {{ release.publisher }}
{% endif %}
</div><div class="content">
<table class="ui definition single line fixed compact small collapsing unstackable table">
<tbody>
{% if container != None and container.issnl != None %}
<tr><td class="right aligned">ISSN-L</td>
<td class="">{{ container.issnl }}
{% endif %}
{% if release.volume != None %}
<tr><td class="right aligned">Volume</td>
<td class="">{{ release.volume }}
{% endif %}
{% if release.issue != None %}
<tr><td class="right aligned">Issue</td>
<td class="">{{ release.issue }}
{% endif %}
{% if release.pages != None %}
<tr><td class="right aligned">Page(s)</td>
<td class="">{{ release.pages }}
{% endif %}
{% if release.release_date != None %}
<tr><td class="right aligned">Release Date</td>
<td class="">{{ release.release_date }}
{% elif release.release_year != None %}
<tr><td class="right aligned">Release Year</td>
<td class="">{{ release.release_year }}
{% endif %}
{% if container != None and container.container_type != None %}
<tr><td class="right aligned">Container Type</td>
<td class="">{{ container.container_type }}
{% endif %}
{% if release.publisher != None %}
<tr><td class="right aligned">Publisher</td>
<td class="">{{ release.publisher }}
{% endif %}
{% if release.language != None %}
<tr><td class="right aligned">Primary Language</td>
<td class=""><code>{{ release.language }}</code>
(<a href="https://www.loc.gov/standards/iso639-2/php/langcodes_name.php?iso_639_1={{ release.language }}">lookup</a>)
{% endif %}
</tbody>
</table>
</div>
</div>
{% if release.contribs|length > 0 %}
<div class="ui accordion">
<div class="title">
<i class="dropdown icon"></i>All Contributors
</div><div class="content">
<table class="ui basic compact fixed table">
<tbody>
{% for contrib in release.contribs %}
<tr><td class="one wide">{% if contrib.index or contrib.index == 0 %} {{ contrib.index + 1 }}{% endif %}
<td>
{% if contrib.creator_id %}
<a href="/creator/{{contrib.creator_id}}">{{ contrib.raw_name or 'unknown' }}</a>
{% else %}
{{ contrib.raw_name or '' }}
{% endif %}
<br><i>{{ contrib.role or 'unknown' }}</i>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% else %}
<p>No known contributors (authors, translators, etc).
{% endif %}
{% if release.abstracts != [] %}
<h3>Abstract</h3>
<p>{{ release.abstracts[0].content }}
<br><small><i>In <code>{{ release.abstracts[0].mimetype }}</code> format</i></small>
{% endif %}
{% if release.extra %}
<h3>Extra Metadata (raw JSON)</h3>
<table class="ui definition single line fixed compact small unstackable table">
<tbody>
{% for (key, value) in release.extra.items() %}
<tr><td class="three wide right aligned"><code>{{ key }}</code></td>
<td class="seven wide"><code>{{ value }}</code>
{% endfor %}
</tbody>
</table>
{% endif %}
<h3>Known Files and URLs</h3>
{% if files != [] %}
<table class="ui compact fixed table">
<!--
<thead>
<tr><th>SHA-1
<th>Size (bytes)
<th>File Type
<th>Links
</thead>
-->
<tbody>
{% for file in files %}
<tr><td>{% if file.mimetype != None %}{{ file.mimetype }} {% endif %}
{% if file.size != None %}{{ file.size|filesizeformat }}{% endif %}
<br><small><code><a href="/file/{{ file.ident }}">
{% if file.sha1 != None %}sha1:{{ file.sha1[:20] + "..." }}
{% elif file.sha256!= None %}sha256:{{ file.md5[:20] + "..." }}
{% elif file.md5 != None %}md5:{{ file.md5[:20] + "..." }}
{% endif %}
</a></code></small>
<td class="single line">
{% for url in file.urls[:5] %}
<a href="{{ url.url }}">{{ url.url.split('/')[2] }}</a> ({{ url.rel }})<br>
{% endfor %}
{% if file.urls|length > 5 %}
<a href="/file/{{ file.ident }}">+ {{ file.urls|length - 5 }} more URLs</a>
{% endif %}
{% endfor %}
</tbody>
</table>
</ul>
{% else %}
<p>There are no known files associated with this release (you could try
<a href="/work/{{ release.work_id }}">other releases for this work?</a>).
{% endif %}
{% if release.refs != None and release.refs.size != 0 %}
<h3>References</h3>
This release citing other releases.
<ol>
{% for ref in release.refs %}
<li>
{% if ref.title %}
{{ ref.title }}
{% if ref.container_name %}{{ ref.container_name }}.{% endif %}
{% if ref.year %}{{ ref.year }}{% endif %}
{% if ref.locator %}{{ ref.locator }}{% endif %}
{% elif ref.extra != None %}
{% if ref.extra.get('author') %}{{ ref.extra['author'] }}.{% endif %}
{% if ref.extra.get('article-title') %}{{ ref.extra['article-title'] }}.{% endif %}
{% if ref.container_name %}{{ ref.container_name }}.{% endif %}
{% if ref.year %}{{ ref.year }}.{% endif %}
{% if ref.extra.unstructured %}{{ ref.extra.unstructured }}{% endif %}
{% else %}
<i>unknown</i>
{% endif %}
{% if ref.target_release_id != None %}
(<a href="/release/{{ ref.target_release_id }}">fatcat entry</a>)
{% endif %}
{% if ref.extra != None and ref.extra.doi %}
(DOI: <a href="/release/lookup?doi={{ ref.extra.doi }}">{{ ref.extra.doi }}</a>)
{% endif %}
{% endfor %}
</ol>
{% else %}
<p>No reference list available.
{% endif %}
</div>
<div class="five wide column">
{% if files != [] and files[0].urls != [] %}
<a href="{{ files[0].urls[0].url }}" class="ui top attached fluid huge green button"><i class="file pdf outline icon"></i>Download Full Text</a>
{% else %}
<span class="ui top attached fluid huge grey button"><i class="file cross icon"></i>No Full Text Available</span>
{% endif %}
{% if release.release_type != None %}
<div class="ui segment attached">
<b>Type</b> <code>{{ release.release_type }}</code>
<br><b>Status</b> <code>{{ release.release_status or 'unknown' }}</code>
{% if release.release_date != None %}
<br><b>Date</b> {{ release.release_date }}
{% elif release.release_year != None %}
<br><b>Year</b> {{ release.release_year }}
{% endif %}
</div>
{% endif %}
{% if release.doi or release.pmid or release.pmcid or release.wikidata_qid %}
<div class="ui segment attached" style="word-wrap: break-word;">
{% if release.doi %}
<b>DOI </b> <a href="https://doi.org/{{ release.doi }}" title="{{ release.doi }}">{{ release.doi }}</a><br>
{% endif %}
{% if release.pmid != None %}
<b>PubMed</b> <a href="https://www.ncbi.nlm.nih.gov/pubmed/{{ release.pmid }}"> <code>{{ release.pmid }}</code></a><br>
{% endif %}
{% if release.pmcid != None %}
<b>PMC</b> <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/{{ release.pmcid }}"> <code>{{ release.pmcid }}</code></a><br>
{% endif %}
{% if release.wikidata_qid != None %}
<b>Wikidata</b> <a href="https://www.wikidata.org/wiki/{{ release.wikidata_qid }}"> <code>{{ release.wikidata_qid }}</code></a><br>
{% endif %}
{% if release.isbn13 != None %}
<b>ISBN-13 </b> <code>{{ release.isbn13 }}</code>
{% endif %}
</div>
{% endif %}
{% if release.extra.is_oa == True %}
<div class="ui segment attached">
<b><i class="ui icon unlock alternate green"></i> Open Access</b>
</div><div class="ui segment attached">
{% elif release.extra.is_oa == False %}
<b><i class="ui icon lock red"></i> Not Open Access</b>
</div>
{% endif %}
{% if container != None and container.es %}
<div class="ui segment attached">
<b>Container Metadata</b><br>
{% if container.es.is_oa == True %}
<i class="icon unlock orange"></i>Open Access Publication<br>
{% elif container.es.is_oa == False %}
<i class="icon lock black"></i>Not Open Access<br>
{% else %}
<i class="icon question grey"></i>Unknown OA Status<br>
{% endif %}
{% if (container.es != None) %}
{% if container.es.in_doaj == True %}
<i class="icon check green"></i> In <a href="https://doaj.org/toc/{{ container.issnl }}">DOAJ</a><br>
{% elif container.es.in_doaj == False %}
<i class="icon times grey"></i> Not in <a href="https://doaj.org">DOAJ</a><br>
{% endif %}
{% if container.es.in_road == True %}
<i class="icon check green"></i> In <a href="http://road.issn.org/issn/{{ container.issnl }}">ISSN ROAD</a><br>
{% elif container.es.in_road == False %}
<i class="icon times grey"></i> Not in <a href="https://road.issn.org">ISSN ROAD</a><br>
{% endif %}
{% if container.es.in_kbart == True %}
<i class="icon check green"></i> In <a href="https://thekeepers.org/purl/issn/{{ container.issnl }}">Keepers Registery</a><br>
{% elif container.es.in_kbart == False %}
<i class="icon times grey"></i> Not in <a href="https://thekeepers.org/journals?query={{ container.issnl }}">Keepers Registry</a><br>
{% endif %}
{% endif %}
{% if container.issnl != None %}
<i class="icon linkify"></i>ISSN-L: <code>{{ container.issnl }}</code><br>
{% endif %}
<a href="/container/{{ container.ident }}" title="container {{ container.ident }}"><i class="icon share"></i>Fatcat Entry</a>
</div>
{% endif %}
<div class="ui segment attached accordion">
<b><a href="/work/{{ release.work_id }}" title="work {{ release.work_id }}">Work Entity</a></b>
<br>grouping other versions (eg, pre-print) and variants of this release
</div>
<div class="ui segment attached accordion">
<div class="title" style="padding: 0px;"><i class="dropdown icon"></i><b>Lookup Links</b></div>
<div class="content">
{% if container != None and container.issnl != None %}
<a href="http://www.sherpa.ac.uk/romeo/issn/{{ container.issnl }}/">SHERPA/RoMEO</a> (journal policies)<br/>
{% endif %}
{% if container != None and container.doi != None %}
<a href="https://oadoi.org/{{ release.doi }}">oaDOI/unpaywall</a><br/>
{% endif %}
{% if release.isbn13 != None %}
<a href="https://openlibrary.org/search?isbn={{ release.isbn13 }}">Open Library</a><br>
<a href="http://www.worldcat.org/search?q=bn%3A{{ release.isbn13 }}">Worldcat</a><br>
{% else %}
<a href="http://www.worldcat.org/search?qt=worldcat_org_art&q={{ release.title }}">Worldcat</a><br>
{% endif %}
{% if release.doi %}
<a href="https://api.crossref.org/v1/works/http://dx.doi.org/{{ release.doi }}">Crossref Metadata</a> (via API)<br>
{% endif %}
<a href="https://www.wikidata.org/w/index.php?search={{ release.title }}">wikidata.org</a><br>
<a href="https://core.ac.uk/search?q={{ release.title }}">CORE.ac.uk</a><br>
<a href="https://www.semanticscholar.org/search?q={{ release.title }}">Semantic Scholar</a> (CS, neuro)<br>
<a href="https://scholar.google.com/scholar?q={{ release.title }}">Google Scholar</a><br>
</div>
</div>
<div class="ui segment attached">
<b>Fatcat Bits</b>
<p>State is "{{ release.state }}". Revision:
<br><small><code>{{ release.revision }}</code></small>
<br><a href="https://api.{{ config.FATCAT_DOMAIN }}/v0/release/{{ release.ident }}?expand=container,files,filesets,webcaptures">As JSON object via API</a>
</div>
<div class="two ui buttons bottom attached">
<a href="/release/{{ release.ident }}/edit" class="ui blue button">Edit Metadata</a>
<a href="/release/{{ release.ident }}/history" class="ui button">View History</a>
</div>
</div>
</div>
{% endblock %}
{% block postscript %}
<script>
$('.ui.accordion')
.accordion()
;
</script>
{% endblock %}
|