-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathpublications.tmpl
54 lines (54 loc) · 2.2 KB
/
publications.tmpl
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
<table class="table">
<tbody>
{%- set prev_year = dict() %}
{% set _ = prev_year.update({'val': 1900}) %}
{%- for entry in entries %}
<tr>
<td class="publication">
<span class="pubtitle">
{%- set url = entry|main_url %}
{%- if url %}
{%- if '.pdf' in url %}
<img src="img/pdficon_small.png" width="16"
height="16" alt="PDF" />
{%- endif %}
<a href="{{ url|escape }}">{{ entry|title }}</a>.
{%- elif entry.fields['doi'] %}
{%- if 'http' in entry.fields['doi'] %}
<a href="{{ entry.fields['doi']|escape }}">{{ entry|title }}</a>.
{%- else %}
<a href="https://doi.org/{{ entry.fields['doi']|escape }}">{{ entry|title }}</a>.
{%- endif %}
{%- else %}
{{ entry|title }}.
{%- endif %}
</span><br />
<span class="authors">
{{ entry.persons['author']|author_list }}.
</span><br />
<span class="venuetype">{{ entry|venue_type -}}</span><span class="venue">{{ entry|venue -}}</span>.
{%- if entry.fields['note'] %}
<span class="note">
<br />
<strong>{{ entry.fields['note']|escape }}</strong>
</span>
{%- endif %}
<br />
<span class="links">
{%- for type, url in (entry|extra_urls).items() %}
[<a href="{{ url|escape }}">{{ type|escape }}</a>]
{%- endfor %}
{%- if entry.fields['abstract'] %}
[<a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);" onclick="$('#abstract_{{entry.fields['key']}}').slideToggle('fast');return false;">abstract</a>]
{%- endif %}
</span>
{%- if entry.fields['abstract'] %}
<div id="abstract_{{entry.fields['key']}}" class="abstract">
{{ entry.fields['abstract'] |escape }}
</div>
{%- endif %}
</td>
</tr>
{%- endfor %}
</tbody>
</table>