Skip to content

Commit cbeca04

Browse files
committed
Merge branch 'gh-pages' of github.com:timwis/jkan into gh-pages
2 parents 163b41e + 2c110da commit cbeca04

File tree

2 files changed

+28
-19
lines changed

2 files changed

+28
-19
lines changed

_layouts/dataset.html

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,43 @@
1717
</div>
1818

1919
{% assign organization = site.organizations | where:"title",page.organization | first %}
20-
<div class="row" data-hook="read-view">
20+
{% capture organization_url %}{{ site.baseurl }}/datasets/?organization={{ organization.title | slugify }}{% endcapture %}
21+
22+
<div data-hook="read-view" typeof="dcat:Dataset" resource="{{ page.url }}">
2123
{% if organization %}
22-
<div class="col-sm-3">
23-
<div class="panel panel-default">
24-
<div class="panel-heading">
25-
{% if organization.logo != "" %}
26-
<a href="{{ site.baseurl }}/datasets/?organization={{ organization.title | slugify }}" class="thumbnail"><img src="{{ organization.logo }}" alt="{{ organization.title }} logo"></a>
27-
{% endif %}
28-
</div>
29-
<div class="panel-body">
30-
<h3><a href="{{ site.baseurl }}/datasets/?organization={{ organization.title | slugify }}">{{ organization.title }}</a></h3>
31-
{{ organization.description }}
24+
<div class="col-sm-3" property="dct:publisher" resource="{{ organization_url }}">
25+
<div class="panel panel-default">
26+
<div class="panel-heading">
27+
{% if organization.logo != "" %}
28+
<a href="{{ site.baseurl }}/datasets/?organization={{ organization.title | slugify }}" class="thumbnail"><img src="{{ organization.logo }}" alt="{{ organization.title }} logo"></a>
29+
{% endif %}
30+
</div>
31+
<div class="panel-body">
32+
<h3>
33+
<a href="{{ organization_url }}" about="{{ organization_url }}" property="foaf:homepage">
34+
<span property="foaf:name">{{ organization.title }}</span>
35+
</a>
36+
</h3>
37+
{{ organization.description }}
38+
</div>
39+
</div>
3240
</div>
33-
</div>
34-
</div>
3541
<div class="col-sm-9">
3642
{% else %}
3743
<div class="col-sm-12">
3844
{% endif %}
3945
<h1>
40-
{{ page.title }}
46+
<span property="dct:title">{{ page.title }}</span>
4147
<a href="https://github.com/{{ site.github.owner_name }}/{{ site.github.project_title }}/edit/gh-pages/{{ page.path }}" class="pull-right btn btn-default edit-dataset-btn" role="button" data-hook="edit-button">Edit</a>
4248
</h1>
43-
<p>{{ page.notes }}</p>
49+
<p property="dct:description">{{ page.notes }}</p>
4450

4551
<h2>Resources</h2>
4652
<ul>
4753
{% for resource in page.resources %}
48-
<li data-hook="resource-item">
49-
<a href="{{ resource.url }}">{{ resource.name }}</a>
50-
{% if resource.format %}<span class="label label-default">{{ resource.format}}</span>{% endif %}
54+
<li data-hook="resource-item" property='dcat:distribution' typeof='dcat:Distribution'>
55+
<a href="{{ resource.url }}" property='dcat:accessURL'><span property="dct:title">{{ resource.name }}</span></a>
56+
{% if resource.format %}<span class="label label-default" property='dcat:mediaType'>{{ resource.format}}</span>{% endif %}
5157
<a href="#" class="show-resource-details" data-hook="show-resource-details">(Details)</a>
5258
{% if resource.description %}<div class="resource-description">{{ resource.description }}</div>{% endif %}
5359
<table class="table table-striped table-condensed resource-details" data-hook="resource-details">

_layouts/default.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html prefix="dct: http://purl.org/dc/terms/
3+
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
4+
dcat: http://www.w3.org/ns/dcat#
5+
foaf: http://xmlns.com/foaf/0.1/">
36

47
{% include head.html %}
58

0 commit comments

Comments
 (0)