blob: 9427663daf891d106bd4530efd4a7de452fd5f5d (
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
|
{% extends "base.html" %}
{% block title %}
{% if query %}
Search: {{ query }}
{% else %}
Release Search
{% endif %}
{% endblock %}
{% block fullmain %}
<div class="ui vertical stripe segment" style="background-color: #EEE; padding-top: 4.5em;">
<div class="ui container text">
<h1>Search all Releases</h1>
<form class="" role="search" action="/release/search" method="get">
<div class="ui form">
<div class="ui action input huge fluid">
<input type="text" placeholder="Query..." name="q" value="{% if query %}{{ query }}{% endif %}" aria-label="search release metadata">
<button class="ui primary button">Search</button>
</div>
<div class="ui checkbox" style="float: right; margin: 1em;">
<input type="checkbox" name="fulltext_only" value="true" {% if fulltext_only %}checked{% endif %}>
<label>Fulltext Available Only</label>
</div>
<br>Can also lookup by <b><a href="/release/lookup">identifier</a></b> or search for <b><a href="/container/search?q={{ query or "" }}">containers</a></b> (eg, journals).
</div>
</form>
</div>
</div>
<div class="ui container text">
<br>
{% if found %}
{% if found.results %}
<i>Showing top {{ found.count_returned }} out of {{ found.count_found }} results for: <code>{{ found.query.q }}</code></i>
{% for paper in found.results %}
<div>
<h4 style="margin-top: 1em; margin-bottom: 0px; font-size: 1.1em;">
<a href="/release/{{ paper.ident }}" style="color: #2224c7;">
{% if paper.title %}
{{ paper.title[:512] }}
{% if paper.title|length > 512 %}...{% endif %}
{% else %}
[blank]
{% endif %}
</a>
</h4>
{% if paper.best_pdf_url %}
<div style="float: right; padding: 4px;">
<a href="{{ paper.best_pdf_url }}" class="ui violet tag label"><i class="file icon"></i>fulltext</a>
</div>
{% endif %}
{#
<h5 style="margin-top: 4px; margin-bottom: 4px; font-size: 1em;">{{ ", ".join(paper.contrib_names[:12]) }}
{% if paper.contrib_names|length > 12 %}<i>(+{{ paper.contrib_names|length - 12 }} others)</i>{% endif %}
</h5>
#}
{% if paper.contrib_names %}
<div style="margin-top: 0px; margin-bottom: 0px; font-size: 1em;">
<b>
{{ ", ".join(paper.contrib_names[:12]) }}
{% if paper.contrib_names|length > 12 %}<i>(+{{ paper.contrib_names|length - 12 }} others)</i>{% endif %}
</b>
</div>
{% endif %}
{% if paper.release_year %}
{{ paper.release_year }}
{% endif %}
{% if paper.release_type %}
{% if paper.release_type in ("article-journal", "paper-conference") %}
<span class="ui black basic label small">{{ paper.release_type }}</span>
{% elif paper.release_type in ("book") %}
<span class="ui brown basic label small">{{ paper.release_type }}</span>
{% else %}
<span class="ui grey basic label small">{{ paper.release_type }}</span>
{% endif %}
{% endif %}
{% if paper.release_stage and paper.release_stage != "published" %}
<span class="ui pink label small">{{ paper.release_stage }}</span>
{% elif not paper.release_stage %}
<span class="ui red label small">unknown</span>
{% endif %}
{% if paper.container_name %}
{% if paper.container_id %}
<a href="/container/{{ paper.container_id }}" style="color: black;">{{ paper.container_name }}</a>
{% else %}
{{ paper.container_name }}
{% endif %}
{% if paper.container_is_oa %}<i class="icon unlock orange small"></i>{% endif %}
{% endif %}
{% if paper.doi or paper.pmid or paper.arxiv_id or paper.jstor_id %}
<br>
{% endif %}
{% if paper.doi %}
<a href="https://doi.org/{{paper.doi }}" style="color: green;">doi:{{ paper.doi }}</a>
{% endif %}
{% if paper.pmid %}
<a href="https://www.ncbi.nlm.nih.gov/pubmed/{{paper.pmid }}" style="color: green;">pmid:{{ paper.pmid }}</a>
{% endif %}
{% if paper.arxiv_id %}
<a href="https://arxiv.org/abs/{{paper.arxiv_id }}" style="color: green;">arXiv:{{ paper.arxiv_id }}</a>
{% endif %}
{% if False %} {# XXX: elastic release work grouping searches #}
<br>
<a href="/work/{{ paper.work_id }}"><i class="sitemap icon"></i> and 5 other versions of the same work!</a>
{% endif %}
</div>
{% endfor %}
{% if found.results|length > 8 %}
<br>
<i>Showing top {{ found.count_returned }} out of {{ found.count_found }} results for: <code>{{ found.query.q }}</code></i>
{% endif %}
{% else %}
Raw query was: <i>{{ found.query.q }}</i>
<div class="ui centered stackable grid" style="padding-top: 15%;">
<div class="row">
<div class="four wide column">
<img src="/static/paper_man_confused.gif" alt="confused paper man">
</div>
<div class="six wide column">
<h2>No results found!</h2>
<p>You could try elsewhere:</p>
<ul>
<li>Search <a href="https://dissem.in/search?q={{ found.query.q | urlencode }}">dissem.in</a></li>
<li>Search <a href="https://www.base-search.net/Search/Results?lookfor={{ found.query.q | urlencode }}">BASE</a></li>
<li>Search <a href="https://scholar.google.com/scholar?q={{ found.query.q | urlencode }}">Google Scholar</a></li>
</ul>
</div>
{% endif %}
{% endif %}
</div>
{% endblock %}
|