-
Notifications
You must be signed in to change notification settings - Fork 11
/
conceptscheme.jinja2
98 lines (91 loc) · 4.12 KB
/
conceptscheme.jinja2
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
{% extends 'layout.jinja2' %}
{% block head %}
{{ super() }}
<meta name="og:type" content="website" />
<meta name="og:url" content="{{ request.route_url('conceptscheme', scheme_id=conceptscheme.scheme_id) }}" />
<meta name="og:title" content="{{ conceptscheme.title }}" />
{% if conceptscheme.notes|length > 0 %}
<meta name="og:description" content="{{ conceptscheme.notes[0]|safe }}" />
{% endif %}
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="{{ request.registry.settings['twitter.site']}}" />
<meta name="twitter:title" content="{{ conceptscheme.title }}" />
{% if conceptscheme.notes|length > 0 %}
<meta name="twitter:description" content="{{ conceptscheme.notes[0]|safe }}" />
{% endif %}
<link rel="canonical" href="{{ request.route_url('conceptscheme', scheme_id=conceptscheme.scheme_id) }}" />
{% endblock %}
{% block html_title %}{{ conceptscheme.title }}{% endblock %}
{% from "macros.jinja2" import
print_labels,
print_concepts,
get_conceptscheme_label
%}
{% block content %}
<div class="large-12 columns">
<div class="row">
<div class="clearfix">
<ul class="downloadtop right">
<li>DOWNLOAD</li>
<li><a title="Download the scheme and it's top concepts in RDF/XML format." href="{{request.route_path('atramhasis.rdf_conceptscheme_export_ext', scheme_id=conceptscheme.scheme_id)}}">RDF/XML</a></li>
<li><a title="Download the scheme and it's top concepts in N3/Turle format." href="{{request.route_path('atramhasis.rdf_conceptscheme_export_turtle_ext', scheme_id=conceptscheme.scheme_id)}}">N3/Turtle</a></li>
<li><a title="Download the scheme and all it's concepts and collections in RDF/XML format." href="{{request.route_path('atramhasis.rdf_full_export_ext', scheme_id=conceptscheme.scheme_id)}}">Full RDF/XML</a></li>
<li><a title="Download the scheme and all it's concepts and collections in N3/Turtle format." href="{{request.route_path('atramhasis.rdf_full_export_turtle_ext', scheme_id=conceptscheme.scheme_id)}}">Full N3/Turtle</a></li>
</ul>
</div>
<div class="large-12 columns panel">
<h1 class="panel-header left">{{ conceptscheme.title }}</h1>
<h2 class="id-header right">[ ID : {{ conceptscheme.scheme_id }} ]</h2>
<hr>
<dl class="infolist clearfix">
{% if conceptscheme.uri %}
<dt>uri</dt>
<dd><a href="{{ conceptscheme.uri }}">{{ conceptscheme.uri }}</a></dd>
{% endif %}
{% if conceptscheme.labels %}
{{ print_labels(conceptscheme.labels) }}
{% endif %}
</dl>
{% if conceptscheme.notes %}
<ul class="scopeNote">
{% if conceptscheme.notes|length > 0 %}
<h3>{% trans %}notes{% endtrans %}</h3>
{%- for note in conceptscheme.notes %}
<li lang="{{ note.language }}">
<strong>{{ note.type|capitalize }}</strong> <em>({{ note.language }})</em>: {{ note.note|safe }}
</li>
{%- endfor %}
{% endif %}
</ul>
{% endif %}
{% if conceptscheme.sources %}
<ul class="scopeNote">
{% if conceptscheme.sources|length > 0 %}
<h3>{% trans %}sources{% endtrans %}</h3>
{%- for source in conceptscheme.sources %}
<li>
{{ source.citation|safe }}
</li>
{%- endfor %}
{% endif %}
</ul>
{% endif %}
{% if request.has_permission('edit') %}
<div class="row">
<div class="large-2 columns right">
<a href="{{ request.route_path('admin') + '#/conceptschemes/' + conceptscheme.scheme_id }}"
class="fa fa-pencil editIcon"
title="Edit concept">
</a>
</div>
</div>
{% endif %}
</div>
</div>
</div>
<div class="large-12 columns" style="margin-top: 20px;">
<div class="row" title="{% trans %}tree_help{% endtrans %}">
{% include "tree.jinja2" %}
</div>
</div>
{% endblock %}