]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/002.schema.config.sql
adding transcendant column and Project Gutenberg source
[working/Evergreen.git] / Open-ILS / src / sql / Pg / 002.schema.config.sql
1
2 DROP SCHEMA stats CASCADE;
3 DROP SCHEMA config CASCADE;
4
5 BEGIN;
6 CREATE SCHEMA stats;
7
8 CREATE SCHEMA config;
9 COMMENT ON SCHEMA config IS $$
10 /*
11  * Copyright (C) 2005  Georgia Public Library Service 
12  * Mike Rylander <mrylander@gmail.com>
13  *
14  * The config schema holds static configuration data for the
15  * Open-ILS installation.
16  *
17  * ****
18  *
19  * This program is free software; you can redistribute it and/or
20  * modify it under the terms of the GNU General Public License
21  * as published by the Free Software Foundation; either version 2
22  * of the License, or (at your option) any later version.
23  *
24  * This program is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27  * GNU General Public License for more details.
28  */
29 $$;
30
31
32 CREATE TABLE config.bib_source (
33         id              SERIAL  PRIMARY KEY,
34         quality         INT     CHECK ( quality BETWEEN 0 AND 100 ),
35         source          TEXT    NOT NULL UNIQUE,
36         transcendant    BOOL    NOT NULL DEFAULT FALSE
37 );
38 COMMENT ON TABLE config.bib_source IS $$
39 /*
40  * Copyright (C) 2005  Georgia Public Library Service 
41  * Mike Rylander <mrylander@gmail.com>
42  *
43  * Valid sources of MARC records
44  *
45  * This is table is used to set up the relative "quality" of each
46  * MARC source, such as OCLC.
47  *
48  * ****
49  *
50  * This program is free software; you can redistribute it and/or
51  * modify it under the terms of the GNU General Public License
52  * as published by the Free Software Foundation; either version 2
53  * of the License, or (at your option) any later version.
54  *
55  * This program is distributed in the hope that it will be useful,
56  * but WITHOUT ANY WARRANTY; without even the implied warranty of
57  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
58  * GNU General Public License for more details.
59  */
60 $$;
61
62
63 INSERT INTO config.bib_source (quality, source) VALUES (90, 'OcLC');
64 INSERT INTO config.bib_source (quality, source) VALUES (10, 'System Local');
65 INSERT INTO config.bib_source (quality, source, transcendant) VALUES (1, 'Project Gutenberg', TRUE);
66
67 CREATE TABLE config.standing (
68         id              SERIAL  PRIMARY KEY,
69         value           TEXT    NOT NULL UNIQUE
70 );
71 COMMENT ON TABLE config.standing IS $$
72 /*
73  * Copyright (C) 2005  Georgia Public Library Service 
74  * Mike Rylander <mrylander@gmail.com>
75  *
76  * Patron Standings
77  *
78  * This table contains the values that can be applied to a patron
79  * by a staff member.  These values should not be changed, other
80  * that for translation, as the ID column is currently a "magic
81  * number" in the source. :(
82  *
83  * ****
84  *
85  * This program is free software; you can redistribute it and/or
86  * modify it under the terms of the GNU General Public License
87  * as published by the Free Software Foundation; either version 2
88  * of the License, or (at your option) any later version.
89  *
90  * This program is distributed in the hope that it will be useful,
91  * but WITHOUT ANY WARRANTY; without even the implied warranty of
92  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
93  * GNU General Public License for more details.
94  */
95 $$;
96
97 INSERT INTO config.standing (value) VALUES ('Good');
98 INSERT INTO config.standing (value) VALUES ('Barred');
99
100
101
102 CREATE TABLE config.metabib_field (
103         id              SERIAL  PRIMARY KEY,
104         field_class     TEXT    NOT NULL CHECK (lower(field_class) IN ('title','author','subject','keyword','series')),
105         name            TEXT    NOT NULL UNIQUE,
106         xpath           TEXT    NOT NULL
107 );
108 COMMENT ON TABLE config.metabib_field IS $$
109 /*
110  * Copyright (C) 2005  Georgia Public Library Service 
111  * Mike Rylander <mrylander@gmail.com>
112  *
113  * XPath used for WoRMing
114  *
115  * This table contains the XPath used to chop up MODS into it's
116  * indexable parts.  Each XPath entry is named and assigned to
117  * a "class" of either title, subject, author, keyword or series.
118  * 
119  *
120  * ****
121  *
122  * This program is free software; you can redistribute it and/or
123  * modify it under the terms of the GNU General Public License
124  * as published by the Free Software Foundation; either version 2
125  * of the License, or (at your option) any later version.
126  *
127  * This program is distributed in the hope that it will be useful,
128  * but WITHOUT ANY WARRANTY; without even the implied warranty of
129  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
130  * GNU General Public License for more details.
131  */
132 $$;
133
134
135 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'series', 'seriestitle', $$//mods:mods/mods:relatedItem[@type="series"]/mods:titleInfo$$ );
136 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'title', 'abbreviated', $$//mods:mods/mods:titleInfo[mods:title and (@type='abreviated')]$$ );
137 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'title', 'translated', $$//mods:mods/mods:titleInfo[mods:title and (@type='translated')]$$ );
138 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'title', 'uniform', $$//mods:mods/mods:titleInfo[mods:title and (@type='uniform')]$$ );
139 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'title', 'proper', $$//mods:mods/mods:titleInfo[mods:title and not (@type)]$$ );
140 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'author', 'corporate', $$//mods:mods/mods:name[@type='corporate']/mods:namePart[../mods:role/mods:text[text()='creator']]$$ );
141 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'author', 'personal', $$//mods:mods/mods:name[@type='personal']/mods:namePart[../mods:role/mods:text[text()='creator']]$$ );
142 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'author', 'conference', $$//mods:mods/mods:name[@type='conference']/mods:namePart[../mods:role/mods:text[text()='creator']]$$ );
143 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'author', 'other', $$//mods:mods/mods:name[@type='personal']/mods:namePart[not(../mods:role)]$$ );
144 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'subject', 'geographic', $$//mods:mods/mods:subject/mods:geographic$$ );
145 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'subject', 'name', $$//mods:mods/mods:subject/mods:name$$ );
146 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'subject', 'temporal', $$//mods:mods/mods:subject/mods:temporal$$ );
147 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'subject', 'topic', $$//mods:mods/mods:subject/mods:topic$$ );
148 -- INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'subject', 'genre', $$//mods:mods/mods:genre$$ );
149 INSERT INTO config.metabib_field ( field_class, name, xpath ) VALUES ( 'keyword', 'keyword', $$//mods:mods/*[not(local-name()='originInfo')]$$ ); -- /* to fool vim */
150
151 CREATE TABLE config.non_cataloged_type (
152         id              SERIAL          PRIMARY KEY,
153         owning_lib      INT             NOT NULL, -- REFERENCES actor.org_unit (id),
154         name            TEXT            NOT NULL UNIQUE,
155         circ_duration   INTERVAL        NOT NULL DEFAULT '14 days'::INTERVAL
156 );
157 COMMENT ON TABLE config.non_cataloged_type IS $$
158 /*
159  * Copyright (C) 2005  Georgia Public Library Service 
160  * Mike Rylander <mrylander@gmail.com>
161  *
162  * Types of valid non-cataloged items.
163  *
164  *
165  * ****
166  *
167  * This program is free software; you can redistribute it and/or
168  * modify it under the terms of the GNU General Public License
169  * as published by the Free Software Foundation; either version 2
170  * of the License, or (at your option) any later version.
171  *
172  * This program is distributed in the hope that it will be useful,
173  * but WITHOUT ANY WARRANTY; without even the implied warranty of
174  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
175  * GNU General Public License for more details.
176  */
177 $$;
178
179
180 INSERT INTO config.non_cataloged_type ( owning_lib, name ) VALUES ( 1, 'Paperback Book' );
181
182 CREATE TABLE config.identification_type (
183         id              SERIAL  PRIMARY KEY,
184         name            TEXT    NOT NULL UNIQUE
185 );
186 COMMENT ON TABLE config.identification_type IS $$
187 /*
188  * Copyright (C) 2005  Georgia Public Library Service 
189  * Mike Rylander <mrylander@gmail.com>
190  *
191  * Types of valid patron identification.
192  *
193  * Each patron must display at least one valid form of identification
194  * in order to get a library card.  This table lists those forms.
195  * 
196  *
197  * ****
198  *
199  * This program is free software; you can redistribute it and/or
200  * modify it under the terms of the GNU General Public License
201  * as published by the Free Software Foundation; either version 2
202  * of the License, or (at your option) any later version.
203  *
204  * This program is distributed in the hope that it will be useful,
205  * but WITHOUT ANY WARRANTY; without even the implied warranty of
206  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
207  * GNU General Public License for more details.
208  */
209 $$;
210
211
212 INSERT INTO config.identification_type ( name ) VALUES ( 'Drivers Licence' );
213 INSERT INTO config.identification_type ( name ) VALUES ( 'Voter Card' );
214 INSERT INTO config.identification_type ( name ) VALUES ( 'Two Utility Bills' );
215 INSERT INTO config.identification_type ( name ) VALUES ( 'State ID' );
216 INSERT INTO config.identification_type ( name ) VALUES ( 'SSN' );
217
218 CREATE TABLE config.rule_circ_duration (
219         id              SERIAL          PRIMARY KEY,
220         name            TEXT            NOT NULL UNIQUE CHECK ( name ~ '^\\w+$' ),
221         extended        INTERVAL        NOT NULL,
222         normal          INTERVAL        NOT NULL,
223         shrt            INTERVAL        NOT NULL,
224         max_renewals    INT             NOT NULL
225 );
226 COMMENT ON TABLE config.rule_circ_duration IS $$
227 /*
228  * Copyright (C) 2005  Georgia Public Library Service 
229  * Mike Rylander <mrylander@gmail.com>
230  *
231  * Circulation Duration rules
232  *
233  * Each circulation is given a duration based on one of these rules.
234  * 
235  *
236  * ****
237  *
238  * This program is free software; you can redistribute it and/or
239  * modify it under the terms of the GNU General Public License
240  * as published by the Free Software Foundation; either version 2
241  * of the License, or (at your option) any later version.
242  *
243  * This program is distributed in the hope that it will be useful,
244  * but WITHOUT ANY WARRANTY; without even the implied warranty of
245  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
246  * GNU General Public License for more details.
247  */
248 $$;
249
250 INSERT INTO config.rule_circ_duration VALUES (DEFAULT, '2wk_default', '21 days', '14 days', '7 days', 2);
251
252
253 CREATE TABLE config.rule_max_fine (
254         id      SERIAL          PRIMARY KEY,
255         name    TEXT            NOT NULL UNIQUE CHECK ( name ~ '^\\w+$' ),
256         amount  NUMERIC(6,2)    NOT NULL
257 );
258 COMMENT ON TABLE config.rule_max_fine IS $$
259 /*
260  * Copyright (C) 2005  Georgia Public Library Service 
261  * Mike Rylander <mrylander@gmail.com>
262  *
263  * Circulation Max Fine rules
264  *
265  * Each circulation is given a maximum fine based on one of
266  * these rules.
267  * 
268  *
269  * ****
270  *
271  * This program is free software; you can redistribute it and/or
272  * modify it under the terms of the GNU General Public License
273  * as published by the Free Software Foundation; either version 2
274  * of the License, or (at your option) any later version.
275  *
276  * This program is distributed in the hope that it will be useful,
277  * but WITHOUT ANY WARRANTY; without even the implied warranty of
278  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
279  * GNU General Public License for more details.
280  */
281 $$;
282
283 INSERT INTO config.rule_max_fine VALUES (DEFAULT, 'books', 50.00);
284
285
286 CREATE TABLE config.rule_recuring_fine (
287         id                      SERIAL          PRIMARY KEY,
288         name                    TEXT            NOT NULL UNIQUE CHECK ( name ~ '^\\w+$' ),
289         high                    NUMERIC(6,2)    NOT NULL,
290         normal                  NUMERIC(6,2)    NOT NULL,
291         low                     NUMERIC(6,2)    NOT NULL,
292         recurance_interval      INTERVAL        NOT NULL DEFAULT '1 day'::INTERVAL
293 );
294 COMMENT ON TABLE config.rule_recuring_fine IS $$
295 /*
296  * Copyright (C) 2005  Georgia Public Library Service 
297  * Mike Rylander <mrylander@gmail.com>
298  *
299  * Circulation Recuring Fine rules
300  *
301  * Each circulation is given a recuring fine amount based on one of
302  * these rules.  The recurance_interval should not be any shorter
303  * than the interval between runs of the fine_processor.pl script
304  * (which is run from CRON), or you could miss fines.
305  * 
306  *
307  * ****
308  *
309  * This program is free software; you can redistribute it and/or
310  * modify it under the terms of the GNU General Public License
311  * as published by the Free Software Foundation; either version 2
312  * of the License, or (at your option) any later version.
313  *
314  * This program is distributed in the hope that it will be useful,
315  * but WITHOUT ANY WARRANTY; without even the implied warranty of
316  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
317  * GNU General Public License for more details.
318  */
319 $$;
320
321 INSERT INTO config.rule_recuring_fine VALUES (1, 'books', 0.50, 0.10, 0.10, '1 day');
322
323
324 CREATE TABLE config.rule_age_hold_protect (
325         id      SERIAL          PRIMARY KEY,
326         name    TEXT            NOT NULL UNIQUE CHECK ( name ~ '^\\w+$' ),
327         age     INTERVAL        NOT NULL,
328         prox    INT             NOT NULL
329 );
330 COMMENT ON TABLE config.rule_age_hold_protect IS $$
331 /*
332  * Copyright (C) 2005  Georgia Public Library Service 
333  * Mike Rylander <mrylander@gmail.com>
334  *
335  * Hold Item Age Protection rules
336  *
337  * A hold request can only capture new(ish) items when they are
338  * within a particular proximity of the home_ou of the requesting
339  * user.  The proximity ('prox' column) is calculated by counting
340  * the number of tree edges beween the user's home_ou and the owning_lib
341  * of the copy that could fulfill the hold.
342  * 
343  *
344  * ****
345  *
346  * This program is free software; you can redistribute it and/or
347  * modify it under the terms of the GNU General Public License
348  * as published by the Free Software Foundation; either version 2
349  * of the License, or (at your option) any later version.
350  *
351  * This program is distributed in the hope that it will be useful,
352  * but WITHOUT ANY WARRANTY; without even the implied warranty of
353  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
354  * GNU General Public License for more details.
355  */
356 $$;
357
358 INSERT INTO config.rule_age_hold_protect VALUES (DEFAULT, '3month', '3 mons', 0);
359 INSERT INTO config.rule_age_hold_protect VALUES (DEFAULT, '6month', '6 mons', 2);
360
361
362 CREATE TABLE config.copy_status (
363         id              SERIAL  PRIMARY KEY,
364         name            TEXT    NOT NULL UNIQUE,
365         holdable        BOOL    NOT NULL DEFAULT FALSE
366 );
367 COMMENT ON TABLE config.copy_status IS $$
368 /*
369  * Copyright (C) 2005  Georgia Public Library Service 
370  * Mike Rylander <mrylander@gmail.com>
371  *
372  * Copy Statuses
373  *
374  * The available copy statuses, and whether a copy in that
375  * status is available for hold request capture.  0 (zero) is
376  * the only special number in this set, meaning that the item
377  * is available for imediate checkout, and is counted as available
378  * in the OPAC.
379  *
380  * Statuses with an ID below 100 are not removable, and have special
381  * meaning in the code.  Do not change them except to translate the
382  * textual name.
383  *
384  * You may add and remove statuses above 100, and these can be used
385  * to remove items from normal circulation without affecting the rest
386  * of the copy's values or it's location.
387  *
388  * ****
389  *
390  * This program is free software; you can redistribute it and/or
391  * modify it under the terms of the GNU General Public License
392  * as published by the Free Software Foundation; either version 2
393  * of the License, or (at your option) any later version.
394  *
395  * This program is distributed in the hope that it will be useful,
396  * but WITHOUT ANY WARRANTY; without even the implied warranty of
397  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
398  * GNU General Public License for more details.
399  */
400 $$;
401
402 INSERT INTO config.copy_status (id,name,holdable)       VALUES (0,'Available','t');
403 INSERT INTO config.copy_status (name,holdable)          VALUES ('Checked out','t');
404 INSERT INTO config.copy_status (name)                   VALUES ('Bindery');
405 INSERT INTO config.copy_status (name)                   VALUES ('Lost');
406 INSERT INTO config.copy_status (name)                   VALUES ('Missing');
407 INSERT INTO config.copy_status (name,holdable)          VALUES ('In process','t');
408 INSERT INTO config.copy_status (name,holdable)          VALUES ('In transit','t');
409 INSERT INTO config.copy_status (name,holdable)          VALUES ('Reshelving','t');
410 INSERT INTO config.copy_status (name)                   VALUES ('On holds shelf');
411 INSERT INTO config.copy_status (name,holdable)          VALUES ('On order','t');
412 INSERT INTO config.copy_status (name)                   VALUES ('ILL');
413 INSERT INTO config.copy_status (name)                   VALUES ('Cataloging');
414 INSERT INTO config.copy_status (name)                   VALUES ('Reserves');
415 INSERT INTO config.copy_status (name)                   VALUES ('Discard/Weed');
416
417 SELECT SETVAL('config.copy_status_id_seq'::TEXT, 100);
418
419
420 CREATE TABLE config.net_access_level (
421         id      SERIAL          PRIMARY KEY,
422         name    TEXT            NOT NULL UNIQUE
423 );
424 COMMENT ON TABLE config.net_access_level IS $$
425 /*
426  * Copyright (C) 2005  Georgia Public Library Service 
427  * Mike Rylander <mrylander@gmail.com>
428  *
429  * Patron Network Access level
430  *
431  * This will be used to inform the in-library firewall of how much
432  * internet access the using patron should be allowed.
433  *
434  * ****
435  *
436  * This program is free software; you can redistribute it and/or
437  * modify it under the terms of the GNU General Public License
438  * as published by the Free Software Foundation; either version 2
439  * of the License, or (at your option) any later version.
440  *
441  * This program is distributed in the hope that it will be useful,
442  * but WITHOUT ANY WARRANTY; without even the implied warranty of
443  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
444  * GNU General Public License for more details.
445  */
446 $$;
447
448 INSERT INTO config.net_access_level (name) VALUES ('Restricted');
449 INSERT INTO config.net_access_level (name) VALUES ('Full');
450 INSERT INTO config.net_access_level (name) VALUES ('None');
451
452 CREATE TABLE config.audience_map (
453         code            "char"  PRIMARY KEY,
454         value           TEXT    NOT NULL,
455         description     TEXT
456 );
457
458 COPY config.audience_map FROM STDIN;
459         Unknown or unspecified  The target audience for the item not known or not specified.
460 a       Preschool       The item is intended for children, approximate ages 0-5 years.
461 b       Primary The item is intended for children, approximate ages 6-8 years.
462 c       Pre-adolescent  The item is intended for young people, approximate ages 9-13 years.
463 d       Adolescent      The item is intended for young people, approximate ages 14-17 years.
464 e       Adult   The item is intended for adults.
465 f       Specialized     The item is aimed at a particular audience and the nature of the presentation makes the item of little interest to another audience.
466 g       General The item is of general interest and not aimed at an audience of a particular intellectual level.
467 j       Juvenile        The item is intended for children and young people, approximate ages 0-15 years.
468 \.
469
470
471 CREATE TABLE config.lit_form_map (
472         code            "char"  PRIMARY KEY,
473         value           TEXT    NOT NULL,
474         description     TEXT
475 );
476
477 COPY config.lit_form_map FROM STDIN;
478 0       Not fiction (not further specified)     The item is not a work of fiction and no further identification of the literary form is desired
479 1       Fiction (not further specified) The item is a work of fiction and no further identification of the literary form is desired
480 c       Comic strips    \N
481 d       Dramas  \N
482 e       Essays  \N
483 f       Novels  \N
484 h       Humor, satires, etc.    The item is a humorous work, satire or of similar literary form.
485 i       Letters The item is a single letter or collection of correspondence.
486 j       Short stories   The item is a short story or collection of short stories.
487 m       Mixed forms     The item is a variety of literary forms (e.g., poetry and short stories).
488 p       Poetry  The item is a poem or collection of poems.
489 s       Speeches        The item is a speech or collection of speeches.
490 u       Unknown The literary form of the item is unknown.
491 \.
492
493 CREATE TABLE config.language_map (
494         code    TEXT    PRIMARY KEY,
495         value   TEXT    NOT NULL
496 );
497
498 COPY config.language_map FROM STDIN;
499 aar     Afar
500 abk     Abkhaz
501 ace     Achinese
502 ach     Acoli
503 ada     Adangme
504 ady     Adygei
505 afa     Afroasiatic (Other)
506 afh     Afrihili (Artificial language)
507 afr     Afrikaans
508 -ajm    Aljamía
509 aka     Akan
510 akk     Akkadian
511 alb     Albanian
512 ale     Aleut
513 alg     Algonquian (Other)
514 amh     Amharic
515 ang     English, Old (ca. 450-1100)
516 apa     Apache languages
517 ara     Arabic
518 arc     Aramaic
519 arg     Aragonese Spanish
520 arm     Armenian
521 arn     Mapuche
522 arp     Arapaho
523 art     Artificial (Other)
524 arw     Arawak
525 asm     Assamese
526 ast     Bable
527 ath     Athapascan (Other)
528 aus     Australian languages
529 ava     Avaric
530 ave     Avestan
531 awa     Awadhi
532 aym     Aymara
533 aze     Azerbaijani
534 bad     Banda
535 bai     Bamileke languages
536 bak     Bashkir
537 bal     Baluchi
538 bam     Bambara
539 ban     Balinese
540 baq     Basque
541 bas     Basa
542 bat     Baltic (Other)
543 bej     Beja
544 bel     Belarusian
545 bem     Bemba
546 ben     Bengali
547 ber     Berber (Other)
548 bho     Bhojpuri
549 bih     Bihari
550 bik     Bikol
551 bin     Edo
552 bis     Bislama
553 bla     Siksika
554 bnt     Bantu (Other)
555 bos     Bosnian
556 bra     Braj
557 bre     Breton
558 btk     Batak
559 bua     Buriat
560 bug     Bugis
561 bul     Bulgarian
562 bur     Burmese
563 cad     Caddo
564 cai     Central American Indian (Other)
565 -cam    Khmer
566 car     Carib
567 cat     Catalan
568 cau     Caucasian (Other)
569 ceb     Cebuano
570 cel     Celtic (Other)
571 cha     Chamorro
572 chb     Chibcha
573 che     Chechen
574 chg     Chagatai
575 chi     Chinese
576 chk     Truk
577 chm     Mari
578 chn     Chinook jargon
579 cho     Choctaw
580 chp     Chipewyan
581 chr     Cherokee
582 chu     Church Slavic
583 chv     Chuvash
584 chy     Cheyenne
585 cmc     Chamic languages
586 cop     Coptic
587 cor     Cornish
588 cos     Corsican
589 cpe     Creoles and Pidgins, English-based (Other)
590 cpf     Creoles and Pidgins, French-based (Other)
591 cpp     Creoles and Pidgins, Portuguese-based (Other)
592 cre     Cree
593 crh     Crimean Tatar
594 crp     Creoles and Pidgins (Other)
595 cus     Cushitic (Other)
596 cze     Czech
597 dak     Dakota
598 dan     Danish
599 dar     Dargwa
600 day     Dayak
601 del     Delaware
602 den     Slave
603 dgr     Dogrib
604 din     Dinka
605 div     Divehi
606 doi     Dogri
607 dra     Dravidian (Other)
608 dua     Duala
609 dum     Dutch, Middle (ca. 1050-1350)
610 dut     Dutch
611 dyu     Dyula
612 dzo     Dzongkha
613 efi     Efik
614 egy     Egyptian
615 eka     Ekajuk
616 elx     Elamite
617 eng     English
618 enm     English, Middle (1100-1500)
619 epo     Esperanto
620 -esk    Eskimo languages
621 -esp    Esperanto
622 est     Estonian
623 -eth    Ethiopic
624 ewe     Ewe
625 ewo     Ewondo
626 fan     Fang
627 fao     Faroese
628 -far    Faroese
629 fat     Fanti
630 fij     Fijian
631 fin     Finnish
632 fiu     Finno-Ugrian (Other)
633 fon     Fon
634 fre     French
635 -fri    Frisian
636 frm     French, Middle (ca. 1400-1600)
637 fro     French, Old (ca. 842-1400)
638 fry     Frisian
639 ful     Fula
640 fur     Friulian
641 gaa     Gã
642 -gae    Scottish Gaelic
643 -gag    Galician
644 -gal    Oromo
645 gay     Gayo
646 gba     Gbaya
647 gem     Germanic (Other)
648 geo     Georgian
649 ger     German
650 gez     Ethiopic
651 gil     Gilbertese
652 gla     Scottish Gaelic
653 gle     Irish
654 glg     Galician
655 glv     Manx
656 gmh     German, Middle High (ca. 1050-1500)
657 goh     German, Old High (ca. 750-1050)
658 gon     Gondi
659 gor     Gorontalo
660 got     Gothic
661 grb     Grebo
662 grc     Greek, Ancient (to 1453)
663 gre     Greek, Modern (1453- )
664 grn     Guarani
665 -gua    Guarani
666 guj     Gujarati
667 gwi     Gwich'in
668 hai     Haida
669 hat     Haitian French Creole
670 hau     Hausa
671 haw     Hawaiian
672 heb     Hebrew
673 her     Herero
674 hil     Hiligaynon
675 him     Himachali
676 hin     Hindi
677 hit     Hittite
678 hmn     Hmong
679 hmo     Hiri Motu
680 hun     Hungarian
681 hup     Hupa
682 iba     Iban
683 ibo     Igbo
684 ice     Icelandic
685 ido     Ido
686 iii     Sichuan Yi
687 ijo     Ijo
688 iku     Inuktitut
689 ile     Interlingue
690 ilo     Iloko
691 ina     Interlingua (International Auxiliary Language Association)
692 inc     Indic (Other)
693 ind     Indonesian
694 ine     Indo-European (Other)
695 inh     Ingush
696 -int    Interlingua (International Auxiliary Language Association)
697 ipk     Inupiaq
698 ira     Iranian (Other)
699 -iri    Irish
700 iro     Iroquoian (Other)
701 ita     Italian
702 jav     Javanese
703 jpn     Japanese
704 jpr     Judeo-Persian
705 jrb     Judeo-Arabic
706 kaa     Kara-Kalpak
707 kab     Kabyle
708 kac     Kachin
709 kal     Kalâtdlisut
710 kam     Kamba
711 kan     Kannada
712 kar     Karen
713 kas     Kashmiri
714 kau     Kanuri
715 kaw     Kawi
716 kaz     Kazakh
717 kbd     Kabardian
718 kha     Khasi
719 khi     Khoisan (Other)
720 khm     Khmer
721 kho     Khotanese
722 kik     Kikuyu
723 kin     Kinyarwanda
724 kir     Kyrgyz
725 kmb     Kimbundu
726 kok     Konkani
727 kom     Komi
728 kon     Kongo
729 kor     Korean
730 kos     Kusaie
731 kpe     Kpelle
732 kro     Kru
733 kru     Kurukh
734 kua     Kuanyama
735 kum     Kumyk
736 kur     Kurdish
737 -kus    Kusaie
738 kut     Kutenai
739 lad     Ladino
740 lah     Lahnda
741 lam     Lamba
742 -lan    Occitan (post-1500)
743 lao     Lao
744 -lap    Sami
745 lat     Latin
746 lav     Latvian
747 lez     Lezgian
748 lim     Limburgish
749 lin     Lingala
750 lit     Lithuanian
751 lol     Mongo-Nkundu
752 loz     Lozi
753 ltz     Letzeburgesch
754 lua     Luba-Lulua
755 lub     Luba-Katanga
756 lug     Ganda
757 lui     Luiseño
758 lun     Lunda
759 luo     Luo (Kenya and Tanzania)
760 lus     Lushai
761 mac     Macedonian
762 mad     Madurese
763 mag     Magahi
764 mah     Marshallese
765 mai     Maithili
766 mak     Makasar
767 mal     Malayalam
768 man     Mandingo
769 mao     Maori
770 map     Austronesian (Other)
771 mar     Marathi
772 mas     Masai
773 -max    Manx
774 may     Malay
775 mdr     Mandar
776 men     Mende
777 mga     Irish, Middle (ca. 1100-1550)
778 mic     Micmac
779 min     Minangkabau
780 mis     Miscellaneous languages
781 mkh     Mon-Khmer (Other)
782 -mla    Malagasy
783 mlg     Malagasy
784 mlt     Maltese
785 mnc     Manchu
786 mni     Manipuri
787 mno     Manobo languages
788 moh     Mohawk
789 mol     Moldavian
790 mon     Mongolian
791 mos     Mooré
792 mul     Multiple languages
793 mun     Munda (Other)
794 mus     Creek
795 mwr     Marwari
796 myn     Mayan languages
797 nah     Nahuatl
798 nai     North American Indian (Other)
799 nap     Neapolitan Italian
800 nau     Nauru
801 nav     Navajo
802 nbl     Ndebele (South Africa)
803 nde     Ndebele (Zimbabwe)  
804 ndo     Ndonga
805 nds     Low German
806 nep     Nepali
807 new     Newari
808 nia     Nias
809 nic     Niger-Kordofanian (Other)
810 niu     Niuean
811 nno     Norwegian (Nynorsk)
812 nob     Norwegian (Bokmål)
813 nog     Nogai
814 non     Old Norse
815 nor     Norwegian
816 nso     Northern Sotho
817 nub     Nubian languages
818 nya     Nyanja
819 nym     Nyamwezi
820 nyn     Nyankole
821 nyo     Nyoro
822 nzi     Nzima
823 oci     Occitan (post-1500)
824 oji     Ojibwa
825 ori     Oriya
826 orm     Oromo
827 osa     Osage
828 oss     Ossetic
829 ota     Turkish, Ottoman
830 oto     Otomian languages
831 paa     Papuan (Other)
832 pag     Pangasinan
833 pal     Pahlavi
834 pam     Pampanga
835 pan     Panjabi
836 pap     Papiamento
837 pau     Palauan
838 peo     Old Persian (ca. 600-400 B.C.)
839 per     Persian
840 phi     Philippine (Other)
841 phn     Phoenician
842 pli     Pali
843 pol     Polish
844 pon     Ponape
845 por     Portuguese
846 pra     Prakrit languages
847 pro     Provençal (to 1500)
848 pus     Pushto
849 que     Quechua
850 raj     Rajasthani
851 rap     Rapanui
852 rar     Rarotongan
853 roa     Romance (Other)
854 roh     Raeto-Romance
855 rom     Romani
856 rum     Romanian
857 run     Rundi
858 rus     Russian
859 sad     Sandawe
860 sag     Sango (Ubangi Creole)
861 sah     Yakut
862 sai     South American Indian (Other)
863 sal     Salishan languages
864 sam     Samaritan Aramaic
865 san     Sanskrit
866 -sao    Samoan
867 sas     Sasak
868 sat     Santali
869 scc     Serbian
870 sco     Scots
871 scr     Croatian
872 sel     Selkup
873 sem     Semitic (Other)
874 sga     Irish, Old (to 1100)
875 sgn     Sign languages
876 shn     Shan
877 -sho    Shona
878 sid     Sidamo
879 sin     Sinhalese
880 sio     Siouan (Other)
881 sit     Sino-Tibetan (Other)
882 sla     Slavic (Other)
883 slo     Slovak
884 slv     Slovenian
885 sma     Southern Sami
886 sme     Northern Sami
887 smi     Sami
888 smj     Lule Sami
889 smn     Inari Sami
890 smo     Samoan
891 sms     Skolt Sami
892 sna     Shona
893 snd     Sindhi
894 -snh    Sinhalese
895 snk     Soninke
896 sog     Sogdian
897 som     Somali
898 son     Songhai
899 sot     Sotho
900 spa     Spanish
901 srd     Sardinian
902 srr     Serer
903 ssa     Nilo-Saharan (Other)
904 -sso    Sotho
905 ssw     Swazi
906 suk     Sukuma
907 sun     Sundanese
908 sus     Susu
909 sux     Sumerian
910 swa     Swahili
911 swe     Swedish
912 -swz    Swazi
913 syr     Syriac
914 -tag    Tagalog
915 tah     Tahitian
916 tai     Tai (Other)
917 -taj    Tajik
918 tam     Tamil
919 -tar    Tatar
920 tat     Tatar
921 tel     Telugu
922 tem     Temne
923 ter     Terena
924 tet     Tetum
925 tgk     Tajik
926 tgl     Tagalog
927 tha     Thai
928 tib     Tibetan
929 tig     Tigré
930 tir     Tigrinya
931 tiv     Tiv
932 tkl     Tokelauan
933 tli     Tlingit
934 tmh     Tamashek
935 tog     Tonga (Nyasa)
936 ton     Tongan
937 tpi     Tok Pisin
938 -tru    Truk
939 tsi     Tsimshian
940 tsn     Tswana
941 tso     Tsonga
942 -tsw    Tswana
943 tuk     Turkmen
944 tum     Tumbuka
945 tup     Tupi languages
946 tur     Turkish
947 tut     Altaic (Other)
948 tvl     Tuvaluan
949 twi     Twi
950 tyv     Tuvinian
951 udm     Udmurt
952 uga     Ugaritic
953 uig     Uighur
954 ukr     Ukrainian
955 umb     Umbundu
956 und     Undetermined
957 urd     Urdu
958 uzb     Uzbek
959 vai     Vai
960 ven     Venda
961 vie     Vietnamese
962 vol     Volapük
963 vot     Votic
964 wak     Wakashan languages
965 wal     Walamo
966 war     Waray
967 was     Washo
968 wel     Welsh
969 wen     Sorbian languages
970 wln     Walloon
971 wol     Wolof
972 xal     Kalmyk
973 xho     Xhosa
974 yao     Yao (Africa)
975 yap     Yapese
976 yid     Yiddish
977 yor     Yoruba
978 ypk     Yupik languages
979 zap     Zapotec
980 zen     Zenaga
981 zha     Zhuang
982 znd     Zande
983 zul     Zulu
984 zun     Zuni
985 \.
986
987 CREATE TABLE config.item_form_map (
988         code    TEXT    PRIMARY KEY,
989         value   TEXT    NOT NULL
990 );
991
992 COPY config.item_form_map FROM STDIN;
993 a       Microfilm
994 b       Microfiche
995 c       Microopaque
996 d       Large print
997 f       Braille
998 r       Regular print reproduction
999 s       Electronic
1000 \.
1001
1002 CREATE TABLE config.item_type_map (
1003         code    TEXT    PRIMARY KEY,
1004         value   TEXT    NOT NULL
1005 );
1006
1007 COPY config.item_type_map FROM STDIN;
1008 a       Language material
1009 t       Manuscript language material
1010 g       Projected medium
1011 k       Two-dimensional nonprojectable graphic
1012 r       Three-dimensional artifact or naturally occurring object
1013 o       Kit
1014 p       Mixed materials
1015 e       Cartographic material
1016 f       Manuscript cartographic material
1017 c       Notated music
1018 d       Manuscript notated music
1019 i       Nonmusical sound recording
1020 j       Musical sound recording
1021 m       Computer file
1022 \.
1023
1024 COMMIT;
1025