diff options
Diffstat (limited to 'docs/examples/books/templates')
-rw-r--r-- | docs/examples/books/templates/from_openlibrary.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/books/templates/from_openlibrary.yaml b/docs/examples/books/templates/from_openlibrary.yaml index 2fab669..e1d8d25 100644 --- a/docs/examples/books/templates/from_openlibrary.yaml +++ b/docs/examples/books/templates/from_openlibrary.yaml @@ -10,7 +10,7 @@ publisher: '{{ edition.publishers | join(", ") }}' edition: '' copyright_year: [] publication_year: {{ pub_date.year }} -isbn: '{{ edition.isbn_13.0 }}' +isbn: '{% if edition.isbn_13 %}{{ edition.isbn_13.0 }}{% else %}{% if edition.isbn_10 %}{{ edition.isbn_10.0 }}{% endif %}{% endif %}' lccn: '' openlibrary: 'https://openlibrary.org{{ edition.key }}' pages: {{ edition.number_of_pages }} |