-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublication.html
108 lines (105 loc) · 4.22 KB
/
publication.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
---
layout: default
rdf_prefix_path: "_data/prefix.sparql"
ttl: true
---
<div class="post">
<header class="post-header">
<h2>{{ page.rdf | rdf_property: "dct:title" }}</h2>
<div>
{% assign authors = page.rdf | rdf_container: "dct:creator" %}
{% for author in authors %}
{%- if author.iri -%}
<a href="{{ author.iri }}">{{ author | rdf_property: "foaf:name" }}</a>
{%- else -%}
<span>{{ author }}</span>
{%- endif -%}
{% unless forloop.last %}, {% endunless %}
{%- endfor -%}
{%- assign comment = page.rdf | rdf_property: "rdfs:comment" -%}
{%- if comment -%}
 <em>({{ comment }})</em>
{%- endif -%}
{%- assign publisher = page.rdf | rdf_property: "dct:publisher" -%}
{%- if publisher -%}
</div>
<div>
<em>at</em>
<span class="publisher">{{ publisher }}</span>
{%- endif -%}
{%- assign collection = page.rdf | rdf_property: "dct:isPartOf" -%}
{%- if collection -%}
</div>
<div>
<em>in</em>
{% if collection.iri %}
<span class="journal">
{%- assign editors = collection | rdf_container: "bibtex:editor" -%}
{{ collection | rdf_property: "dct:title" }}
{%- if editors.size > 0 %}
(Editors: 
{%- for editor in editors -%}
<span class="editor">{{ editor | rdf_property: "foaf:name" }}</span>{% unless forloop.last %}, {% endunless %}{% endfor %}){% endif %}</span>,
<span class="date">{{ collection | rdf_property: "dct:issued" }}</span>
{% else %}
<span class="journal">{{ collection }}</span>
{% endif %}
{%- else -%}
{%- assign submitted = page.rdf | rdf_property: "dct:dateSubmitted" -%}
{%- assign accepted = page.rdf | rdf_property: "dct:dateAccepted" -%}
{%- if submitted or accepted -%}
; submitted: <span class="date">{{ submitted }}</span>, accepted: <span class="date">{{ accepted }}</span>, published: <span class="date">{{ page.rdf | rdf_property: "dct:issued" }}</span>
{%- else -%}
; <span class="date">{{ page.rdf | rdf_property: "dct:issued" }}</span>
{%- endif -%}
{% endif %}
{%- assign call = page.rdf | rdf_property: "as:inReplyTo" -%}
{%- if call -%}
</div>
<div>
<em>in reply to (call)</em>
{% if call.iri %}
<span class="call">{{ call | rdf_property: "dct:title" }}</span>
{% else %}
<span class="call">{{ call }}</span>
{% endif %}
{%- endif -%}
</div>
<div>
{% assign download = page.rdf | rdf_property: "dct:hasFormat" %}
{% assign doi = page.rdf | rdf_property: "bibo:doi" %}
{% assign isbn = page.rdf | rdf_property: "bibo:isbn" %}
{% assign bibsonomy = page.rdf | rdf_property: "rdfs:seeAlso" %}
{% if download %}<a href="{{ download }}"><i class="fa fa-download"></i> Download Paper</a>,{% endif %}
{% if doi %}<a href="https://dx.doi.org/{{ doi }}"><i class="fa fa-circle"></i> DOI</a>,{% endif %}
{% if isbn %}<a href="https://en.wikipedia.org/wiki/Special:BookSources/{{ isbn }}"><i class="fa fa-info-circle"></i> ISBN</a>,{% endif %}
{% if bibsonomy %}<a href="{{ bibsonomy }}"><i class="fa fa-database"></i> Bibsonomy</a>,{% endif %}
<a href="{{ page.url | remove: ".html" | prepend: "/ttl" | prepend: site.baseurl }}"><i class="fa fa-share-alt"></i> RDF (Turtle)</a>
<!-- concat('http://www.bibsonomy.org/bibtex/', .intraHash, '/', .user) -->
</div>
</header>
{% assign abstract = page.rdf | rdf_property: "dct:abstract" %}
{% if abstract %}
<article class="post-content">
<h3>Abstract</h3>
{{ abstract | markdownify }}
</article>
{% endif %}
{% unless content and content != "" %}
{% if download %}
{% unless download.iri contains "https://" %}
{% assign downloads = page.rdf | rdf_property: "dct:hasFormat", nil, true %}
{% for format in downloads %}
{% if format.iri contains "https://" %}
{% assign download = format %}
{% endif %}
{% endfor %}
{% endunless %}
<h3>Preview</h3>
<object data="{{ download }}" type="application/pdf" width="100%" style="height: 1000px">
<a href="{{ download }}">Download</a>
</object>
{% endif %}
{% endunless %}
{{ content }}
</div>