summaryrefslogtreecommitdiff
path: root/docs/examples/books/import
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-01-03 12:25:15 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-01-03 12:25:15 +0100
commit1b51ac55d3863e2800d3eabddef7e861c49d5d62 (patch)
treeb7ba58c3d123e3689a09114539f321c0a395fc18 /docs/examples/books/import
parented352fe84d7a91aeb96c4048351d4be3793e6d61 (diff)
New collection example: books
Diffstat (limited to 'docs/examples/books/import')
-rw-r--r--docs/examples/books/import/from_tellico.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/docs/examples/books/import/from_tellico.yaml b/docs/examples/books/import/from_tellico.yaml
new file mode 100644
index 0000000..0446492
--- /dev/null
+++ b/docs/examples/books/import/from_tellico.yaml
@@ -0,0 +1,40 @@
+asd: '{{ comments }}'
+title: '{{ title if title }}'
+subtitle: '{ subtitle if subtitle }}'
+authors: {% if authors %}{% for a in authors %}
+ - "{{ a }}"{% endfor %}{% else %}[]{% endif %}
+editors: {% if editors %}{% for e in editors %}
+ - "{{ e }}"{% endfor %}{% else %}[]{% endif %}
+binding: '{{ binding if binding}}'
+purchase_date: '{{ pur_date if pur_date }}'
+purchase_price: '{{ pur_price if pur_price }}'
+publisher: '{{ publisher if publisher }}'
+edition: '{{ edition if edition }}'
+copyright_year: {% if cr_years %}{% for y in cr_years %}
+ - "{{ y }}"{% endfor %}{% else %}[]{% endif %}
+publication_year: {{ pub_year if pub_year }}
+isbn: '{{ isbn if isbn }}'
+lccn: '{{ iccn if iccn }}'
+pages: {{ pages if pages}}
+translators: {% if translators %}{% for t in translators %}
+ - "{{ t }}"{% endfor %}{% else %}[]{% endif %}
+languages: {% if languages %}{% for l in languages %}
+ - "{{ l }}"{% endfor %}{% else %}[]{% endif %}
+genres: {% if genres %}{% for g in genres %}
+ - "{{ g }}"{% endfor %}{% else %}[]{% endif %}
+keywords: {% if keywords %}{% for k in keywords %}
+ - "{{ k }}"{% endfor %}{% else %}[]{% endif %}
+series: '{{ series if series}}'
+series_number: {{ series_num if series_num }}
+condition: '{{ condition if condition}}'
+signed: {{ signed if signed}}
+read: {{ read if read }}
+gift: {{ gift if gift }}
+loaned: {{ loaned if loaned }}
+rating: {{ rating if rating }}
+cover: {{ cover if cover }}
+plot: |
+ {{ plot if plot else '.' | indent(width=2, first=False) }}
+comments: |
+ {{ comments if comments else '.' | indent(width=2, first=False) }}
+