Bug 24083: (follow-up) Squashed follow ups
[koha.git] / installer / data / mysql / en / optional / sample_creator_data.yml
1 ---
2 #
3 #  Copyright 2020 Koha Development Team
4 #
5 #  This file is part of Koha.
6 #
7 # Koha is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # Koha is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with Koha; if not, see <http://www.gnu.org/licenses>.
19
20 description:
21   - "Sample label and patron card data"
22
23 tables:
24   - creator_layouts:
25       translatable: [ layout_name, layout_xml ]
26       multiline: [ layout_xml ]
27       rows:
28         - layout_id: 17
29           barcode_type: CODE39
30           start_label: 1
31           printing_type: BIBBAR
32           layout_name: "Label Test"
33           guidebox: 0
34           font: TR
35           font_size: 3
36           units: POINT
37           callnum_split: 0
38           text_justify: L
39           format_string: "title, author, isbn, issn, itemtype, barcode, itemcallnumber"
40           layout_xml:
41             - "<opt></opt>"
42           creator: "Labels"
43
44         - layout_id: 18
45           barcode_type: CODE39
46           start_label: 1
47           printing_type: BAR
48           layout_name: "DEFAULT"
49           guidebox: 0
50           font: TR
51           font_size: 3
52           units: POINT
53           callnum_split: 0
54           text_justify: L
55           format_string: "title, author, isbn, issn, itemtype, barcode, itemcallnumber"
56           layout_xml:
57             - "<opt></opt>"
58           creator: "Labels"
59
60         - layout_id: 19
61           barcode_type: CODE39
62           start_label: 1
63           printing_type: BAR
64           layout_name: "DEFAULT"
65           guidebox: 0
66           font: TR
67           font_size: 3
68           units: POINT
69           callnum_split: 0
70           text_justify: L
71           format_string: "title, author, isbn, issn, itemtype, barcode, itemcallnumber"
72           layout_xml:
73             - "<opt></opt>"
74           creator: "Labels"
75
76         - layout_id: 20
77           barcode_type: CODE39
78           start_label: 1
79           printing_type: BAR
80           layout_name: "Test Layout"
81           guidebox: 0
82           font: TR
83           font_size: 10
84           units: POINT
85           callnum_split: 0
86           text_justify: L
87           format_string: "barcode"
88           layout_xml:
89             - "<opt page_side=\"F\" units=\"POINT\">"
90             - "  <images name=\"image_1\" Dx=\"72\" Ox=\"0\" Oy=\"0\" Sx=\"0\" Sy=\"0\" Tx=\"4.5\" Ty=\"63\">"
91             - "    <data_source image_name=\"none\" image_source=\"patronimages\" />"
92             - "  </images>"
93             - "  <text>&lt;firstname&gt; &lt;surname&gt;</text>"
94             - "  <text enable=\"1\" font=\"TR\" font_size=\"10\" llx=\"100\" lly=\"100\" text_alignment=\"L\" />"
95             - "  <text>Branch: &lt;branchcode&gt;</text>"
96             - "  <text enable=\"1\" font=\"TR\" font_size=\"10\" llx=\"100\" lly=\"75\" text_alignment=\"L\" />"
97             - "  <text>Expires: August 31, 2010</text>"
98             - "  <text font=\"TR\" font_size=\"6\" llx=\"115\" lly=\"65\" text_alignment=\"L\" />"
99             - "</opt>"
100           creator: "Patroncards"
101
102   - creator_templates:
103       translatable: [ template_desc ]
104       multiline: [ ]
105       rows:
106         - template_id: 1
107           profile_id: 1
108           template_code: "Avery 5160 | 1 x 2-5/8"
109           template_desc: "3 columns, 10 rows of labels"
110           page_width: 8.5
111           page_height: 11
112           label_width: 2.63
113           label_height: 1
114           top_text_margin: 0.139
115           left_text_margin: 0
116           top_margin: 0.35
117           left_margin: 0.23
118           cols: 3
119           rows: 10
120           col_gap: 0.13
121           row_gap: 0
122           units: "INCH"
123           creator: "Labels"
124
125         - template_id: 7
126           profile_id: 13
127           template_code: "Demco WS14942260"
128           template_desc: "1\" X 1.5\" Spine Label | Setup for up to four lines of text"
129           page_width: 8.5
130           page_height: 11
131           label_width: 1.5
132           label_height: 1
133           top_text_margin: 0.236
134           left_text_margin: 0
135           top_margin: 0.5
136           left_margin: 0.25
137           cols: 5
138           rows: 10
139           col_gap: 0.0625
140           row_gap: 0
141           units: "INCH"
142           creator: "Labels"
143
144         - template_id: 12
145           profile_id: 14
146           template_code: "Demco WS14942260"
147           template_desc: "1\" X 1.5\" Spine Label | Setup for five lines of text"
148           page_width: 8.5
149           page_height: 11
150           label_width: 1.5
151           label_height: 1
152           top_text_margin: 0.139
153           left_text_margin: 0
154           top_margin: 0.53
155           left_margin: 0.3
156           cols: 5
157           rows: 10
158           col_gap: 0.0625
159           row_gap: 0
160           units: "INCH"
161           creator: "Labels"
162
163         - template_id: 22
164           profile_id: 0
165           template_code: "DEFAULT TEMPLATE 01"
166           template_desc: "Default description"
167           page_width: 0
168           page_height: 5
169           label_width: 0
170           label_height: 0
171           top_text_margin: 0
172           left_text_margin: 0
173           top_margin: 0
174           left_margin: 0
175           cols: 0
176           rows: 0
177           col_gap: 0
178           row_gap: 0
179           units: "POINT"
180           creator: "Labels"
181
182         - template_id: 23
183           profile_id: 16
184           template_code: "HB-PC0001"
185           template_desc: "A template for home brewed patron card forms"
186           page_width: 8.5
187           page_height: 11
188           label_width: 3.1875
189           label_height: 1.9375
190           top_text_margin: 0
191           left_text_margin: 0
192           top_margin: 0.6875
193           left_margin: 0.875
194           cols: 2
195           rows: 4
196           col_gap: 0.4375
197           row_gap: 0.1875
198           units: "INCH"
199           creator: "Patroncards"
200
201   - printers_profile:
202       translatable: [ printer_name ]
203       multiline: [ ]
204       rows:
205         - profile_id: 1
206           printer_name: "Library Laser"
207           template_id: 1
208           paper_bin: "Bypass"
209           offset_horz: -2
210           offset_vert: 9
211           creep_horz: 3
212           creep_vert: 0
213           units: "POINT"
214           creator: "Labels"
215
216         - profile_id: 13
217           printer_name: "Library Laser"
218           template_id: 7
219           paper_bin: "Tray 1"
220           offset_horz: 0
221           offset_vert: 0
222           creep_horz: 0
223           creep_vert: 0
224           units: "POINT"
225           creator: "Labels"
226
227         - profile_id: 14
228           printer_name: "Library Laser"
229           template_id: 12
230           paper_bin: "Tray 2"
231           offset_horz: 0
232           offset_vert: 0
233           creep_horz: 0
234           creep_vert: 0
235           units: "POINT"
236           creator: "Labels"
237
238         - profile_id: 16
239           printer_name: "Test Printer 01"
240           template_id: 23
241           paper_bin: "Test Bin"
242           offset_horz: 0
243           offset_vert: 0
244           creep_horz: 0
245           creep_vert: 0
246           units: "POINT"
247           creator: "Patroncards"
248
249         - profile_id: 22
250           printer_name: "Library Laser"
251           template_id: 0
252           paper_bin: "Tray 3"
253           offset_horz: 0
254           offset_vert: 0
255           creep_horz: 0
256           creep_vert: 0
257           units: "POINT"
258           creator: "Labels"