]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0380.data.spine_label.sql
LP2042879 Shelving Location Groups Admin accessibility
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0380.data.spine_label.sql
1 BEGIN;
2
3 INSERT INTO config.upgrade_log (version) VALUES ('0380'); -- dbs
4
5 INSERT INTO config.org_unit_setting_type (name, label, description, datatype)
6     VALUES
7         ('cat.label.font.size',
8             oils_i18n_gettext('cat.label.font.size',
9                 'Cataloging: Spine and pocket label font size', 'coust', 'label'),
10             oils_i18n_gettext('cat.label.font.size',
11                 'Set the default font size for spine and pocket labels', 'coust', 'description'),
12             'integer'
13         )
14         ,('cat.label.font.family',
15             oils_i18n_gettext('cat.label.font.family',
16                 'Cataloging: Spine and pocket label font family', 'coust', 'label'),
17             oils_i18n_gettext('cat.label.font.family',
18                 'Set the preferred font family for spine and pocket labels. You can specify a list of 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".',
19                 'coust', 'description'),
20             'string'
21         )
22         ,('cat.spine.line.width',
23             oils_i18n_gettext('cat.spine.line.width',
24                 'Cataloging: Spine label line width', 'coust', 'label'),
25             oils_i18n_gettext('cat.spine.line.width',
26                 'Set the default line width for spine labels in number of characters. This specifies the boundary at which lines must be wrapped.',
27                 'coust', 'description'),
28             'integer'
29         )
30         ,('cat.spine.line.height',
31             oils_i18n_gettext('cat.spine.line.height',
32                 'Cataloging: Spine label maximum lines', 'coust', 'label'),
33             oils_i18n_gettext('cat.spine.line.height',
34                 'Set the default maximum number of lines for spine labels.',
35                 'coust', 'description'),
36             'integer'
37         )
38         ,('cat.spine.line.margin',
39             oils_i18n_gettext('cat.spine.line.margin',
40                 'Cataloging: Spine label left margin', 'coust', 'label'),
41             oils_i18n_gettext('cat.spine.line.margin',
42                 'Set the left margin for spine labels in number of characters.',
43                 'coust', 'description'),
44             'integer'
45         )
46 ;
47
48 INSERT INTO actor.org_unit_setting (org_unit, name, value) VALUES
49     (1, 'cat.spine.line.margin', 0)
50     ,(1, 'cat.spine.line.height', 9)
51     ,(1, 'cat.spine.line.width', 8)
52     ,(1, 'cat.label.font.family', '"monospace"')
53     ,(1, 'cat.label.font.size', 10)
54 ;
55
56 COMMIT;