]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/1048.data.webstaff_print_label_ou_settings.sql
LP#1643709: Stamping upgrade scripts
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 1048.data.webstaff_print_label_ou_settings.sql
1 BEGIN;
2
3 SELECT evergreen.upgrade_deps_block_check('1048', :eg_version);
4
5 INSERT into config.org_unit_setting_type (
6      name
7     ,grp
8     ,label
9     ,description
10     ,datatype
11 ) VALUES ( ----------------------------------------
12      'webstaff.cat.label.font.family'
13     ,'cat'
14     ,oils_i18n_gettext(
15          'webstaff.cat.label.font.family'
16         ,'Item Print Label Font Family'
17         ,'coust'
18         ,'label'
19     )
20     ,oils_i18n_gettext(
21          'webstaff.cat.label.font.family'
22         ,'Set the preferred font family for item print labels. You can specify a list of CSS fonts, separated by commas, in order of preference; the system will use the first font it finds with a matching name. For example, "Arial, Helvetica, serif"'
23         ,'coust'
24         ,'description'
25     )
26     ,'string'
27 ), ( ----------------------------------------
28      'webstaff.cat.label.font.size'
29     ,'cat'
30     ,oils_i18n_gettext(
31          'webstaff.cat.label.font.size'
32         ,'Item Print Label Font Size'
33         ,'coust'
34         ,'label'
35     )
36     ,oils_i18n_gettext(
37          'webstaff.cat.label.font.size'
38         ,'Set the default font size for item print labels. Please include a unit of measurement that is valid CSS. For example, "12pt" or "16px" or "1em"'
39         ,'coust'
40         ,'description'
41     )
42     ,'string'
43 ), ( ----------------------------------------
44      'webstaff.cat.label.font.weight'
45     ,'cat'
46     ,oils_i18n_gettext(
47          'webstaff.cat.label.font.weight'
48         ,'Item Print Label Font Weight'
49         ,'coust'
50         ,'label'
51     )
52     ,oils_i18n_gettext(
53          'webstaff.cat.label.font.weight'
54         ,'Set the default font weight for item print labels. Please use the CSS specification for values for font-weight.  For example, "normal", "bold", "bolder", or "lighter"'
55         ,'coust'
56         ,'description'
57     )
58     ,'string'
59 ), ( ----------------------------------------
60      'webstaff.cat.label.left_label.left_margin'
61     ,'cat'
62     ,oils_i18n_gettext(
63          'webstaff.cat.label.left_label.left_margin'
64         ,'Item Print Label - Left Margin for Left Label'
65         ,'coust'
66         ,'label'
67     )
68     ,oils_i18n_gettext(
69          'webstaff.cat.label.left_label.left_margin'
70         ,'Set the default left margin for the leftmost item print Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"'
71         ,'coust'
72         ,'description'
73     )
74     ,'string'
75 ), ( ----------------------------------------
76      'webstaff.cat.label.right_label.left_margin'
77     ,'cat'
78     ,oils_i18n_gettext(
79          'webstaff.cat.label.right_label.left_margin'
80         ,'Item Print Label - Left Margin for Right Label'
81         ,'coust'
82         ,'label'
83     )
84     ,oils_i18n_gettext(
85          'webstaff.cat.label.right_label.left_margin'
86         ,'Set the default left margin for the rightmost item print label (or in other words, the desired space between the two labels). Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"'
87         ,'coust'
88         ,'description'
89     )
90     ,'string'
91 ), ( ----------------------------------------
92      'webstaff.cat.label.left_label.height'
93     ,'cat'
94     ,oils_i18n_gettext(
95          'webstaff.cat.label.left_label.height'
96         ,'Item Print Label - Height for Left Label'
97         ,'coust'
98         ,'label'
99     )
100     ,oils_i18n_gettext(
101          'webstaff.cat.label.left_label.height'
102         ,'Set the default height for the leftmost item print label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"'
103         ,'coust'
104         ,'description'
105     )
106     ,'string'
107 ), ( ----------------------------------------
108      'webstaff.cat.label.left_label.width'
109     ,'cat'
110     ,oils_i18n_gettext(
111          'webstaff.cat.label.left_label.width'
112         ,'Item Print Label - Width for Left Label'
113         ,'coust'
114         ,'label'
115     )
116     ,oils_i18n_gettext(
117          'webstaff.cat.label.left_label.width'
118         ,'Set the default width for the leftmost item print label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"'
119         ,'coust'
120         ,'description'
121     )
122     ,'string'
123 ), ( ----------------------------------------
124      'webstaff.cat.label.right_label.height'
125     ,'cat'
126     ,oils_i18n_gettext(
127          'webstaff.cat.label.right_label.height'
128         ,'Item Print Label - Height for Right Label'
129         ,'coust'
130         ,'label'
131     )
132     ,oils_i18n_gettext(
133          'webstaff.cat.label.right_label.height'
134         ,'Set the default height for the rightmost item print label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"'
135         ,'coust'
136         ,'description'
137     )
138     ,'string'
139 ), ( ----------------------------------------
140      'webstaff.cat.label.right_label.width'
141     ,'cat'
142     ,oils_i18n_gettext(
143          'webstaff.cat.label.right_label.width'
144         ,'Item Print Label - Width for Right Label'
145         ,'coust'
146         ,'label'
147     )
148     ,oils_i18n_gettext(
149          'webstaff.cat.label.right_label.width'
150         ,'Set the default width for the rightmost item print label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"'
151         ,'coust'
152         ,'description'
153     )
154     ,'string'
155 ), (
156      'webstaff.cat.label.inline_css'
157     ,'cat'
158     ,oils_i18n_gettext(
159          'webstaff.cat.label.inline_css'
160         ,'Item Print Label - Inline CSS'
161         ,'coust'
162         ,'label'
163     )
164     ,oils_i18n_gettext(
165          'webstaff.cat.label.inline_css'
166         ,'This setting allows you to inject arbitrary CSS into the item print label template.  For example, ".printlabel { text-transform: uppercase; }"'
167         ,'coust'
168         ,'description'
169     )
170     ,'string'
171 ), (
172      'webstaff.cat.label.call_number_wrap_filter_height'
173     ,'cat'
174     ,oils_i18n_gettext(
175          'webstaff.cat.label.call_number_wrap_filter_height'
176         ,'Item Print Label - Call Number Wrap Filter Height'
177         ,'coust'
178         ,'label'
179     )
180     ,oils_i18n_gettext(
181          'webstaff.cat.label.call_number_wrap_filter_height'
182         ,'This setting is used to set the default height (in number of lines) to use for call number wrapping in the left print label.'
183         ,'coust'
184         ,'description'
185     )
186     ,'integer'
187 ), (
188      'webstaff.cat.label.call_number_wrap_filter_width'
189     ,'cat'
190     ,oils_i18n_gettext(
191          'webstaff.cat.label.call_number_wrap_filter_width'
192         ,'Item Print Label - Call Number Wrap Filter Width'
193         ,'coust'
194         ,'label'
195     )
196     ,oils_i18n_gettext(
197          'webstaff.cat.label.call_number_wrap_filter_width'
198         ,'This setting is used to set the default width (in number of characters) to use for call number wrapping in the left print label.'
199         ,'coust'
200         ,'description'
201     )
202     ,'integer'
203
204
205 );
206
207 -- for testing, setting removal:
208 --DELETE FROM actor.org_unit_setting WHERE name IN (
209 --     'webstaff.cat.label.font.family'
210 --    ,'webstaff.cat.label.font.size'
211 --    ,'webstaff.cat.label.font.weight'
212 --    ,'webstaff.cat.label.left_label.height'
213 --    ,'webstaff.cat.label.left_label.width'
214 --    ,'webstaff.cat.label.left_label.left_margin'
215 --    ,'webstaff.cat.label.right_label.height'
216 --    ,'webstaff.cat.label.right_label.width'
217 --    ,'webstaff.cat.label.right_label.left_margin'
218 --    ,'webstaff.cat.label.inline_css'
219 --    ,'webstaff.cat.label.call_number_wrap_filter_height'
220 --    ,'webstaff.cat.label.call_number_wrap_filter_width'
221 --);
222 --DELETE FROM config.org_unit_setting_type_log WHERE field_name IN (
223 --     'webstaff.cat.label.font.family'
224 --    ,'webstaff.cat.label.font.size'
225 --    ,'webstaff.cat.label.font.weight'
226 --    ,'webstaff.cat.label.left_label.height'
227 --    ,'webstaff.cat.label.left_label.width'
228 --    ,'webstaff.cat.label.left_label.left_margin'
229 --    ,'webstaff.cat.label.right_label.height'
230 --    ,'webstaff.cat.label.right_label.width'
231 --    ,'webstaff.cat.label.right_label.left_margin'
232 --    ,'webstaff.cat.label.inline_css'
233 --    ,'webstaff.cat.label.call_number_wrap_filter_height'
234 --    ,'webstaff.cat.label.call_number_wrap_filter_width'
235 --);
236 --DELETE FROM config.org_unit_setting_type WHERE name IN (
237 --     'webstaff.cat.label.font.family'
238 --    ,'webstaff.cat.label.font.size'
239 --    ,'webstaff.cat.label.font.weight'
240 --    ,'webstaff.cat.label.left_label.height'
241 --    ,'webstaff.cat.label.left_label.width'
242 --    ,'webstaff.cat.label.left_label.left_margin'
243 --    ,'webstaff.cat.label.right_label.height'
244 --    ,'webstaff.cat.label.right_label.width'
245 --    ,'webstaff.cat.label.right_label.left_margin'
246 --    ,'webstaff.cat.label.inline_css'
247 --    ,'webstaff.cat.label.call_number_wrap_filter_height'
248 --    ,'webstaff.cat.label.call_number_wrap_filter_width'
249 --);
250
251
252 COMMIT;