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