|
17 | 17 | </div> |
18 | 18 |
|
19 | 19 | {% 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 }}"> |
21 | 23 | {% 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> |
32 | 40 | </div> |
33 | | - </div> |
34 | | - </div> |
35 | 41 | <div class="col-sm-9"> |
36 | 42 | {% else %} |
37 | 43 | <div class="col-sm-12"> |
38 | 44 | {% endif %} |
39 | 45 | <h1> |
40 | | - {{ page.title }} |
| 46 | + <span property="dct:title">{{ page.title }}</span> |
41 | 47 | <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> |
42 | 48 | </h1> |
43 | | - <p>{{ page.notes }}</p> |
| 49 | + <p property="dct:description">{{ page.notes }}</p> |
44 | 50 |
|
45 | 51 | <h2>Resources</h2> |
46 | 52 | <ul> |
47 | 53 | {% 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 %} |
51 | 57 | <a href="#" class="show-resource-details" data-hook="show-resource-details">(Details)</a> |
52 | 58 | {% if resource.description %}<div class="resource-description">{{ resource.description }}</div>{% endif %} |
53 | 59 | <table class="table table-striped table-condensed resource-details" data-hook="resource-details"> |
|
0 commit comments