diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2021-09-16 14:16:25 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2021-09-16 14:16:25 +0200 |
commit | f3a4612901b9e2ce6ad5ad501edfcc887b717587 (patch) | |
tree | f2bfe93f9c4861767c91b1e7c61842c4f1e63b11 /docs | |
parent | 87c153d34a0f4e131f8bff5cc814703cbc704cbb (diff) |
Script to import book data from openlibrary
Diffstat (limited to 'docs')
-rw-r--r-- | docs/examples/books/templates/from_openlibrary.yaml | 32 |
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: '' |