-
Notifications
You must be signed in to change notification settings - Fork 2k
/
read.html
110 lines (93 loc) · 4.53 KB
/
read.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
109
<html xmlns:py="http://genshi.edgewall.org/"
xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dcat="http://www.w3.org/ns/dcat#"
typeof="dcat:Dataset"
about=""
py:strip="">
<py:def function="page_title">${c.pkg_dict.get('title', c.pkg_dict['name'])}
- Datasets</py:def>
<py:def function="page_heading" property="dc:title">
${c.pkg_dict['title']}
</py:def>
<py:match path="primarysidebar">
<li py:if="c.pkg.license_id" id="dataset-license" class="sidebar-section">
<strong>License:</strong>
<py:choose test="">
<span py:when="c.pkg_dict.get('license_url')"><a
href="${c.pkg_dict.get('license_url')}" rel="dc:rights">${c.pkg_dict.get('license_title')}</a></span>
<span py:when="c.pkg.license" property="dc:rights">${c.pkg_dict.get('license_title')}</span>
</py:choose>
<py:if test="c.pkg_dict.get('isopen')">
<a href="http://opendefinition.org/okd/" title="This dataset satisfies the Open Definition.">
<img class="open-data" src="http://assets.okfn.org/images/ok_buttons/od_80x15_blue.png" alt="[Open Data]" />
</a>
</py:if>
<py:if test="not c.pkg_dict.get('isopen')">
<span class="closed">
${h.icon('lock')}
</span>
</py:if>
</li>
<li py:if="c.pkg_dict.get('tags')" class="sidebar-section">
<h3>Tags</h3>
${tag_list(c.pkg_dict.get('tags', ''))}
</li>
<li py:if="c.pkg_dict.groups" class="sidebar-section">
<h3>Groups</h3>
<ul class="groups">
<li py:for="group in sorted(c.pkg_dict.groups, key=lambda g: g['title'] or g['name'])">
<a href="${h.url_for(controller='group', action='read', id=group['name'])}">${group.get('title') or group.get('name')}</a>
</li>
</ul>
</li>
<li py:if="c.package_relationships" class="sidebar-section">
<h3>Related Datasets</h3>
<ul class="related-datasets">
<py:for each="pkg, relationship_str, comment in c.package_relationships">
<li>
${h.literal(relationship_str % (h.link_to(pkg.name, h.url_for(controller="package", action="read", id=pkg.name))))}
<span py:if="comment is not None and len(comment)" class="relationship_comment">
(${comment})
</span>
</li>
</py:for>
</ul>
</li>
<!-- <py:if test="not(c.pkg.isopen() and c.pkg.resources)"> -->
<!-- <h3 i18n:msg="">This dataset is Not Open</h3> -->
<!-- <p>Either because it is not openly licensed or is missing -->
<!-- downloadable resources.</p> -->
<!-- <p class="widget_action"> -->
<!-- <a href="http://isitopendata.org/enquiry/start/?ckan_dataset=${c.pkg.name}">Start an enquiry on IsItOpenData »</a> -->
<!-- </p> -->
<!-- </py:if> -->
<!-- </li> -->
</py:match>
<div py:match="content">
<py:if test="c.pkg_revision_id">
<div id="revision" class="widget-container">
<p py:if="c.pkg_revision_not_latest">This is an old revision of this dataset, as edited <!--!by ${h.linked_user(rev.author)}-->at ${h.render_datetime(c.pkg_revision_timestamp, with_hours=True)}. It may differ significantly from the <a href="${h.url(controller='package', action='read', id=c.pkg.name)}">current revision</a>.</p>
<p py:if="not c.pkg_revision_not_latest">This is the current revision of this dataset, as edited <!--!by ${h.linked_user(rev.author)}-->at ${h.render_datetime(c.pkg_revision_timestamp, with_hours=True)}.</p>
</div>
</py:if>
<xi:include href="read_core.html" />
<span class="insert-comment-thread"></span>
</div>
<py:def function="optional_head">
<py:if test="config.get('rdf_packages')">
<link rel="alternate" type="application/rdf+xml" title="RDF/XML" href="${config['rdf_packages'] + '/' + c.pkg.id + '.rdf' }" />
<link rel="alternate" type="application/turtle" title="RDF/Turtle" href="${config['rdf_packages'] + '/' + c.pkg.id + '.ttl' }" />
</py:if>
</py:def>
<py:def function="optional_feed">
<link rel="alternate" type="application/atom+xml" title="Dataset History"
href="${h.url(controller='package', action='history', id=c.pkg.name, format='atom', days=7)}" />
</py:def>
<xi:include href="layout.html" />
</html>