blob: 9e2aa10ab9502db1144e95224f6655b381cae4b1 (
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
|
{% 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>Journal/Conference Search</h1>
<form class="" role="search" action="/container/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 container metadata">
<button class="ui button">Search</button>
</div>
<br>Can also lookup by <b><a href="/container/lookup">identifier</a></b> or search <b><a href="/release/search?q={{ query or "" }}">releases</a></b>.
</div>
</form>
</div>
</div>
<div class="ui container text">
<br>
{% if found %}
{% if found.results %}
<i>Showing
{% if found.offset == 0 %}
first
{% else %}
results {{ found.offset }} —
{% endif %}
{{ found.offset + found.count_returned }} out of {{ found.count_found }} results for: <code>{{ found.query.q }}</code></i>
<br>
{% if found.offset > 0 %}
{% if found.offset - found.limit < 0 %}
<a href="{{ url_for('release_search', q=query, offset=0) }}">Prev</a>
{% else %}
<a href="{{ url_for('release_search', q=query, offset=found.offset - found.limit) }}">Prev</a>
{% endif %}
{% endif %}
{% if found.offset + found.limit < found.count_found and found.offset + found.limit < found.deep_page_limit %}
<a href="{{ url_for('release_search', q=query, offset=found.offset + found.limit) }}">Next</a>
{% endif %}
{% for entity in found.results %}
<div>
<h4 style="margin-top: 1em; margin-bottom: 4px; font-size: 1.1em;">
<a href="/container/{{ entity.ident }}" style="color: #2224c7;">{{ entity['name'] }}</a>
{% if entity.is_oa %}<i class="icon unlock orange small"></i>{% endif %}
</h4>
{% if entity.publisher %}
<h5 style="margin-top: 4px; margin-bottom: 4px; font-size: 1em;">{{ entity.publisher }}</h5>
{% endif %}
{% if entity.issnl %}
<a href="https://portal.issn.org/resource/ISSN/{{entity.issnl }}" style="color: green;">issn:{{ entity.issnl }}</a>
{% endif %}
{% if entity.container_type %}
{{ entity.container_type }}
{% 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://scholar.google.com/scholar?q={{ found.query.q | urlencode }}">Google Scholar</a></li>
</ul>
</div>
{% endif %}
{% endif %}
</div>
{% endblock %}
|