]> git.evergreen-ils.org Git - working/Evergreen.git/blob - build/i18n/tests/data/sqlsource.sql
dda3df85c6c542f81d8fa22812dbd2f26bbea005
[working/Evergreen.git] / build / i18n / tests / data / sqlsource.sql
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);
8
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'));
11
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 */;
44
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);
47
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);
55
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);
70
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);
73
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]');
79
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'));
86
87 -- available locales
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'));
100
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'));