Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix structured data (microdata) properties, refs #354 #372

Merged
merged 1 commit into from
Mar 7, 2016
Merged

Fix structured data (microdata) properties, refs #354 #372

merged 1 commit into from
Mar 7, 2016

Conversation

davidbgk
Copy link
Member

@davidbgk davidbgk commented Mar 3, 2016

No description provided.

@@ -52,11 +52,13 @@
{% endblock %}

{% block content %}
<div itemscope="itemscope" itemtype="http://schema.org/Dataset" itemid="{{dataset.id}}">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why an extra div ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to have all sections in it for complex relations (isPartOf, etc)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. It does not break the style ?

@noirbizarre
Copy link
Contributor

I think dataset/display.js need an update too to follow naming change

@davidbgk
Copy link
Member Author

davidbgk commented Mar 3, 2016

I reverted the removal of itemid for the JS part and now it works :)

@@ -1,6 +1,6 @@
{% set resource_format = resource.format|trim|lower or 'data' %}
<div id="resource-{{resource.id}}" class="list-group-item"
itemscope="itemscope" itemtype="http://schema.org/DataDownload"
itemscope itemtype="http://schema.org/DataDownload"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs itemprop="distribution" to be properly attached to the dataset

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@noirbizarre
Copy link
Contributor

r+wc

davidbgk added a commit that referenced this pull request Mar 7, 2016
Fix structured data (microdata) properties, refs #354
@davidbgk davidbgk merged commit 569ab39 into opendatateam:dev Mar 7, 2016
@noirbizarre noirbizarre deleted the 354-structure-data branch March 30, 2016 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants