ad763686303549d809055a4c5b20d339742d69b5
[wolnelektury.git] / src / catalogue / fixtures / test-books.yaml
1 - model: catalogue.book
2   pk: 1
3   fields:
4     slug: parent
5     title: Parent
6     sort_key: parent
7     sort_key_author: john doe
8     xml_file: xml/parent.xml
9     epub_file: epub/parent.epub
10     mobi_file: mobi/parent.mobi
11     pdf_file: pdf/parent.pdf
12     cover: cover/parent.jpg
13     cover_api_thumb: cover_api_thumb/parent.jpg
14     simple_cover: simple_cover/parent.jpg
15     recommended: true
16     created_at: "1970-01-03 0:0Z"
17     changed_at: "1970-01-03 0:0Z"
18     extra_info: '{"epoch": "Barok"}'
19 - model: catalogue.book
20   pk: 2
21   fields:
22     slug: child
23     title: Child
24     sort_key: child
25     parent: 1
26     created_at: "1970-01-02 0:0Z"
27     changed_at: "1970-01-02 0:0Z"
28 - model: catalogue.book
29   pk: 3
30   fields:
31     slug: grandchild
32     title: Grandchild
33     sort_key: grandchild
34     parent: 2
35     txt_file: txt/grandchild.txt
36     html_file: html/grandchild.html
37     fb2_file: fb2/grandchild.fb2
38     created_at: "1970-01-01 0:0Z"
39     changed_at: "1970-01-01 0:0Z"
40
41 - model: catalogue.tag
42   pk: 1
43   fields:
44     slug: john-doe
45     sort_key: john doe
46     category: author
47     name: John Doe
48     created_at: "1970-01-03 0:0Z"
49     changed_at: "1970-01-03 0:0Z"
50 - model: catalogue.tag
51   pk: 2
52   fields:
53     slug: liryka
54     sort_key: liryka
55     category: kind
56     name: Liryka
57     created_at: "1970-01-03 0:0Z"
58     changed_at: "1970-01-03 0:0Z"
59 - model: catalogue.tag
60   pk: 3
61   fields:
62     slug: barok
63     sort_key: barok
64     category: epoch
65     name: Barok
66     created_at: "1970-01-03 0:0Z"
67     changed_at: "1970-01-03 0:0Z"
68 - model: catalogue.tag
69   pk: 4
70   fields:
71     slug: sonet
72     sort_key: sonet
73     category: genre
74     name: Sonet
75     created_at: "1970-01-03 0:0Z"
76     changed_at: "1970-01-03 0:0Z"
77 - model: catalogue.tag
78   pk: 5
79   fields:
80     slug: wiersz
81     sort_key: wiersz
82     category: genre
83     name: Wiersz
84     created_at: "1970-01-03 0:0Z"
85     changed_at: "1970-01-03 0:0Z"
86
87
88 - model: catalogue.tagrelation
89   fields:
90     tag: 1
91     content_type: ['catalogue', 'book']
92     object_id: 1
93 - model: catalogue.tagrelation
94   fields:
95     tag: 2
96     content_type: ['catalogue', 'book']
97     object_id: 1
98 - model: catalogue.tagrelation
99   fields:
100     tag: 3
101     content_type: ['catalogue', 'book']
102     object_id: 1
103 - model: catalogue.tagrelation
104   fields:
105     tag: 4
106     content_type: ['catalogue', 'book']
107     object_id: 1
108 - model: catalogue.tagrelation
109   fields:
110     tag: 4
111     content_type: ['catalogue', 'book']
112     object_id: 3
113 - model: catalogue.tagrelation
114   fields:
115     tag: 5
116     content_type: ['catalogue', 'book']
117     object_id: 2
118
119 - model: catalogue.bookmedia
120   fields:
121     book: 1
122     type: mp3
123     name: Parent Audiobook
124     file: mp3/parent.mp3
125     uploaded_at: "1970-01-03 0:0Z"
126     extra_info: {"director_name": "Director", "artist_name": "Artist"}
127 - model: catalogue.bookmedia
128   fields:
129     book: 1
130     type: daisy
131     name: Parent DAISY
132     file: daisy/parent.daisy
133     uploaded_at: "1970-01-03 0:0Z"
134
135 - model: catalogue.fragment
136   id: 1
137   fields:
138     short_text: "Fragment"
139     text: "A fragment"
140     anchor: "an-anchor"
141     book: 2
142 - model: catalogue.tagrelation
143   fields:
144     tag: 5
145     content_type: ['catalogue', 'fragment']
146     object_id: 1
147 - model: catalogue.tag
148   pk: 101
149   fields:
150     slug: koniec
151     sort_key: koniec
152     category: theme
153     name: Koniec
154     created_at: "1970-01-03 0:0Z"
155     changed_at: "1970-01-03 0:0Z"
156 - model: catalogue.tagrelation
157   fields:
158     tag: 101
159     content_type: ['catalogue', 'fragment']
160     object_id: 1
161
162 - model: catalogue.collection
163   fields:
164     title: A Collection
165     slug: a-collection
166     description: Description
167     book_slugs: parent
168