Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
osp
tools.ethertoff
Commits
7c7c1c70
Commit
7c7c1c70
authored
Sep 11, 2014
by
eric
Browse files
Encode the ‘Theme’ metadata
Uses the dc:subject, ‘Tag’ now uses ctag:Tag
parent
e708bfd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
relearn/management/commands/index.py
View file @
7c7c1c70
...
...
@@ -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"
]:
...
...
relearn/templates/partials/metadata.html
View file @
7c7c1c70
...
...
@@ -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 %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment