1 --002.schema.config.sql:
2 INSERT INTO config.bib_source (id, quality, source, transcendant) VALUES
3 (1, 90, oils_i18n_gettext(1, 'oclc', 'cbs', 'source'), FALSE);
4 INSERT INTO config.bib_source (id, quality, source, transcendant) VALUES
5 (2, 10, oils_i18n_gettext(2, 'System Local', 'cbs', 'source'), FALSE);
6 INSERT INTO config.bib_source (id, quality, source, transcendant) VALUES
7 (3, 1, oils_i18n_gettext(3, 'Project Gutenberg', 'cbs', 'source'), TRUE);
9 INSERT INTO config.standing (id, value) VALUES (1, oils_i18n_gettext(1, 'Good', 'cst', 'value'));
10 INSERT INTO config.standing (id, value) VALUES (2, oils_i18n_gettext(2, 'Barred', 'cst', 'value'));
12 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
13 ( 'series', 'seriestitle', 'mods32', $$//mods32:mods/mods32:relatedItem[@type="series"]/mods32:titleInfo$$ );
14 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
15 ( 'title', 'abbreviated', 'mods32', $$//mods32:mods/mods32:titleInfo[mods32:title and (@type='abbreviated')]$$ );
16 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
17 ( 'title', 'translated', 'mods32', $$//mods32:mods/mods32:titleInfo[mods32:title and (@type='translated')]$$ );
18 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
19 ( 'title', 'alternative', 'mods32', $$//mods32:mods/mods32:titleInfo[mods32:title and (@type='alternative')]$$ );
20 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
21 ( 'title', 'uniform', 'mods32', $$//mods32:mods/mods32:titleInfo[mods32:title and (@type='uniform')]$$ );
22 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
23 ( 'title', 'proper', 'mods32', $$//mods32:mods/mods32:titleInfo[mods32:title and not (@type)]$$ );
24 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
25 ( 'author', 'corporate', 'mods32', $$//mods32:mods/mods32:name[@type='corporate']/mods32:namePart[../mods32:role/mods32:roleTerm[text()='creator']]$$ );
26 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
27 ( 'author', 'personal', 'mods32', $$//mods32:mods/mods32:name[@type='personal']/mods32:namePart[../mods32:role/mods32:roleTerm[text()='creator']]$$ );
28 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
29 ( 'author', 'conference', 'mods32', $$//mods32:mods/mods32:name[@type='conference']/mods32:namePart[../mods32:role/mods32:roleTerm[text()='creator']]$$ );
30 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
31 ( 'author', 'other', 'mods32', $$//mods32:mods/mods32:name[@type='personal']/mods32:namePart[not(../mods32:role)]$$ );
32 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
33 ( 'subject', 'geographic', 'mods32', $$//mods32:mods/mods32:subject/mods32:geographic$$ );
34 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
35 ( 'subject', 'name', 'mods32', $$//mods32:mods/mods32:subject/mods32:name$$ );
36 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
37 ( 'subject', 'temporal', 'mods32', $$//mods32:mods/mods32:subject/mods32:temporal$$ );
38 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
39 ( 'subject', 'topic', 'mods32', $$//mods32:mods/mods32:subject/mods32:topic$$ );
40 --INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
41 -- ( field_class, name, xpath ) VALUES ( 'subject', 'genre', 'mods32', $$//mods32:mods/mods32:genre$$ );
42 INSERT INTO config.metabib_field ( field_class, name, format, xpath ) VALUES
43 ( 'keyword', 'keyword', 'mods32', $$//mods32:mods/*[not(local-name()='originInfo')]$$ ); -- /* to fool vim */;
45 INSERT INTO config.non_cataloged_type ( id, owning_lib, name ) VALUES ( 1, 1, oils_i18n_gettext(1, 'Paperback Book', 'cnct', 'name') );
46 SELECT SETVAL('config.non_cataloged_type_id_seq'::TEXT, 100);
48 INSERT INTO config.identification_type ( id, name ) VALUES
49 ( 1, oils_i18n_gettext(1, 'Drivers License', 'cit', 'name') );
50 INSERT INTO config.identification_type ( id, name ) VALUES
51 ( 2, oils_i18n_gettext(2, 'SSN', 'cit', 'name') );
52 INSERT INTO config.identification_type ( id, name ) VALUES
53 ( 3, oils_i18n_gettext(3, 'Other', 'cit', 'name') );
54 SELECT SETVAL('config.identification_type_id_seq'::TEXT, 100);
56 INSERT INTO config.rule_circ_duration VALUES
57 (1, oils_i18n_gettext(1, '7_days_0_renew', 'crcd', 'name'), '7 days', '7 days', '7 days', 0);
58 INSERT INTO config.rule_circ_duration VALUES
59 (2, oils_i18n_gettext(2, '28_days_2_renew', 'crcd', 'name'), '28 days', '28 days', '28 days', 2);
60 INSERT INTO config.rule_circ_duration VALUES
61 (3, oils_i18n_gettext(3, '3_months_0_renew', 'crcd', 'name'), '3 months', '3 months', '3 months', 0);
62 INSERT INTO config.rule_circ_duration VALUES
63 (4, oils_i18n_gettext(4, '3_days_1_renew', 'crcd', 'name'), '3 days', '3 days', '3 days', 1);
64 INSERT INTO config.rule_circ_duration VALUES
65 (5, oils_i18n_gettext(5, '2_months_2_renew', 'crcd', 'name'), '2 months', '2 months', '2 months', 2);
66 INSERT INTO config.rule_circ_duration VALUES
67 (6, oils_i18n_gettext(6, '35_days_1_renew', 'crcd', 'name'), '35 days', '35 days', '35 days', 1);
68 INSERT INTO config.rule_circ_duration VALUES
69 (7, oils_i18n_gettext(7, '7_days_2_renew', 'crcd', 'name'), '7 days', '7 days', '7 days', 2);
71 --040.schema.asset.sql:
72 INSERT INTO asset.copy_location (id, name,owning_lib) VALUES (1, oils_i18n_gettext(1, 'Stacks', 'acpl', 'name'),1);
74 -- Vandelay (for importing and exporting records) 012.schema.vandelay.sql
75 INSERT INTO vandelay.bib_attr_definition ( id, code, description, xpath ) VALUES (1, 'title', oils_i18n_gettext(1, 'Title of work', 'vqbrad', 'description'),'//*[@tag="245"]/*[contains("abcmnopr",@code)]');
76 INSERT INTO vandelay.bib_attr_definition ( id, code, description, xpath ) VALUES (2, 'author', oils_i18n_gettext(1, 'Author of work', 'vqbrad', 'description'),'//*[@tag="100" or @tag="110" or @tag="113"]/*[contains("ad",@code)]');
77 INSERT INTO vandelay.bib_attr_definition ( id, code, description, xpath ) VALUES (3, 'language', oils_i18n_gettext(3, 'Language of work', 'vqbrad', 'description'),'//*[@tag="240"]/*[@code="l"][1]');
78 INSERT INTO vandelay.bib_attr_definition ( id, code, description, xpath ) VALUES (4, 'pagination', oils_i18n_gettext(4, 'Pagination', 'vqbrad', 'description'),'//*[@tag="300"]/*[@code="a"][1]');
80 INSERT INTO config.bib_level_map (code, value) VALUES ('b', oils_i18n_gettext('b', 'Serial component part', 'cblvl', 'value'));
81 INSERT INTO config.bib_level_map (code, value) VALUES ('c', oils_i18n_gettext('c', 'Collection', 'cblvl', 'value'));
82 INSERT INTO config.bib_level_map (code, value) VALUES ('d', oils_i18n_gettext('d', 'Subunit', 'cblvl', 'value'));
83 INSERT INTO config.bib_level_map (code, value) VALUES ('i', oils_i18n_gettext('i', 'Integrating resource', 'cblvl', 'value'));
84 INSERT INTO config.bib_level_map (code, value) VALUES ('m', oils_i18n_gettext('m', 'Monograph/Item', 'cblvl', 'value'));
85 INSERT INTO config.bib_level_map (code, value) VALUES ('s', oils_i18n_gettext('s', 'Serial', 'cblvl', 'value'));
88 INSERT INTO config.i18n_locale (code,marc_code,name,description)
89 VALUES ('en-US', 'eng', oils_i18n_gettext('en-US', 'English (US)', 'i18n_l', 'name'),
90 oils_i18n_gettext('en-US', 'American English', 'i18n_l', 'description'));
91 INSERT INTO config.i18n_locale (code,marc_code,name,description)
92 VALUES ('en-CA', 'eng', oils_i18n_gettext('en-CA', 'English (Canada)', 'i18n_l', 'name'),
93 oils_i18n_gettext('en-CA', 'Canadian English', 'i18n_l', 'description'));
94 INSERT INTO config.i18n_locale (code,marc_code,name,description)
95 VALUES ('fr-CA', 'fre', oils_i18n_gettext('fr-CA', 'French (Canada)', 'i18n_l', 'name'),
96 oils_i18n_gettext('fr-CA', 'Canadian French', 'i18n_l', 'description'));
97 INSERT INTO config.i18n_locale (code,marc_code,name,description)
98 VALUES ('es-US', 'spa', oils_i18n_gettext('es-US', 'Spanish (US)', 'i18n_l', 'name'),
99 oils_i18n_gettext('es-US', 'American Spanish', 'i18n_l', 'description'));
101 INSERT INTO container.copy_bucket_type (code,label) VALUES ('misc', oils_i18n_gettext('misc', 'Miscellaneous', 'ccpbt', 'label'));
102 INSERT INTO container.copy_bucket_type (code,label) VALUES ('staff_client', oils_i18n_gettext('staff_client', 'General Staff Client container', 'ccpbt', 'label'));
103 INSERT INTO container.call_number_bucket_type (code,label) VALUES ('misc', oils_i18n_gettext('misc', 'Miscellaneous', 'ccnbt', 'label'));
104 INSERT INTO container.biblio_record_entry_bucket_type (code,label) VALUES ('misc', oils_i18n_gettext('misc', 'Miscellaneous', 'cbrebt', 'label'));
105 INSERT INTO container.biblio_record_entry_bucket_type (code,label) VALUES ('staff_client', oils_i18n_gettext('staff_client', 'General Staff Client container', 'cbrebt', 'label'));
107 -- 950..data.seed-values.sql
108 INSERT INTO permission.perm_list ( id, code, description ) VALUES
109 ( -1, 'EVERYTHING', oils_i18n_gettext( -1,
110 'EVERYTHING', 'ppl', 'description' )),
111 ( 1, 'OPAC_LOGIN', oils_i18n_gettext( 1,
112 'Allow a user to log in to the OPAC', 'ppl', 'description' ));
114 INSERT into config.org_unit_setting_type
115 ( name, grp, label, description, datatype, fm_class ) VALUES
116 ( 'acq.copy_creator_uses_receiver', 'acq',
117 oils_i18n_gettext('acq.copy_creator_uses_receiver',
118 'Set copy creator as receiver',
120 oils_i18n_gettext('acq.copy_creator_uses_receiver',
121 'When receiving a copy in acquisitions, set the copy "creator" to be the staff that received the copy',
122 'coust', 'description'),
124 ,( 'vandelay.default_match_set', 'vandelay',
126 'vandelay.default_match_set',
127 'Default Record Match Set',
132 'vandelay.default_match_set',
133 'Default Record Match Set',
140 INSERT INTO config.coded_value_map (id, ctype, code, value, description) VALUES
141 (487,'audience', ' ', oils_i18n_gettext('487', 'Unknown or unspecified', 'ccvm', 'value'), oils_i18n_gettext('487', 'The target audience for the item not known or not specified.', 'ccvm', 'description')),
142 (488,'audience', 'a', oils_i18n_gettext('488', 'Preschool', 'ccvm', 'value'), oils_i18n_gettext('488', 'The item is intended for children, approximate ages 0-5 years.', 'ccvm', 'description'))
145 INSERT INTO config.sms_carrier VALUES
160 'opensrf+$number@localhost',
165 -- specific contrived test cases
167 -- first, with numeric ID
168 oils_i18n_gettext(9, 'TEST009', 'TEST009A', 'TEST009B')
169 oils_i18n_gettext(1, 'TEST001', 'TEST001A', 'TEST001B')
171 oils_i18n_gettext(2, 'TEST002', 'TEST002A', 'TEST002B')
173 oils_i18n_gettext(3, 'TEST003', 'TEST003A', 'TEST003B'), oils_i18n_gettext(4, 'TEST004', 'TEST004A', 'TEST004B')
176 'TEST005', 'TEST005A', 'TEST005B');
184 oils_i18n_gettext(7, 'TEST' || '007', 'TEST007A', 'TEST007B')
186 oils_i18n_gettext(8, 'TEST' ||
193 oils_i18n_gettext(10, 'TEST''010', 'TEST010A', 'TEST010B')
195 -- then the same tests with string ID
196 oils_i18n_gettext('Str9', 'TEST109', 'TEST109A', 'TEST109B')
197 oils_i18n_gettext('Str1', 'TEST101', 'TEST101A', 'TEST101B')
199 oils_i18n_gettext('Str2', 'TEST102', 'TEST102A', 'TEST102B')
201 oils_i18n_gettext('Str3', 'TEST103', 'TEST103A', 'TEST103B'), oils_i18n_gettext('Str4', 'TEST104', 'TEST104A', 'TEST104B')
203 oils_i18n_gettext('Str5',
204 'TEST105', 'TEST105A', 'TEST105B');
206 oils_i18n_gettext('Str6',
212 oils_i18n_gettext('Str7', 'TEST' || '107', 'TEST107A', 'TEST107B')
214 oils_i18n_gettext('Str8', 'TEST' ||
221 oils_i18n_gettext('Str10', 'TEST''110', 'TEST110A', 'TEST110B')