isbn input forms
[wolnelektury.git] / src / isbn / templates / isbn / wl_dc_tags.html
diff --git a/src/isbn/templates/isbn/wl_dc_tags.html b/src/isbn/templates/isbn/wl_dc_tags.html
new file mode 100644 (file)
index 0000000..5bf8036
--- /dev/null
@@ -0,0 +1,14 @@
+{% extends "base/base.html" %}
+
+{% block title %}Znaczniki ISBN{% endblock %}
+
+{% block body %}
+
+  <h1>Znaczniki ISBN</h1>
+  <h2>{{ title }}</h2>
+<code>{% for format, content_type, isbn in isbn_formats %}
+&lt;dc:relation.hasFormat id="{{ format }}" xmlns:dc="http://purl.org/dc/elements/1.1/">https://wolnelektury.pl/{% if format == 'html' %}katalog/lektura{% else %}media/book/{{ format }}{% endif %}/{{ slug }}.{{ format }}&lt;/dc:relation.hasFormat><br>
+&lt;meta refines="#{{ format }}" id="{{ format }}-id" property="dcterms:identifier">ISBN-{{ isbn }}&lt;/meta><br>
+&lt;meta refines="#{{ format }}-id" property="identifier-type">ISBN&lt;/meta><br>
+  &lt;meta refines="#{{ format }}" property="dcterms:format">{{ content_type }}&lt;/meta><br>{% endfor %}</code>
+{% endblock %}
\ No newline at end of file