]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/950.data.seed-values.sql
Reorder admin user insert statements to satisfy foreign key dependencies
[Evergreen.git] / Open-ILS / src / sql / Pg / 950.data.seed-values.sql
1 --002.schema.config.sql:
2 INSERT INTO config.bib_source (quality, source, transcendant) VALUES 
3     (90, oils_i18n_gettext('oclc'), FALSE),
4     (10, oils_i18n_gettext('System Local'), FALSE),
5     (1, oils_i18n_gettext('Project Gutenberg'), TRUE);
6
7 INSERT INTO config.standing (value) VALUES (oils_i18n_gettext('Good'));
8 INSERT INTO config.standing (value) VALUES (oils_i18n_gettext('Barred'));
9
10 INSERT INTO config.xml_transform VALUES ( 'marcxml', 'http://www.loc.gov/MARC21/slim', 'marc', '---' );
11 INSERT INTO config.xml_transform VALUES ( 'mods', 'http://www.loc.gov/mods/', 'mods', '/home/miker/MARC21slim2MODS.xsl' );
12
13 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES 
14     ( 'series', 'seriestitle', $$//mods:mods/mods:relatedItem[@type="series"]/mods:titleInfo$$ ),
15     ( 'title', 'abbreviated', $$//mods:mods/mods:titleInfo[mods:title and (@type='abbreviated')]$$ ),
16     ( 'title', 'translated', $$//mods:mods/mods:titleInfo[mods:title and (@type='translated')]$$ ),
17     ( 'title', 'uniform', $$//mods:mods/mods:titleInfo[mods:title and (@type='uniform')]$$ ),
18     ( 'title', 'proper', $$//mods:mods/mods:titleInfo[mods:title and not (@type)]$$ ),
19     ( 'author', 'corporate', $$//mods:mods/mods:name[@type='corporate']/mods:namePart[../mods:role/mods:text[text()='creator']]$$ ),
20     ( 'author', 'personal', $$//mods:mods/mods:name[@type='personal']/mods:namePart[../mods:role/mods:text[text()='creator']]$$ ),
21     ( 'author', 'conference', $$//mods:mods/mods:name[@type='conference']/mods:namePart[../mods:role/mods:text[text()='creator']]$$ ),
22     ( 'author', 'other', $$//mods:mods/mods:name[@type='personal']/mods:namePart[not(../mods:role)]$$ ),
23     ( 'subject', 'geographic', $$//mods:mods/mods:subject/mods:geographic$$ ),
24     ( 'subject', 'name', $$//mods:mods/mods:subject/mods:name$$ ),
25     ( 'subject', 'temporal', $$//mods:mods/mods:subject/mods:temporal$$ ),
26     ( 'subject', 'topic', $$//mods:mods/mods:subject/mods:topic$$ ),
27 --  ( field_class, name, xpath ) VALUES ( 'subject', 'genre', $$//mods:mods/mods:genre$$ ),
28     ( 'keyword', 'keyword', $$//mods:mods/*[not(local-name()='originInfo')]$$ ); -- /* to fool vim */
29
30 INSERT INTO config.non_cataloged_type ( owning_lib, name ) VALUES ( 1, oils_i18n_gettext('Paperback Book') );
31
32 INSERT INTO config.identification_type ( name ) VALUES 
33     ( oils_i18n_gettext('Drivers License') ),
34     ( oils_i18n_gettext('SSN') ),
35     ( oils_i18n_gettext('Other') );
36
37 INSERT INTO config.rule_circ_duration VALUES 
38     (DEFAULT, oils_i18n_gettext('7_days_0_renew'), '7 days', '7 days', '7 days', 0),
39     (DEFAULT, oils_i18n_gettext('28_days_2_renew'), '28 days', '28 days', '28 days', 2),
40     (DEFAULT, oils_i18n_gettext('3_months_0_renew'), '3 months', '3 months', '3 months', 0),
41     (DEFAULT, oils_i18n_gettext('3_days_1_renew'), '3 days', '3 days', '3 days', 1),
42     (DEFAULT, oils_i18n_gettext('2_months_2_renew'), '2 months', '2 months', '2 months', 2),
43     (DEFAULT, oils_i18n_gettext('35_days_1_renew'), '35 days', '35 days', '35 days', 1),
44     (DEFAULT, oils_i18n_gettext('7_days_2_renew'), '7 days', '7 days', '7 days', 2),
45     (DEFAULT, oils_i18n_gettext('1_hour_2_renew'), '1 hour', '1 hour', '1 hour', 2),
46     (DEFAULT, oils_i18n_gettext('28_days_0_renew'), '28 days', '28 days', '28 days', 0),
47     (DEFAULT, oils_i18n_gettext('14_days_2_renew'), '14 days', '14 days', '14 days', 2),
48     (DEFAULT, oils_i18n_gettext('default'), '21 days', '14 days', '7 days', 2);
49
50 INSERT INTO config.rule_max_fine VALUES 
51     (DEFAULT, oils_i18n_gettext('default'), 5.00),
52     (DEFAULT, oils_i18n_gettext('overdue_min'), 5.00),
53     (DEFAULT, oils_i18n_gettext('overdue_mid'), 10.00),
54     (DEFAULT, oils_i18n_gettext('overdue_max'), 100.00),
55     (DEFAULT, oils_i18n_gettext('overdue_equip_min'), 25.00),
56     (DEFAULT, oils_i18n_gettext('overdue_equip_mid'), 25.00),
57     (DEFAULT, oils_i18n_gettext('overdue_equip_max'), 100.00);
58
59 INSERT INTO config.rule_recuring_fine VALUES 
60     (DEFAULT, oils_i18n_gettext('default'), 0.50, 0.10, 0.05, '1 day'),
61     (DEFAULT, oils_i18n_gettext('10_cent_per_day'), 0.50, 0.10, 0.10, '1 day'),
62     (DEFAULT, oils_i18n_gettext('50_cent_per_day'), 0.50, 0.50, 0.50, '1 day');
63
64 INSERT INTO config.rule_age_hold_protect VALUES (DEFAULT, oils_i18n_gettext('3month'), '3 months', 0);
65 INSERT INTO config.rule_age_hold_protect VALUES (DEFAULT, oils_i18n_gettext('6month'), '6 months', 2);
66
67 INSERT INTO config.copy_status (id,name,holdable)               VALUES (0,oils_i18n_gettext('Available'),'t');
68
69 INSERT INTO config.copy_status (id,name,holdable)               VALUES (1,oils_i18n_gettext('Checked out'),'t');
70
71 INSERT INTO config.copy_status (id,name)                        VALUES (2,oils_i18n_gettext('Bindery'));
72 INSERT INTO config.copy_status (id,name)                        VALUES (3,oils_i18n_gettext('Lost'));
73 INSERT INTO config.copy_status (id,name)                        VALUES (4,oils_i18n_gettext('Missing'));
74
75 INSERT INTO config.copy_status (id,name,holdable)               VALUES (5,oils_i18n_gettext('In process'),'t');
76 INSERT INTO config.copy_status (id,name,holdable)               VALUES (6,oils_i18n_gettext('In transit'),'t');
77 INSERT INTO config.copy_status (id,name,holdable)               VALUES (7,oils_i18n_gettext('Reshelving'),'t');
78 INSERT INTO config.copy_status (id,name,holdable)               VALUES (8,oils_i18n_gettext('On holds shelf'),'t');
79 INSERT INTO config.copy_status (id,name,holdable)               VALUES (9,oils_i18n_gettext('On order'),'t');
80
81 INSERT INTO config.copy_status (id,name)                        VALUES (10,oils_i18n_gettext('ILL'));
82 INSERT INTO config.copy_status (id,name)                        VALUES (11,oils_i18n_gettext('Cataloging'));
83 INSERT INTO config.copy_status (id,name)                        VALUES (12,oils_i18n_gettext('Reserves'));
84 INSERT INTO config.copy_status (id,name)                        VALUES (13,oils_i18n_gettext('Discard/Weed'));
85 INSERT INTO config.copy_status (id,name)                        VALUES (14,oils_i18n_gettext('Damaged'));
86
87 SELECT SETVAL('config.copy_status_id_seq'::TEXT, 100);
88
89 INSERT INTO config.net_access_level (name) VALUES 
90     (oils_i18n_gettext('Filtered')),
91     (oils_i18n_gettext('Unfiltered')),
92     (oils_i18n_gettext('No Access'));
93
94 INSERT INTO config.audience_map (code, value, description) VALUES 
95     ('', oils_i18n_gettext('Unknown or unspecified'), oils_i18n_gettext('The target audience for the item not known or not specified.')),
96     ('a', oils_i18n_gettext('Preschool'), oils_i18n_gettext('The item is intended for children, approximate ages 0-5 years.')),
97     ('b', oils_i18n_gettext('Primary'), oils_i18n_gettext('The item is intended for children, approximate ages 6-8 years.')),
98     ('c', oils_i18n_gettext('Pre-adolescent'), oils_i18n_gettext('The item is intended for young people, approximate ages 9-13 years.')),
99     ('d', oils_i18n_gettext('Adolescent'), oils_i18n_gettext('The item is intended for young people, approximate ages 14-17 years.')),
100     ('e', oils_i18n_gettext('Adult'), oils_i18n_gettext('The item is intended for adults.')),
101     ('f', oils_i18n_gettext('Specialized'), oils_i18n_gettext('The item is aimed at a particular audience and the nature of the presentation makes the item of little interest to another audience.')),
102     ('g', oils_i18n_gettext('General'), oils_i18n_gettext('The item is of general interest and not aimed at an audience of a particular intellectual level.')),
103     ('j', oils_i18n_gettext('Juvenile'), oils_i18n_gettext('The item is intended for children and young people, approximate ages 0-15 years.'));
104
105 INSERT INTO config.lit_form_map (code, value, description) VALUES 
106     ('0', oils_i18n_gettext('Not fiction (not further specified)'), oils_i18n_gettext('The item is not a work of fiction and no further identification of the literary form is desired')),
107     ('1', oils_i18n_gettext('Fiction (not further specified)'), oils_i18n_gettext('The item is a work of fiction and no further identification of the literary form is desired')),
108     ('c', oils_i18n_gettext('Comic strips'), NULL),
109     ('d', oils_i18n_gettext('Dramas'), NULL),
110     ('e', oils_i18n_gettext('Essays'), NULL),
111     ('f', oils_i18n_gettext('Novels'), NULL),
112     ('h', oils_i18n_gettext('Humor, satires, etc.'), oils_i18n_gettext('The item is a humorous work, satire or of similar literary form.')),
113     ('i', oils_i18n_gettext('Letters'), oils_i18n_gettext('The item is a single letter or collection of correspondence.')),
114     ('j', oils_i18n_gettext('Short stories'), oils_i18n_gettext('The item is a short story or collection of short stories.')),
115     ('m', oils_i18n_gettext('Mixed forms'), oils_i18n_gettext('The item is a variety of literary forms (e.g., poetry and short stories).')),
116     ('p', oils_i18n_gettext('Poetry'), oils_i18n_gettext('The item is a poem or collection of poems.')),
117     ('s', oils_i18n_gettext('Speeches'), oils_i18n_gettext('The item is a speech or collection of speeches.')),
118     ('u', oils_i18n_gettext('Unknown'), oils_i18n_gettext('The literary form of the item is unknown.'));
119
120 -- TO-DO: Auto-generate these values from CLDR
121 INSERT INTO config.language_map (code, value) VALUES 
122     ('aar', oils_i18n_gettext('Afar')),
123     ('abk', oils_i18n_gettext('Abkhaz')),
124     ('ace', oils_i18n_gettext('Achinese')),
125     ('ach', oils_i18n_gettext('Acoli')),
126     ('ada', oils_i18n_gettext('Adangme')),
127     ('ady', oils_i18n_gettext('Adygei')),
128     ('afa', oils_i18n_gettext('Afroasiatic (Other)')),
129     ('afh', oils_i18n_gettext('Afrihili (Artificial language)')),
130     ('afr', oils_i18n_gettext('Afrikaans')),
131     ('-ajm', oils_i18n_gettext('AljamĂ­a')),
132     ('aka', oils_i18n_gettext('Akan')),
133     ('akk', oils_i18n_gettext('Akkadian')),
134     ('alb', oils_i18n_gettext('Albanian')),
135     ('ale', oils_i18n_gettext('Aleut')),
136     ('alg', oils_i18n_gettext('Algonquian (Other)')),
137     ('amh', oils_i18n_gettext('Amharic')),
138     ('ang', oils_i18n_gettext('English, Old (ca. 450-1100)')),
139     ('apa', oils_i18n_gettext('Apache languages')),
140     ('ara', oils_i18n_gettext('Arabic')),
141     ('arc', oils_i18n_gettext('Aramaic')),
142     ('arg', oils_i18n_gettext('Aragonese Spanish')),
143     ('arm', oils_i18n_gettext('Armenian')),
144     ('arn', oils_i18n_gettext('Mapuche')),
145     ('arp', oils_i18n_gettext('Arapaho')),
146     ('art', oils_i18n_gettext('Artificial (Other)')),
147     ('arw', oils_i18n_gettext('Arawak')),
148     ('asm', oils_i18n_gettext('Assamese')),
149     ('ast', oils_i18n_gettext('Bable')),
150     ('ath', oils_i18n_gettext('Athapascan (Other)')),
151     ('aus', oils_i18n_gettext('Australian languages')),
152     ('ava', oils_i18n_gettext('Avaric')),
153     ('ave', oils_i18n_gettext('Avestan')),
154     ('awa', oils_i18n_gettext('Awadhi')),
155     ('aym', oils_i18n_gettext('Aymara')),
156     ('aze', oils_i18n_gettext('Azerbaijani')),
157     ('bad', oils_i18n_gettext('Banda')),
158     ('bai', oils_i18n_gettext('Bamileke languages')),
159     ('bak', oils_i18n_gettext('Bashkir')),
160     ('bal', oils_i18n_gettext('Baluchi')),
161     ('bam', oils_i18n_gettext('Bambara')),
162     ('ban', oils_i18n_gettext('Balinese')),
163     ('baq', oils_i18n_gettext('Basque')),
164     ('bas', oils_i18n_gettext('Basa')),
165     ('bat', oils_i18n_gettext('Baltic (Other)')),
166     ('bej', oils_i18n_gettext('Beja')),
167     ('bel', oils_i18n_gettext('Belarusian')),
168     ('bem', oils_i18n_gettext('Bemba')),
169     ('ben', oils_i18n_gettext('Bengali')),
170     ('ber', oils_i18n_gettext('Berber (Other)')),
171     ('bho', oils_i18n_gettext('Bhojpuri')),
172     ('bih', oils_i18n_gettext('Bihari')),
173     ('bik', oils_i18n_gettext('Bikol')),
174     ('bin', oils_i18n_gettext('Edo')),
175     ('bis', oils_i18n_gettext('Bislama')),
176     ('bla', oils_i18n_gettext('Siksika')),
177     ('bnt', oils_i18n_gettext('Bantu (Other)')),
178     ('bos', oils_i18n_gettext('Bosnian')),
179     ('bra', oils_i18n_gettext('Braj')),
180     ('bre', oils_i18n_gettext('Breton')),
181     ('btk', oils_i18n_gettext('Batak')),
182     ('bua', oils_i18n_gettext('Buriat')),
183     ('bug', oils_i18n_gettext('Bugis')),
184     ('bul', oils_i18n_gettext('Bulgarian')),
185     ('bur', oils_i18n_gettext('Burmese')),
186     ('cad', oils_i18n_gettext('Caddo')),
187     ('cai', oils_i18n_gettext('Central American Indian (Other)')),
188     ('-cam', oils_i18n_gettext('Khmer')),
189     ('car', oils_i18n_gettext('Carib')),
190     ('cat', oils_i18n_gettext('Catalan')),
191     ('cau', oils_i18n_gettext('Caucasian (Other)')),
192     ('ceb', oils_i18n_gettext('Cebuano')),
193     ('cel', oils_i18n_gettext('Celtic (Other)')),
194     ('cha', oils_i18n_gettext('Chamorro')),
195     ('chb', oils_i18n_gettext('Chibcha')),
196     ('che', oils_i18n_gettext('Chechen')),
197     ('chg', oils_i18n_gettext('Chagatai')),
198     ('chi', oils_i18n_gettext('Chinese')),
199     ('chk', oils_i18n_gettext('Truk')),
200     ('chm', oils_i18n_gettext('Mari')),
201     ('chn', oils_i18n_gettext('Chinook jargon')),
202     ('cho', oils_i18n_gettext('Choctaw')),
203     ('chp', oils_i18n_gettext('Chipewyan')),
204     ('chr', oils_i18n_gettext('Cherokee')),
205     ('chu', oils_i18n_gettext('Church Slavic')),
206     ('chv', oils_i18n_gettext('Chuvash')),
207     ('chy', oils_i18n_gettext('Cheyenne')),
208     ('cmc', oils_i18n_gettext('Chamic languages')),
209     ('cop', oils_i18n_gettext('Coptic')),
210     ('cor', oils_i18n_gettext('Cornish')),
211     ('cos', oils_i18n_gettext('Corsican')),
212     ('cpe', oils_i18n_gettext('Creoles and Pidgins, English-based (Other)')),
213     ('cpf', oils_i18n_gettext('Creoles and Pidgins, French-based (Other)')),
214     ('cpp', oils_i18n_gettext('Creoles and Pidgins, Portuguese-based (Other)')),
215     ('cre', oils_i18n_gettext('Cree')),
216     ('crh', oils_i18n_gettext('Crimean Tatar')),
217     ('crp', oils_i18n_gettext('Creoles and Pidgins (Other)')),
218     ('cus', oils_i18n_gettext('Cushitic (Other)')),
219     ('cze', oils_i18n_gettext('Czech')),
220     ('dak', oils_i18n_gettext('Dakota')),
221     ('dan', oils_i18n_gettext('Danish')),
222     ('dar', oils_i18n_gettext('Dargwa')),
223     ('day', oils_i18n_gettext('Dayak')),
224     ('del', oils_i18n_gettext('Delaware')),
225     ('den', oils_i18n_gettext('Slave')),
226     ('dgr', oils_i18n_gettext('Dogrib')),
227     ('din', oils_i18n_gettext('Dinka')),
228     ('div', oils_i18n_gettext('Divehi')),
229     ('doi', oils_i18n_gettext('Dogri')),
230     ('dra', oils_i18n_gettext('Dravidian (Other)')),
231     ('dua', oils_i18n_gettext('Duala')),
232     ('dum', oils_i18n_gettext('Dutch, Middle (ca. 1050-1350)')),
233     ('dut', oils_i18n_gettext('Dutch')),
234     ('dyu', oils_i18n_gettext('Dyula')),
235     ('dzo', oils_i18n_gettext('Dzongkha')),
236     ('efi', oils_i18n_gettext('Efik')),
237     ('egy', oils_i18n_gettext('Egyptian')),
238     ('eka', oils_i18n_gettext('Ekajuk')),
239     ('elx', oils_i18n_gettext('Elamite')),
240     ('eng', oils_i18n_gettext('English')),
241     ('enm', oils_i18n_gettext('English, Middle (1100-1500)')),
242     ('epo', oils_i18n_gettext('Esperanto')),
243     ('-esk', oils_i18n_gettext('Eskimo languages')),
244     ('-esp', oils_i18n_gettext('Esperanto')),
245     ('est', oils_i18n_gettext('Estonian')),
246     ('-eth', oils_i18n_gettext('Ethiopic')),
247     ('ewe', oils_i18n_gettext('Ewe')),
248     ('ewo', oils_i18n_gettext('Ewondo')),
249     ('fan', oils_i18n_gettext('Fang')),
250     ('fao', oils_i18n_gettext('Faroese')),
251     ('-far', oils_i18n_gettext('Faroese')),
252     ('fat', oils_i18n_gettext('Fanti')),
253     ('fij', oils_i18n_gettext('Fijian')),
254     ('fin', oils_i18n_gettext('Finnish')),
255     ('fiu', oils_i18n_gettext('Finno-Ugrian (Other)')),
256     ('fon', oils_i18n_gettext('Fon')),
257     ('fre', oils_i18n_gettext('French')),
258     ('-fri', oils_i18n_gettext('Frisian')),
259     ('frm', oils_i18n_gettext('French, Middle (ca. 1400-1600)')),
260     ('fro', oils_i18n_gettext('French, Old (ca. 842-1400)')),
261     ('fry', oils_i18n_gettext('Frisian')),
262     ('ful', oils_i18n_gettext('Fula')),
263     ('fur', oils_i18n_gettext('Friulian')),
264     ('gaa', oils_i18n_gettext('GĂŁ')),
265     ('-gae', oils_i18n_gettext('Scottish Gaelic')),
266     ('-gag', oils_i18n_gettext('Galician')),
267     ('-gal', oils_i18n_gettext('Oromo')),
268     ('gay', oils_i18n_gettext('Gayo')),
269     ('gba', oils_i18n_gettext('Gbaya')),
270     ('gem', oils_i18n_gettext('Germanic (Other)')),
271     ('geo', oils_i18n_gettext('Georgian')),
272     ('ger', oils_i18n_gettext('German')),
273     ('gez', oils_i18n_gettext('Ethiopic')),
274     ('gil', oils_i18n_gettext('Gilbertese')),
275     ('gla', oils_i18n_gettext('Scottish Gaelic')),
276     ('gle', oils_i18n_gettext('Irish')),
277     ('glg', oils_i18n_gettext('Galician')),
278     ('glv', oils_i18n_gettext('Manx')),
279     ('gmh', oils_i18n_gettext('German, Middle High (ca. 1050-1500)')),
280     ('goh', oils_i18n_gettext('German, Old High (ca. 750-1050)')),
281     ('gon', oils_i18n_gettext('Gondi')),
282     ('gor', oils_i18n_gettext('Gorontalo')),
283     ('got', oils_i18n_gettext('Gothic')),
284     ('grb', oils_i18n_gettext('Grebo')),
285     ('grc', oils_i18n_gettext('Greek, Ancient (to 1453)')),
286     ('gre', oils_i18n_gettext('Greek, Modern (1453- )')),
287     ('grn', oils_i18n_gettext('Guarani')),
288     ('-gua', oils_i18n_gettext('Guarani')),
289     ('guj', oils_i18n_gettext('Gujarati')),
290     ('gwi', oils_i18n_gettext('Gwich''in')),
291     ('hai', oils_i18n_gettext('Haida')),
292     ('hat', oils_i18n_gettext('Haitian French Creole')),
293     ('hau', oils_i18n_gettext('Hausa')),
294     ('haw', oils_i18n_gettext('Hawaiian')),
295     ('heb', oils_i18n_gettext('Hebrew')),
296     ('her', oils_i18n_gettext('Herero')),
297     ('hil', oils_i18n_gettext('Hiligaynon')),
298     ('him', oils_i18n_gettext('Himachali')),
299     ('hin', oils_i18n_gettext('Hindi')),
300     ('hit', oils_i18n_gettext('Hittite')),
301     ('hmn', oils_i18n_gettext('Hmong')),
302     ('hmo', oils_i18n_gettext('Hiri Motu')),
303     ('hun', oils_i18n_gettext('Hungarian')),
304     ('hup', oils_i18n_gettext('Hupa')),
305     ('iba', oils_i18n_gettext('Iban')),
306     ('ibo', oils_i18n_gettext('Igbo')),
307     ('ice', oils_i18n_gettext('Icelandic')),
308     ('ido', oils_i18n_gettext('Ido')),
309     ('iii', oils_i18n_gettext('Sichuan Yi')),
310     ('ijo', oils_i18n_gettext('Ijo')),
311     ('iku', oils_i18n_gettext('Inuktitut')),
312     ('ile', oils_i18n_gettext('Interlingue')),
313     ('ilo', oils_i18n_gettext('Iloko')),
314     ('ina', oils_i18n_gettext('Interlingua (International Auxiliary Language Association)')),
315     ('inc', oils_i18n_gettext('Indic (Other)')),
316     ('ind', oils_i18n_gettext('Indonesian')),
317     ('ine', oils_i18n_gettext('Indo-European (Other)')),
318     ('inh', oils_i18n_gettext('Ingush')),
319     ('-int', oils_i18n_gettext('Interlingua (International Auxiliary Language Association)')),
320     ('ipk', oils_i18n_gettext('Inupiaq')),
321     ('ira', oils_i18n_gettext('Iranian (Other)')),
322     ('-iri', oils_i18n_gettext('Irish')),
323     ('iro', oils_i18n_gettext('Iroquoian (Other)')),
324     ('ita', oils_i18n_gettext('Italian')),
325     ('jav', oils_i18n_gettext('Javanese')),
326     ('jpn', oils_i18n_gettext('Japanese')),
327     ('jpr', oils_i18n_gettext('Judeo-Persian')),
328     ('jrb', oils_i18n_gettext('Judeo-Arabic')),
329     ('kaa', oils_i18n_gettext('Kara-Kalpak')),
330     ('kab', oils_i18n_gettext('Kabyle')),
331     ('kac', oils_i18n_gettext('Kachin')),
332     ('kal', oils_i18n_gettext('Kalâtdlisut')),
333     ('kam', oils_i18n_gettext('Kamba')),
334     ('kan', oils_i18n_gettext('Kannada')),
335     ('kar', oils_i18n_gettext('Karen')),
336     ('kas', oils_i18n_gettext('Kashmiri')),
337     ('kau', oils_i18n_gettext('Kanuri')),
338     ('kaw', oils_i18n_gettext('Kawi')),
339     ('kaz', oils_i18n_gettext('Kazakh')),
340     ('kbd', oils_i18n_gettext('Kabardian')),
341     ('kha', oils_i18n_gettext('Khasi')),
342     ('khi', oils_i18n_gettext('Khoisan (Other)')),
343     ('khm', oils_i18n_gettext('Khmer')),
344     ('kho', oils_i18n_gettext('Khotanese')),
345     ('kik', oils_i18n_gettext('Kikuyu')),
346     ('kin', oils_i18n_gettext('Kinyarwanda')),
347     ('kir', oils_i18n_gettext('Kyrgyz')),
348     ('kmb', oils_i18n_gettext('Kimbundu')),
349     ('kok', oils_i18n_gettext('Konkani')),
350     ('kom', oils_i18n_gettext('Komi')),
351     ('kon', oils_i18n_gettext('Kongo')),
352     ('kor', oils_i18n_gettext('Korean')),
353     ('kos', oils_i18n_gettext('Kusaie')),
354     ('kpe', oils_i18n_gettext('Kpelle')),
355     ('kro', oils_i18n_gettext('Kru')),
356     ('kru', oils_i18n_gettext('Kurukh')),
357     ('kua', oils_i18n_gettext('Kuanyama')),
358     ('kum', oils_i18n_gettext('Kumyk')),
359     ('kur', oils_i18n_gettext('Kurdish')),
360     ('-kus', oils_i18n_gettext('Kusaie')),
361     ('kut', oils_i18n_gettext('Kutenai')),
362     ('lad', oils_i18n_gettext('Ladino')),
363     ('lah', oils_i18n_gettext('Lahnda')),
364     ('lam', oils_i18n_gettext('Lamba')),
365     ('-lan', oils_i18n_gettext('Occitan (post-1500)')),
366     ('lao', oils_i18n_gettext('Lao')),
367     ('-lap', oils_i18n_gettext('Sami')),
368     ('lat', oils_i18n_gettext('Latin')),
369     ('lav', oils_i18n_gettext('Latvian')),
370     ('lez', oils_i18n_gettext('Lezgian')),
371     ('lim', oils_i18n_gettext('Limburgish')),
372     ('lin', oils_i18n_gettext('Lingala')),
373     ('lit', oils_i18n_gettext('Lithuanian')),
374     ('lol', oils_i18n_gettext('Mongo-Nkundu')),
375     ('loz', oils_i18n_gettext('Lozi')),
376     ('ltz', oils_i18n_gettext('Letzeburgesch')),
377     ('lua', oils_i18n_gettext('Luba-Lulua')),
378     ('lub', oils_i18n_gettext('Luba-Katanga')),
379     ('lug', oils_i18n_gettext('Ganda')),
380     ('lui', oils_i18n_gettext('Luiseño')),
381     ('lun', oils_i18n_gettext('Lunda')),
382     ('luo', oils_i18n_gettext('Luo (Kenya and Tanzania)')),
383     ('lus', oils_i18n_gettext('Lushai')),
384     ('mac', oils_i18n_gettext('Macedonian')),
385     ('mad', oils_i18n_gettext('Madurese')),
386     ('mag', oils_i18n_gettext('Magahi')),
387     ('mah', oils_i18n_gettext('Marshallese')),
388     ('mai', oils_i18n_gettext('Maithili')),
389     ('mak', oils_i18n_gettext('Makasar')),
390     ('mal', oils_i18n_gettext('Malayalam')),
391     ('man', oils_i18n_gettext('Mandingo')),
392     ('mao', oils_i18n_gettext('Maori')),
393     ('map', oils_i18n_gettext('Austronesian (Other)')),
394     ('mar', oils_i18n_gettext('Marathi')),
395     ('mas', oils_i18n_gettext('Masai')),
396     ('-max', oils_i18n_gettext('Manx')),
397     ('may', oils_i18n_gettext('Malay')),
398     ('mdr', oils_i18n_gettext('Mandar')),
399     ('men', oils_i18n_gettext('Mende')),
400     ('mga', oils_i18n_gettext('Irish, Middle (ca. 1100-1550)')),
401     ('mic', oils_i18n_gettext('Micmac')),
402     ('min', oils_i18n_gettext('Minangkabau')),
403     ('mis', oils_i18n_gettext('Miscellaneous languages')),
404     ('mkh', oils_i18n_gettext('Mon-Khmer (Other)')),
405     ('-mla', oils_i18n_gettext('Malagasy')),
406     ('mlg', oils_i18n_gettext('Malagasy')),
407     ('mlt', oils_i18n_gettext('Maltese')),
408     ('mnc', oils_i18n_gettext('Manchu')),
409     ('mni', oils_i18n_gettext('Manipuri')),
410     ('mno', oils_i18n_gettext('Manobo languages')),
411     ('moh', oils_i18n_gettext('Mohawk')),
412     ('mol', oils_i18n_gettext('Moldavian')),
413     ('mon', oils_i18n_gettext('Mongolian')),
414     ('mos', oils_i18n_gettext('MoorĂ©')),
415     ('mul', oils_i18n_gettext('Multiple languages')),
416     ('mun', oils_i18n_gettext('Munda (Other)')),
417     ('mus', oils_i18n_gettext('Creek')),
418     ('mwr', oils_i18n_gettext('Marwari')),
419     ('myn', oils_i18n_gettext('Mayan languages')),
420     ('nah', oils_i18n_gettext('Nahuatl')),
421     ('nai', oils_i18n_gettext('North American Indian (Other)')),
422     ('nap', oils_i18n_gettext('Neapolitan Italian')),
423     ('nau', oils_i18n_gettext('Nauru')),
424     ('nav', oils_i18n_gettext('Navajo')),
425     ('nbl', oils_i18n_gettext('Ndebele (South Africa)')),
426     ('nde', oils_i18n_gettext('Ndebele (Zimbabwe)  ')),
427     ('ndo', oils_i18n_gettext('Ndonga')),
428     ('nds', oils_i18n_gettext('Low German')),
429     ('nep', oils_i18n_gettext('Nepali')),
430     ('new', oils_i18n_gettext('Newari')),
431     ('nia', oils_i18n_gettext('Nias')),
432     ('nic', oils_i18n_gettext('Niger-Kordofanian (Other)')),
433     ('niu', oils_i18n_gettext('Niuean')),
434     ('nno', oils_i18n_gettext('Norwegian (Nynorsk)')),
435     ('nob', oils_i18n_gettext('Norwegian (BokmĂĄl)')),
436     ('nog', oils_i18n_gettext('Nogai')),
437     ('non', oils_i18n_gettext('Old Norse')),
438     ('nor', oils_i18n_gettext('Norwegian')),
439     ('nso', oils_i18n_gettext('Northern Sotho')),
440     ('nub', oils_i18n_gettext('Nubian languages')),
441     ('nya', oils_i18n_gettext('Nyanja')),
442     ('nym', oils_i18n_gettext('Nyamwezi')),
443     ('nyn', oils_i18n_gettext('Nyankole')),
444     ('nyo', oils_i18n_gettext('Nyoro')),
445     ('nzi', oils_i18n_gettext('Nzima')),
446     ('oci', oils_i18n_gettext('Occitan (post-1500)')),
447     ('oji', oils_i18n_gettext('Ojibwa')),
448     ('ori', oils_i18n_gettext('Oriya')),
449     ('orm', oils_i18n_gettext('Oromo')),
450     ('osa', oils_i18n_gettext('Osage')),
451     ('oss', oils_i18n_gettext('Ossetic')),
452     ('ota', oils_i18n_gettext('Turkish, Ottoman')),
453     ('oto', oils_i18n_gettext('Otomian languages')),
454     ('paa', oils_i18n_gettext('Papuan (Other)')),
455     ('pag', oils_i18n_gettext('Pangasinan')),
456     ('pal', oils_i18n_gettext('Pahlavi')),
457     ('pam', oils_i18n_gettext('Pampanga')),
458     ('pan', oils_i18n_gettext('Panjabi')),
459     ('pap', oils_i18n_gettext('Papiamento')),
460     ('pau', oils_i18n_gettext('Palauan')),
461     ('peo', oils_i18n_gettext('Old Persian (ca. 600-400 B.C.)')),
462     ('per', oils_i18n_gettext('Persian')),
463     ('phi', oils_i18n_gettext('Philippine (Other)')),
464     ('phn', oils_i18n_gettext('Phoenician')),
465     ('pli', oils_i18n_gettext('Pali')),
466     ('pol', oils_i18n_gettext('Polish')),
467     ('pon', oils_i18n_gettext('Ponape')),
468     ('por', oils_i18n_gettext('Portuguese')),
469     ('pra', oils_i18n_gettext('Prakrit languages')),
470     ('pro', oils_i18n_gettext('Provençal (to 1500)')),
471     ('pus', oils_i18n_gettext('Pushto')),
472     ('que', oils_i18n_gettext('Quechua')),
473     ('raj', oils_i18n_gettext('Rajasthani')),
474     ('rap', oils_i18n_gettext('Rapanui')),
475     ('rar', oils_i18n_gettext('Rarotongan')),
476     ('roa', oils_i18n_gettext('Romance (Other)')),
477     ('roh', oils_i18n_gettext('Raeto-Romance')),
478     ('rom', oils_i18n_gettext('Romani')),
479     ('rum', oils_i18n_gettext('Romanian')),
480     ('run', oils_i18n_gettext('Rundi')),
481     ('rus', oils_i18n_gettext('Russian')),
482     ('sad', oils_i18n_gettext('Sandawe')),
483     ('sag', oils_i18n_gettext('Sango (Ubangi Creole)')),
484     ('sah', oils_i18n_gettext('Yakut')),
485     ('sai', oils_i18n_gettext('South American Indian (Other)')),
486     ('sal', oils_i18n_gettext('Salishan languages')),
487     ('sam', oils_i18n_gettext('Samaritan Aramaic')),
488     ('san', oils_i18n_gettext('Sanskrit')),
489     ('-sao', oils_i18n_gettext('Samoan')),
490     ('sas', oils_i18n_gettext('Sasak')),
491     ('sat', oils_i18n_gettext('Santali')),
492     ('scc', oils_i18n_gettext('Serbian')),
493     ('sco', oils_i18n_gettext('Scots')),
494     ('scr', oils_i18n_gettext('Croatian')),
495     ('sel', oils_i18n_gettext('Selkup')),
496     ('sem', oils_i18n_gettext('Semitic (Other)')),
497     ('sga', oils_i18n_gettext('Irish, Old (to 1100)')),
498     ('sgn', oils_i18n_gettext('Sign languages')),
499     ('shn', oils_i18n_gettext('Shan')),
500     ('-sho', oils_i18n_gettext('Shona')),
501     ('sid', oils_i18n_gettext('Sidamo')),
502     ('sin', oils_i18n_gettext('Sinhalese')),
503     ('sio', oils_i18n_gettext('Siouan (Other)')),
504     ('sit', oils_i18n_gettext('Sino-Tibetan (Other)')),
505     ('sla', oils_i18n_gettext('Slavic (Other)')),
506     ('slo', oils_i18n_gettext('Slovak')),
507     ('slv', oils_i18n_gettext('Slovenian')),
508     ('sma', oils_i18n_gettext('Southern Sami')),
509     ('sme', oils_i18n_gettext('Northern Sami')),
510     ('smi', oils_i18n_gettext('Sami')),
511     ('smj', oils_i18n_gettext('Lule Sami')),
512     ('smn', oils_i18n_gettext('Inari Sami')),
513     ('smo', oils_i18n_gettext('Samoan')),
514     ('sms', oils_i18n_gettext('Skolt Sami')),
515     ('sna', oils_i18n_gettext('Shona')),
516     ('snd', oils_i18n_gettext('Sindhi')),
517     ('-snh', oils_i18n_gettext('Sinhalese')),
518     ('snk', oils_i18n_gettext('Soninke')),
519     ('sog', oils_i18n_gettext('Sogdian')),
520     ('som', oils_i18n_gettext('Somali')),
521     ('son', oils_i18n_gettext('Songhai')),
522     ('sot', oils_i18n_gettext('Sotho')),
523     ('spa', oils_i18n_gettext('Spanish')),
524     ('srd', oils_i18n_gettext('Sardinian')),
525     ('srr', oils_i18n_gettext('Serer')),
526     ('ssa', oils_i18n_gettext('Nilo-Saharan (Other)')),
527     ('-sso', oils_i18n_gettext('Sotho')),
528     ('ssw', oils_i18n_gettext('Swazi')),
529     ('suk', oils_i18n_gettext('Sukuma')),
530     ('sun', oils_i18n_gettext('Sundanese')),
531     ('sus', oils_i18n_gettext('Susu')),
532     ('sux', oils_i18n_gettext('Sumerian')),
533     ('swa', oils_i18n_gettext('Swahili')),
534     ('swe', oils_i18n_gettext('Swedish')),
535     ('-swz', oils_i18n_gettext('Swazi')),
536     ('syr', oils_i18n_gettext('Syriac')),
537     ('-tag', oils_i18n_gettext('Tagalog')),
538     ('tah', oils_i18n_gettext('Tahitian')),
539     ('tai', oils_i18n_gettext('Tai (Other)')),
540     ('-taj', oils_i18n_gettext('Tajik')),
541     ('tam', oils_i18n_gettext('Tamil')),
542     ('-tar', oils_i18n_gettext('Tatar')),
543     ('tat', oils_i18n_gettext('Tatar')),
544     ('tel', oils_i18n_gettext('Telugu')),
545     ('tem', oils_i18n_gettext('Temne')),
546     ('ter', oils_i18n_gettext('Terena')),
547     ('tet', oils_i18n_gettext('Tetum')),
548     ('tgk', oils_i18n_gettext('Tajik')),
549     ('tgl', oils_i18n_gettext('Tagalog')),
550     ('tha', oils_i18n_gettext('Thai')),
551     ('tib', oils_i18n_gettext('Tibetan')),
552     ('tig', oils_i18n_gettext('TigrĂ©')),
553     ('tir', oils_i18n_gettext('Tigrinya')),
554     ('tiv', oils_i18n_gettext('Tiv')),
555     ('tkl', oils_i18n_gettext('Tokelauan')),
556     ('tli', oils_i18n_gettext('Tlingit')),
557     ('tmh', oils_i18n_gettext('Tamashek')),
558     ('tog', oils_i18n_gettext('Tonga (Nyasa)')),
559     ('ton', oils_i18n_gettext('Tongan')),
560     ('tpi', oils_i18n_gettext('Tok Pisin')),
561     ('-tru', oils_i18n_gettext('Truk')),
562     ('tsi', oils_i18n_gettext('Tsimshian')),
563     ('tsn', oils_i18n_gettext('Tswana')),
564     ('tso', oils_i18n_gettext('Tsonga')),
565     ('-tsw', oils_i18n_gettext('Tswana')),
566     ('tuk', oils_i18n_gettext('Turkmen')),
567     ('tum', oils_i18n_gettext('Tumbuka')),
568     ('tup', oils_i18n_gettext('Tupi languages')),
569     ('tur', oils_i18n_gettext('Turkish')),
570     ('tut', oils_i18n_gettext('Altaic (Other)')),
571     ('tvl', oils_i18n_gettext('Tuvaluan')),
572     ('twi', oils_i18n_gettext('Twi')),
573     ('tyv', oils_i18n_gettext('Tuvinian')),
574     ('udm', oils_i18n_gettext('Udmurt')),
575     ('uga', oils_i18n_gettext('Ugaritic')),
576     ('uig', oils_i18n_gettext('Uighur')),
577     ('ukr', oils_i18n_gettext('Ukrainian')),
578     ('umb', oils_i18n_gettext('Umbundu')),
579     ('und', oils_i18n_gettext('Undetermined')),
580     ('urd', oils_i18n_gettext('Urdu')),
581     ('uzb', oils_i18n_gettext('Uzbek')),
582     ('vai', oils_i18n_gettext('Vai')),
583     ('ven', oils_i18n_gettext('Venda')),
584     ('vie', oils_i18n_gettext('Vietnamese')),
585     ('vol', oils_i18n_gettext('VolapĂĽk')),
586     ('vot', oils_i18n_gettext('Votic')),
587     ('wak', oils_i18n_gettext('Wakashan languages')),
588     ('wal', oils_i18n_gettext('Walamo')),
589     ('war', oils_i18n_gettext('Waray')),
590     ('was', oils_i18n_gettext('Washo')),
591     ('wel', oils_i18n_gettext('Welsh')),
592     ('wen', oils_i18n_gettext('Sorbian languages')),
593     ('wln', oils_i18n_gettext('Walloon')),
594     ('wol', oils_i18n_gettext('Wolof')),
595     ('xal', oils_i18n_gettext('Kalmyk')),
596     ('xho', oils_i18n_gettext('Xhosa')),
597     ('yao', oils_i18n_gettext('Yao (Africa)')),
598     ('yap', oils_i18n_gettext('Yapese')),
599     ('yid', oils_i18n_gettext('Yiddish')),
600     ('yor', oils_i18n_gettext('Yoruba')),
601     ('ypk', oils_i18n_gettext('Yupik languages')),
602     ('zap', oils_i18n_gettext('Zapotec')),
603     ('zen', oils_i18n_gettext('Zenaga')),
604     ('zha', oils_i18n_gettext('Zhuang')),
605     ('znd', oils_i18n_gettext('Zande')),
606     ('zul', oils_i18n_gettext('Zulu')),
607     ('zun', oils_i18n_gettext('Zuni'));
608
609 INSERT INTO config.item_form_map (code, value) VALUES
610     ('a', oils_i18n_gettext('Microfilm')),
611     ('b', oils_i18n_gettext('Microfiche')),
612     ('c', oils_i18n_gettext('Microopaque')),
613     ('d', oils_i18n_gettext('Large print')),
614     ('f', oils_i18n_gettext('Braille')),
615     ('r', oils_i18n_gettext('Regular print reproduction')),
616     ('s', oils_i18n_gettext('Electronic'));
617
618 INSERT INTO config.item_type_map (code, value) VALUES 
619     ('a', oils_i18n_gettext('Language material')),
620     ('t', oils_i18n_gettext('Manuscript language material')),
621     ('g', oils_i18n_gettext('Projected medium')),
622     ('k', oils_i18n_gettext('Two-dimensional nonprojectable graphic')),
623     ('r', oils_i18n_gettext('Three-dimensional artifact or naturally occurring object')),
624     ('o', oils_i18n_gettext('Kit')),
625     ('p', oils_i18n_gettext('Mixed materials')),
626     ('e', oils_i18n_gettext('Cartographic material')),
627     ('f', oils_i18n_gettext('Manuscript cartographic material')),
628     ('c', oils_i18n_gettext('Notated music')),
629     ('d', oils_i18n_gettext('Manuscript notated music')),
630     ('i', oils_i18n_gettext('Nonmusical sound recording')),
631     ('j', oils_i18n_gettext('Musical sound recording')),
632     ('m', oils_i18n_gettext('Computer file'));
633
634 --005.schema.actors.sql:
635
636 -- The PINES levels
637 INSERT INTO actor.org_unit_type (name, opac_label, depth, parent, can_have_users, can_have_vols) VALUES 
638     ( oils_i18n_gettext('Consortium'),oils_i18n_gettext('Everywhere'), 0, NULL, FALSE, FALSE ),
639     ( oils_i18n_gettext('System'),oils_i18n_gettext('Local Library System'), 1, 1, FALSE, FALSE );
640 INSERT INTO actor.org_unit_type (name, opac_label, depth, parent) VALUES 
641     ( oils_i18n_gettext('Branch'),oils_i18n_gettext('This Branch'), 2, 2 ),
642     ( oils_i18n_gettext('Sub-lib'),oils_i18n_gettext('This Specialized Library'), 3, 3 ),
643     ( oils_i18n_gettext('Bookmobile'),oils_i18n_gettext('Your Bookmobile'), 3, 3 );
644
645 INSERT INTO actor.org_unit (parent_ou, ou_type, shortname, name) VALUES 
646     (NULL, 1, 'CONS', oils_i18n_gettext('Example Consortium')),
647     (1, 2, 'SYS1', oils_i18n_gettext('Example System 1')),
648     (1, 2, 'SYS2', oils_i18n_gettext('Example System 2')),
649     (2, 3, 'BR1', oils_i18n_gettext('Example Branch 1')),
650     (2, 3, 'BR2', oils_i18n_gettext('Example Branch 2')),
651     (3, 3, 'BR3', oils_i18n_gettext('Example Branch 3')),
652     (3, 3, 'BR4', oils_i18n_gettext('Example Branch 4')),
653     (4, 4, 'SL1', oils_i18n_gettext('Example Sub-lib 1')),
654     (6, 5, 'BM1', oils_i18n_gettext('Example Bookmobile 1'));
655
656 INSERT INTO actor.org_address VALUES (DEFAULT,DEFAULT,DEFAULT,1,oils_i18n_gettext('123 Main St.'),NULL,oils_i18n_gettext('Anywhere'),NULL,oils_i18n_gettext('GA'),oils_i18n_gettext('US'),oils_i18n_gettext('30303'));
657
658 UPDATE actor.org_unit SET holds_address = 1, ill_address = 1, billing_address = 1, mailing_address = 1;
659
660 --006.data.permissions.sql:
661 INSERT INTO permission.perm_list VALUES 
662     (-1, 'EVERYTHING', NULL),
663     (2, 'OPAC_LOGIN', NULL),
664     (4, 'STAFF_LOGIN', NULL),
665     (5, 'MR_HOLDS', NULL),
666     (6, 'TITLE_HOLDS', NULL),
667     (7, 'VOLUME_HOLDS', NULL),
668     (8, 'COPY_HOLDS', oils_i18n_gettext('User is allowed to place a hold on a specific copy')),
669     (9, 'REQUEST_HOLDS', NULL),
670     (10, 'REQUEST_HOLDS_OVERRIDE', NULL),
671     (11, 'VIEW_HOLD', oils_i18n_gettext('Allows a user to view another user''s holds')),
672     (13, 'DELETE_HOLDS', NULL),
673     (14, 'UPDATE_HOLD', oils_i18n_gettext('Allows a user to update another user''s hold')),
674     (15, 'RENEW_CIRC', NULL),
675     (16, 'VIEW_USER_FINES_SUMMARY', NULL),
676     (17, 'VIEW_USER_TRANSACTIONS', NULL),
677     (18, 'UPDATE_MARC', NULL),
678     (19, 'CREATE_MARC', oils_i18n_gettext('User is allowed to create new MARC records')),
679     (20, 'IMPORT_MARC', NULL),
680     (21, 'CREATE_VOLUME', NULL),
681     (22, 'UPDATE_VOLUME', NULL),
682     (23, 'DELETE_VOLUME', NULL),
683     (25, 'UPDATE_COPY', NULL),
684     (26, 'DELETE_COPY', NULL),
685     (27, 'RENEW_HOLD_OVERRIDE', NULL),
686     (28, 'CREATE_USER', NULL),
687     (29, 'UPDATE_USER', NULL),
688     (30, 'DELETE_USER', NULL),
689     (31, 'VIEW_USER', NULL),
690     (32, 'COPY_CHECKIN', NULL),
691     (33, 'CREATE_TRANSIT', NULL),
692     (34, 'VIEW_PERMISSION', NULL),
693     (35, 'CHECKIN_BYPASS_HOLD_FULFILL', NULL),
694     (36, 'CREATE_PAYMENT', NULL),
695     (37, 'SET_CIRC_LOST', NULL),
696     (38, 'SET_CIRC_MISSING', NULL),
697     (39, 'SET_CIRC_CLAIMS_RETURNED', NULL),
698     (41, 'CREATE_TRANSACTION', oils_i18n_gettext('User may create new billable transactions')),
699     (43, 'CREATE_BILL', oils_i18n_gettext('Allows a user to create a new bill on a transaction')),
700     (44, 'VIEW_CONTAINER', oils_i18n_gettext('Allows a user to view another user''s containers (buckets)')),
701     (45, 'CREATE_CONTAINER', oils_i18n_gettext('Allows a user to create a new container for another user')),
702     (24, 'CREATE_COPY', oils_i18n_gettext('User is allowed to create a new copy object')),
703     (47, 'UPDATE_ORG_UNIT', oils_i18n_gettext('Allows a user to change org unit settings')),
704     (48, 'VIEW_CIRCULATIONS', oils_i18n_gettext('Allows a user to see what another use has checked out')),
705     (42, 'VIEW_TRANSACTION', oils_i18n_gettext('User may view another user''s transactions')),
706     (49, 'DELETE_CONTAINER', oils_i18n_gettext('Allows a user to delete another user container')),
707     (50, 'CREATE_CONTAINER_ITEM', oils_i18n_gettext('Create a container item for another user')),
708     (51, 'CREATE_USER_GROUP_LINK', oils_i18n_gettext('User can add other users to permission groups')),
709     (52, 'REMOVE_USER_GROUP_LINK', oils_i18n_gettext('User can remove other users from permission groups')),
710     (53, 'VIEW_PERM_GROUPS', oils_i18n_gettext('Allow user to view others'' permission groups')),
711     (54, 'VIEW_PERMIT_CHECKOUT', oils_i18n_gettext('Allows a user to determine of another user can checkout an item')),
712     (55, 'UPDATE_BATCH_COPY', oils_i18n_gettext('Allows a user to edit copies in batch')),
713     (56, 'CREATE_PATRON_STAT_CAT', oils_i18n_gettext('User may create a new patron statistical category')),
714     (57, 'CREATE_COPY_STAT_CAT', oils_i18n_gettext('User may create a copy stat cat')),
715     (58, 'CREATE_PATRON_STAT_CAT_ENTRY', oils_i18n_gettext('User may create a new patron stat cat entry')),
716     (59, 'CREATE_COPY_STAT_CAT_ENTRY', oils_i18n_gettext('User may create a new copy stat cat entry')),
717     (60, 'UPDATE_PATRON_STAT_CAT', oils_i18n_gettext('User may update a patron stat cat')),
718     (61, 'UPDATE_COPY_STAT_CAT', oils_i18n_gettext('User may update a copy stat cat')),
719     (62, 'UPDATE_PATRON_STAT_CAT_ENTRY', oils_i18n_gettext('User may update a patron stat cat entry')),
720     (63, 'UPDATE_COPY_STAT_CAT_ENTRY', oils_i18n_gettext('User may update a copy stat cat entry')),
721     (65, 'CREATE_COPY_STAT_CAT_ENTRY_MAP', oils_i18n_gettext('User may link a copy to a stat cat entry')),
722     (64, 'CREATE_PATRON_STAT_CAT_ENTRY_MAP', oils_i18n_gettext('User may link another user to a stat cat entry')),
723     (66, 'DELETE_PATRON_STAT_CAT', oils_i18n_gettext('User may delete a patron stat cat')),
724     (67, 'DELETE_COPY_STAT_CAT', oils_i18n_gettext('User may delete a copy stat cat')),
725     (68, 'DELETE_PATRON_STAT_CAT_ENTRY', oils_i18n_gettext('User may delete a patron stat cat entry')),
726     (69, 'DELETE_COPY_STAT_CAT_ENTRY', oils_i18n_gettext('User may delete a copy stat cat entry')),
727     (70, 'DELETE_PATRON_STAT_CAT_ENTRY_MAP', oils_i18n_gettext('User may delete a patron stat cat entry map')),
728     (71, 'DELETE_COPY_STAT_CAT_ENTRY_MAP', oils_i18n_gettext('User may delete a copy stat cat entry map')),
729     (72, 'CREATE_NON_CAT_TYPE', oils_i18n_gettext('Allows a user to create a new non-cataloged item type')),
730     (73, 'UPDATE_NON_CAT_TYPE', oils_i18n_gettext('Allows a user to update a non cataloged type')),
731     (74, 'CREATE_IN_HOUSE_USE', oils_i18n_gettext('Allows a user to create a new in-house-use ')),
732     (75, 'COPY_CHECKOUT', oils_i18n_gettext('Allows a user to check out a copy')),
733     (76, 'CREATE_COPY_LOCATION', oils_i18n_gettext('Allows a user to create a new copy location')),
734     (77, 'UPDATE_COPY_LOCATION', oils_i18n_gettext('Allows a user to update a copy location')),
735     (78, 'DELETE_COPY_LOCATION', oils_i18n_gettext('Allows a user to delete a copy location')),
736     (79, 'CREATE_COPY_TRANSIT', oils_i18n_gettext('Allows a user to create a transit_copy object for transiting a copy')),
737     (80, 'COPY_TRANSIT_RECEIVE', oils_i18n_gettext('Allows a user to close out a transit on a copy')),
738     (81, 'VIEW_HOLD_PERMIT', oils_i18n_gettext('Allows a user to see if another user has permission to place a hold on a given copy')),
739     (82, 'VIEW_COPY_CHECKOUT_HISTORY', oils_i18n_gettext('Allows a user to view which users have checked out a given copy')),
740     (83, 'REMOTE_Z3950_QUERY', oils_i18n_gettext('Allows a user to perform z3950 queries against remote servers')),
741     (84, 'REGISTER_WORKSTATION', oils_i18n_gettext('Allows a user to register a new workstation')),
742     (85, 'VIEW_COPY_NOTES', oils_i18n_gettext('Allows a user to view all notes attached to a copy')),
743     (86, 'VIEW_VOLUME_NOTES', oils_i18n_gettext('Allows a user to view all notes attached to a volume')),
744     (87, 'VIEW_TITLE_NOTES', oils_i18n_gettext('Allows a user to view all notes attached to a title')),
745     (89, 'CREATE_VOLUME_NOTE', oils_i18n_gettext('Allows a user to create a new volume note')),
746     (88, 'CREATE_COPY_NOTE', oils_i18n_gettext('Allows a user to create a new copy note')),
747     (90, 'CREATE_TITLE_NOTE', oils_i18n_gettext('Allows a user to create a new title note')),
748     (91, 'DELETE_COPY_NOTE', oils_i18n_gettext('Allows a user to delete someone elses copy notes')),
749     (92, 'DELETE_VOLUME_NOTE', oils_i18n_gettext('Allows a user to delete someone elses volume note')),
750     (93, 'DELETE_TITLE_NOTE', oils_i18n_gettext('Allows a user to delete someone elses title note')),
751     (94, 'UPDATE_CONTAINER', oils_i18n_gettext('Allows a user to update another users container')),
752     (95, 'CREATE_MY_CONTAINER', oils_i18n_gettext('Allows a user to create a container for themselves')),
753     (96, 'VIEW_HOLD_NOTIFICATION', oils_i18n_gettext('Allows a user to view notifications attached to a hold')),
754     (97, 'CREATE_HOLD_NOTIFICATION', oils_i18n_gettext('Allows a user to create new hold notifications')),
755     (98, 'UPDATE_ORG_SETTING', oils_i18n_gettext('Allows a user to update an org unit setting')),
756     (99, 'OFFLINE_UPLOAD', oils_i18n_gettext('Allows a user to upload an offline script')),
757     (100, 'OFFLINE_VIEW', oils_i18n_gettext('Allows a user to view uploaded offline script information')),
758     (101, 'OFFLINE_EXECUTE', oils_i18n_gettext('Allows a user to execute an offline script batch')),
759     (102, 'CIRC_OVERRIDE_DUE_DATE', oils_i18n_gettext('Allows a user to change set the due date on an item to any date')),
760     (103, 'CIRC_PERMIT_OVERRIDE', oils_i18n_gettext('Allows a user to bypass the circ permit call for checkout')),
761     (104, 'COPY_IS_REFERENCE.override', oils_i18n_gettext('Allows a user to override the copy_is_reference event')),
762     (105, 'VOID_BILLING', oils_i18n_gettext('Allows a user to void a bill')),
763     (106, 'CIRC_CLAIMS_RETURNED.override', oils_i18n_gettext('Allows a person to check in/out an item that is claims returned')),
764     (107, 'COPY_BAD_STATUS.override', oils_i18n_gettext('Allows a user to check out an item in a non-circulatable status')),
765     (108, 'COPY_ALERT_MESSAGE.override', oils_i18n_gettext('Allows a user to check in/out an item that has an alert message')),
766     (109, 'COPY_STATUS_LOST.override', oils_i18n_gettext('Allows a user to remove the lost status from a copy')),
767     (110, 'COPY_STATUS_MISSING.override', oils_i18n_gettext('Allows a user to change the missing status on a copy')),
768     (111, 'ABORT_TRANSIT', oils_i18n_gettext('Allows a user to abort a copy transit if the user is at the transit destination or source')),
769     (112, 'ABORT_REMOTE_TRANIST', oils_i18n_gettext('Allows a user to abort a copy transit if the user is not at the transit source or dest')),
770     (113, 'VIEW_ZIP_DATA', oils_i18n_gettext('Allowsa user to query the zip code data method')),
771     (114, 'CANCEL_HOLDS', oils_i18n_gettext('')),
772     (115, 'CREATE_DUPLICATE_HOLDS', oils_i18n_gettext('Allows a user to create duplicate holds (e.g. two holds on the same title)')),
773     (117, 'actor.org_unit.closed_date.update', oils_i18n_gettext('Allows a user to update a closed date interval for a given location')),
774     (116, 'actor.org_unit.closed_date.delete', oils_i18n_gettext('Allows a user to remove a closed date interval for a given location')),
775     (118, 'actor.org_unit.closed_date.create', oils_i18n_gettext('Allows a user to create a new closed date for a location')),
776     (119, 'DELETE_NON_CAT_TYPE', oils_i18n_gettext('Allows a user to delete a non cataloged type')),
777     (120, 'money.collections_tracker.create', oils_i18n_gettext('Allows a user to put someone into collections')),
778     (121, 'money.collections_tracker.delete', oils_i18n_gettext('Allows a user to remove someone from collections')),
779     (122, 'BAR_PATRON', oils_i18n_gettext('Allows a user to bar a patron')),
780     (123, 'UNBAR_PATRON', oils_i18n_gettext('Allows a user to un-bar a patron')),
781     (124, 'DELETE_WORKSTATION', oils_i18n_gettext('Allows a user to remove an existing workstation so a new one can replace it')),
782     (125, 'group_application.user', oils_i18n_gettext('Allows a user to add/remove users to/from the "User" group')),
783     (126, 'group_application.user.patron', oils_i18n_gettext('Allows a user to add/remove users to/from the "Patron" group')),
784     (127, 'group_application.user.staff', oils_i18n_gettext('Allows a user to add/remove users to/from the "Staff" group')),
785     (128, 'group_application.user.staff.circ', oils_i18n_gettext('Allows a user to add/remove users to/from the "Circulator" group')),
786     (129, 'group_application.user.staff.cat', oils_i18n_gettext('Allows a user to add/remove users to/from the "Cataloger" group')),
787     (130, 'group_application.user.staff.admin.global_admin', oils_i18n_gettext('Allows a user to add/remove users to/from the "GlobalAdmin" group')),
788     (131, 'group_application.user.staff.admin.local_admin', oils_i18n_gettext('Allows a user to add/remove users to/from the "LocalAdmin" group')),
789     (132, 'group_application.user.staff.admin.lib_manager', oils_i18n_gettext('Allows a user to add/remove users to/from the "LibraryManager" group')),
790     (133, 'group_application.user.staff.cat.cat1', oils_i18n_gettext('Allows a user to add/remove users to/from the "Cat1" group')),
791     (134, 'group_application.user.staff.supercat', oils_i18n_gettext('Allows a user to add/remove users to/from the "Supercat" group')),
792     (135, 'group_application.user.sip_client', oils_i18n_gettext('Allows a user to add/remove users to/from the "SIP-Client" group')),
793     (136, 'group_application.user.vendor', oils_i18n_gettext('Allows a user to add/remove users to/from the "Vendor" group')),
794     (137, 'ITEM_AGE_PROTECTED.override', oils_i18n_gettext('Allows a user to place a hold on an age-protected item')),
795     (138, 'MAX_RENEWALS_REACHED.override', oils_i18n_gettext('Allows a user to renew an item past the maximun renewal count')),
796     (139, 'PATRON_EXCEEDS_CHECKOUT_COUNT.override', oils_i18n_gettext('Allow staff to override checkout count failure')),
797     (140, 'PATRON_EXCEEDS_OVERDUE_COUNT.override', oils_i18n_gettext('Allow staff to override overdue count failure')),
798     (141, 'PATRON_EXCEEDS_FINES.override', oils_i18n_gettext('Allow staff to override fine amount checkout failure')),
799     (142, 'CIRC_EXCEEDS_COPY_RANGE.override', oils_i18n_gettext('')),
800     (143, 'ITEM_ON_HOLDS_SHELF.override', oils_i18n_gettext('')),
801     (144, 'COPY_NOT_AVAILABLE.override', oils_i18n_gettext('Allow staff to force checkout of Missing/Lost type items')),
802     (146, 'HOLD_EXISTS.override', oils_i18n_gettext('allows users to place multiple holds on a single title')),
803     (147, 'RUN_REPORTS', oils_i18n_gettext('Allows a users to run reports')),
804     (148, 'SHARE_REPORT_FOLDER', oils_i18n_gettext('Allows a user to share report his own folders')),
805     (149, 'VIEW_REPORT_OUTPUT', oils_i18n_gettext('Allow user to view report output')),
806     (150, 'COPY_CIRC_NOT_ALLOWED.override', oils_i18n_gettext('Allows a user to checkout an item that is marked as non-circ')),
807     (151, 'DELETE_CONTAINER_ITEM', oils_i18n_gettext('Allows a user to delete an item out of another user''s container')),
808     (152, 'ASSIGN_WORK_ORG_UNIT', oils_i18n_gettext('Allow a staff member to define where another staff member has their permissions'));
809
810 INSERT INTO permission.grp_tree (id, name, parent, description, perm_interval, usergroup, application_perm) VALUES
811         (1, 'Users', NULL, NULL, '3 years', FALSE, 'group_application.user'),
812         (2, 'Patrons', 1, NULL, '3 years', TRUE, 'group_application.user.patron'),
813         (3, 'Staff', 1, NULL, '3 years', FALSE, 'group_application.user.staff'),
814         (4, 'Catalogers', 3, NULL, '3 years', TRUE, 'group_application.user.staff.cat'),
815         (5, 'Circulators', 3, NULL, '3 years', TRUE, 'group_application.user.staff.circ'),
816         (10, 'Local System Administrator', 3, 'System maintenance, configuration, etc.', '3 years', TRUE, 'group_application.user.staff.admin.local_admin');
817
818
819 -- XXX Incomplete base permission setup.  A patch would be appreciated.
820 INSERT INTO permission.grp_perm_map VALUES 
821     (57, 2, 15, 0, false),
822     (109, 2, 95, 0, false),
823     (1, 1, 2, 0, false),
824     (12, 1, 5, 0, false),
825     (13, 1, 6, 0, false),
826     (51, 1, 32, 0, false),
827     (111, 1, 95, 0, false),
828     (11, 3, 4, 0, false),
829     (14, 3, 7, 2, false),
830     (16, 3, 9, 0, false),
831     (19, 3, 15, 0, false),
832     (20, 3, 16, 0, false),
833     (21, 3, 17, 0, false),
834     (116, 3, 18, 0, false),
835     (117, 3, 20, 0, false),
836     (118, 3, 21, 2, false),
837     (119, 3, 22, 2, false),
838     (120, 3, 23, 2, false),
839     (121, 3, 25, 2, false),
840     (26, 3, 27, 0, false),
841     (27, 3, 28, 0, false),
842     (28, 3, 29, 0, false),
843     (29, 3, 30, 0, false),
844     (44, 3, 31, 0, false),
845     (31, 3, 33, 0, false),
846     (32, 3, 34, 0, false),
847     (33, 3, 35, 0, false),
848     (41, 3, 36, 0, false),
849     (45, 3, 37, 0, false),
850     (46, 3, 38, 0, false),
851     (47, 3, 39, 0, false),
852     (122, 3, 41, 0, false),
853     (123, 3, 43, 0, false),
854     (60, 3, 44, 0, false),
855     (110, 3, 45, 0, false),
856     (124, 3, 8, 2, false),
857     (125, 3, 24, 2, false),
858     (126, 3, 19, 0, false),
859     (61, 3, 47, 2, false),
860     (95, 3, 48, 0, false),
861     (17, 3, 11, 0, false),
862     (62, 3, 42, 0, false),
863     (63, 3, 49, 0, false),
864     (64, 3, 50, 0, false),
865     (127, 3, 53, 0, false),
866     (65, 3, 54, 0, false),
867     (128, 3, 55, 2, false),
868     (67, 3, 56, 2, false),
869     (68, 3, 57, 2, false),
870     (69, 3, 58, 2, false),
871     (70, 3, 59, 2, false),
872     (71, 3, 60, 2, false),
873     (72, 3, 61, 2, false),
874     (73, 3, 62, 2, false),
875     (74, 3, 63, 2, false),
876     (81, 3, 72, 2, false),
877     (82, 3, 73, 2, false),
878     (83, 3, 74, 2, false),
879     (84, 3, 75, 0, false),
880     (85, 3, 76, 2, false),
881     (86, 3, 77, 2, false),
882     (89, 3, 79, 0, false),
883     (90, 3, 80, 0, false),
884     (91, 3, 81, 0, false),
885     (92, 3, 82, 0, false),
886     (98, 3, 83, 0, false),
887     (115, 3, 84, 0, false),
888     (100, 3, 85, 0, false),
889     (101, 3, 86, 0, false),
890     (102, 3, 87, 0, false),
891     (103, 3, 89, 2, false),
892     (104, 3, 88, 2, false),
893     (108, 3, 94, 0, false),
894     (112, 3, 96, 0, false),
895     (113, 3, 97, 0, false),
896     (130, 3, 99, 1, false),
897     (131, 3, 100, 1, false),
898     (22, 4, 18, 0, false),
899     (24, 4, 20, 0, false),
900     (38, 4, 21, 2, false),
901     (34, 4, 22, 2, false),
902     (39, 4, 23, 2, false),
903     (35, 4, 25, 2, false),
904     (129, 4, 26, 2, false),
905     (15, 4, 8, 2, false),
906     (40, 4, 24, 2, false),
907     (23, 4, 19, 0, false),
908     (66, 4, 55, 2, false),
909     (134, 10, 51, 1, false),
910     (75, 10, 66, 2, false),
911     (76, 10, 67, 2, false),
912     (77, 10, 68, 2, false),
913     (78, 10, 69, 2, false),
914     (79, 10, 70, 2, false),
915     (80, 10, 71, 2, false),
916     (87, 10, 78, 2, false),
917     (105, 10, 91, 1, false),
918     (106, 10, 92, 1, false),
919     (107, 10, 93, 0, false),
920     (114, 10, 98, 1, false),
921     (132, 10, 101, 1, true),
922     (136, 10, 102, 1, false),
923     (137, 10, 103, 1, false),
924     (97, 5, 41, 0, false),
925     (96, 5, 43, 0, false),
926     (93, 5, 48, 0, false),
927     (94, 5, 53, 0, false),
928     (133, 5, 102, 0, false),
929     (138, 5, 104, 1, false);
930
931 -- Admin user account
932 INSERT INTO actor.usr ( profile, card, usrname, passwd, first_given_name, family_name, dob, master_account, super_user, ident_type, ident_value, home_ou ) VALUES ( 1, 1, 'admin', 'open-ils', oils_i18n_gettext('Administrator'), oils_i18n_gettext('System Account'), '1979-01-22', TRUE, TRUE, 1, 'identification', 1 );
933
934 -- Admin user barcode
935 INSERT INTO actor.card (usr, barcode) VALUES (1,'101010101010101');
936
937 -- Admin user permissions
938 INSERT INTO permission.usr_perm_map (usr,perm,depth) VALUES (1,-1,0);
939
940 --010.schema.biblio.sql:
941 INSERT INTO biblio.record_entry VALUES (-1,1,1,1,-1,NOW(),NOW(),FALSE,FALSE,'','AUTOGEN','-1','','FOO');
942
943 --040.schema.asset.sql:
944 INSERT INTO asset.copy_location (name,owning_lib) VALUES (oils_i18n_gettext('Stacks'),1);
945 INSERT INTO asset.call_number VALUES (-1,1,NOW(),1,NOW(),-1,1,'UNCATALOGED');