Commit 7c7c1c70 authored by eric's avatar eric
Browse files

Encode the ‘Theme’ metadata

Uses the dc:subject, ‘Tag’ now uses ctag:Tag
parent e708bfd5
......@@ -92,7 +92,8 @@ short_names = {
"http://purl.org/dc/terms/language" : "language",
"http://purl.org/dc/terms/type" : "type",
"http://purl.org/dc/terms/identifier" : "id",
"http://purl.org/dc/terms/subject" : "tags",
"http://commontag.org/ns#Tag" : "tags",
"http://purl.org/dc/terms/subject" : "theme",
"http://purl.org/dc/terms/contributor" : "participants",
"http://purl.org/dc/terms/Location" : "place",
}
......@@ -132,7 +133,7 @@ def query_results_to_template_articles(query_results):
# Some terms give us lists:
if key in [
"http://purl.org/dc/terms/creator",
"http://purl.org/dc/terms/subject",
"http://commontag.org/ns#Tag",
"http://purl.org/dc/terms/contributor",
"http://purl.org/dc/terms/Location"
]:
......
......@@ -4,7 +4,7 @@
{% if meta.theme %}
<dt>Theme</dt>
{% for theme in meta.theme %}
<dd>{{ theme }}</dd>
<dd property="dc:subject">{{ theme }}</dd>
{% endfor %}
{% endif %}
......@@ -26,7 +26,7 @@
{% if meta.tags %}
<dt>Tags</dt>
{% for tag in meta.tags %}
<dd property="dc:subject">{{ tag }}</dd>
<dd property="ctag:Tag">{{ tag }}</dd>
{% endfor %}
{% endif %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment