/
additional_info.html
72 lines (65 loc) · 2.28 KB
/
additional_info.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
<section class="content additional-info">
<h3>{{ _('Additional Info') }}</h3>
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>{{ _('Field') }}</th>
<th>{{ _('Value') }}</th>
</tr>
</thead>
<tbody>
{% if c.pkg.url %}
<tr>
<th class="dataset-label">{{ _('Source') }}</th>
<td class="dataset-details" property="foaf:homepage">{{ c.pkg_url_link }}</td>
</tr>
{% endif %}
{% if c.pkg_author_link %}
<tr>
<th class="dataset-label">{{ _("Author") }}</th>
<td class="dataset-details" property="dc:creator">{{ c.pkg_author_link }}</td>
</tr>
{% endif %}
{% if c.pkg_maintainer_link %}
<tr>
<th class="dataset-label">{{ _('Maintainer') }}</th>
<td class="dataset-details" property="dc:contributor">{{ c.pkg_maintainer_link }}</td>
</tr>
{% endif %}
{% if c.pkg.version %}
<tr>
<th class="dataset-label">{{ _("Version") }}</th>
<td class="dataset-details">{{ c.pkg.version }}</td>
</tr>
{% endif %}
{% if c.eu_country %}
<tr>
<th class="dataset-label">{{ _("Country") }}</th>
<td class="dataset-details">{{ h.code_to_country(c.eu_country) }}</td>
</tr>
{% endif %}
{% if h.check_access('package_update',{'id':c.pkg.id}) %}
<tr>
<th class="dataset-label">{{ _("State") }}</th>
<td class="dataset-details">{{ c.pkg.state }}</td>
</tr>
{% endif %}
{% if c.harvest_catalogue_name %}
<tr>
<th class="dataset-label">{{ _('Harvest Source') }}</th>
<td class="dataset-details">
<a href="{{ c.harvest_dataset_url }}">{{ _('Dataset page') }}</a> on
<a href="{{ c.harvest_catalogue_url }}">{{ c.harvest_catalogue_name }}</a>
</td>
</tr>
{% endif %}
{% for extra in c.pkg_extras %}
{% set key, value = extra %}
<tr rel="dc:relation" resource="_:extra{{ i }}">
<th class="dataset-label" property="rdfs:label">{{ _(key) }}</th>
<td class="dataset-details" property="rdf:value">{{ value }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</section>