aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/books
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/books')
-rw-r--r--docs/examples/books/templates/from_openlibrary.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/docs/examples/books/templates/from_openlibrary.yaml b/docs/examples/books/templates/from_openlibrary.yaml
new file mode 100644
index 0000000..2fab669
--- /dev/null
+++ b/docs/examples/books/templates/from_openlibrary.yaml
@@ -0,0 +1,32 @@
+title: '{{ edition.title }}'
+subtitle: ''
+authors: {% if authors %}{% for a in authors %}
+- {{ a.name }}{% endfor %}{% else %}[]{% endif %}
+editors: []
+binding: ''
+purchase_date: ''
+purchase_price: ''
+publisher: '{{ edition.publishers | join(", ") }}'
+edition: ''
+copyright_year: []
+publication_year: {{ pub_date.year }}
+isbn: '{{ edition.isbn_13.0 }}'
+lccn: ''
+openlibrary: 'https://openlibrary.org{{ edition.key }}'
+pages: {{ edition.number_of_pages }}
+translators: []
+languages: {% if langs %}{% for l in langs %}
+- {{ l }}{% endfor %}{% else %}[]{% endif %}
+genres: []
+keywords: []
+series: ''
+series_number: 0
+condition: ''
+signed:
+read:
+gift:
+loaned:
+rating: 0
+cover: ''
+plot: ''
+comments: ''