]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/ZZZZ.data.url_verify.sql
Link checker: Some UI tweaks suggested by George Duimovich
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / ZZZZ.data.url_verify.sql
1
2 -- NOTE: beware the use of bare perm IDs in the update_perm's below and in 
3 -- the 950 seed data file.  Update before merge to match current perm IDs! XXX
4
5 BEGIN;
6
7 INSERT INTO permission.perm_list (id, code, description) 
8     VALUES ( 
9         543, 
10         'URL_VERIFY',
11         oils_i18n_gettext(
12             543, 
13             'Allows a user to process and verify ULSs', 
14             'ppl', 
15             'description'
16         )
17     );
18
19
20 INSERT INTO permission.perm_list (id, code, description) 
21     VALUES ( 
22         544, 
23         544,
24         oils_i18n_gettext(
25             544, 
26             'Allows a user to configure URL verification org unit settings',
27             'ppl', 
28             'description'
29         )
30     );
31
32
33 INSERT INTO permission.perm_list (id, code, description) 
34     VALUES ( 
35         545, 
36         'SAVED_FILTER_DIALOG_FILTERS',
37         oils_i18n_gettext(
38             545, 
39             'Allows users to save and load sets of filters for filter dialogs, available in certain staff interfaces',
40             'ppl', 
41             'description'
42         )
43     );
44
45
46 INSERT INTO config.settings_group (name, label)
47     VALUES (
48         'url_verify',
49         oils_i18n_gettext(
50             'url_verify',
51             'URL Verify',
52             'csg',
53             'label'
54         )
55     );
56
57 INSERT INTO config.org_unit_setting_type
58     (name, grp, label, description, datatype, update_perm)
59     VALUES (
60         'url_verify.url_verification_delay',
61         'url_verify',
62         oils_i18n_gettext(
63             'url_verify.url_verification_delay',
64             'Number of seconds to wait between URL test attempts.',
65             'coust',
66             'label'
67         ),
68         oils_i18n_gettext(
69             'url_verify.url_verification_delay',
70             'Throttling mechanism for batch URL verification runs.  Each running process will wait this number of seconds after a URL test before performing the next.',
71             'coust',
72             'description'
73         ),
74         'integer',
75         544
76     );
77
78 INSERT INTO config.org_unit_setting_type
79     (name, grp, label, description, datatype, update_perm)
80     VALUES (
81         'url_verify.url_verification_max_redirects',
82         'url_verify',
83         oils_i18n_gettext(
84             'url_verify.url_verification_max_redirects',
85             'Maximum redirect lookups',
86             'coust',
87             'label'
88         ),
89         oils_i18n_gettext(
90             'url_verify.url_verification_max_redirects',
91             'For URLs returning 3XX redirects, this is the maximum number of redirects we will follow before giving up.',
92             'coust',
93             'description'
94         ),
95         'integer',
96         544
97     );
98
99 INSERT INTO config.org_unit_setting_type
100     (name, grp, label, description, datatype, update_perm)
101     VALUES (
102         'url_verify.url_verification_max_wait',
103         'url_verify',
104         oils_i18n_gettext(
105             'url_verify.url_verification_max_wait',
106             'Maximum wait time (in seconds) for a URL to lookup',
107             'coust',
108             'label'
109         ),
110         oils_i18n_gettext(
111             'url_verify.url_verification_max_wait',
112             'If we exceed the wait time, the URL is marked as a "timeout" and the system moves on to the next URL',
113             'coust',
114             'description'
115         ),
116         'integer',
117         544
118     );
119
120
121 INSERT INTO config.org_unit_setting_type
122     (name, grp, label, description, datatype, update_perm)
123     VALUES (
124         'url_verify.verification_batch_size',
125         'url_verify',
126         oils_i18n_gettext(
127             'url_verify.verification_batch_size',
128             'Number of URLs to test in parallel',
129             'coust',
130             'label'
131         ),
132         oils_i18n_gettext(
133             'url_verify.verification_batch_size',
134             'URLs are tested in batches.  This number defines the size of each batch and it directly relates to the number of back-end processes performing URL verification.',
135             'coust',
136             'description'
137         ),
138         'integer',
139         544
140     );
141
142
143 INSERT INTO config.filter_dialog_interface (key, description) VALUES (
144     'url_verify',
145     oils_i18n_gettext(
146         'url_verify',
147         'All Link Checker filter dialogs',
148         'cfdi',
149         'description'
150     )
151 );
152
153
154 INSERT INTO config.usr_setting_type (name,grp,opac_visible,label,description,datatype) VALUES (
155     'ui.grid_columns.url_verify.select_urls',
156     'gui',
157     FALSE,
158     oils_i18n_gettext(
159         'ui.grid_columns.url_verify.select_urls',
160         'Link Checker''s URL Selection interface''s saved columns',
161         'cust',
162         'label'
163     ),
164     oils_i18n_gettext(
165         'ui.grid_columns.url_verify.select_urls',
166         'Link Checker''s URL Selection interface''s saved columns',
167         'cust',
168         'description'
169     ),
170     'string'
171 );
172
173 INSERT INTO config.usr_setting_type (name,grp,opac_visible,label,description,datatype) VALUES (
174     'ui.grid_columns.url_verify.review_attempt',
175     'gui',
176     FALSE,
177     oils_i18n_gettext(
178         'ui.grid_columns.url_verify.review_attempt',
179         'Link Checker''s Review Attempt interface''s saved columns',
180         'cust',
181         'label'
182     ),
183     oils_i18n_gettext(
184         'ui.grid_columns.url_verify.review_attempt',
185         'Link Checker''s Review Attempt interface''s saved columns',
186         'cust',
187         'description'
188     ),
189     'string'
190 );
191
192 COMMIT;
193