Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE config.record_attr_definition (
- name TEXT PRIMARY KEY,
- label TEXT NOT NULL, -- I18N
- description TEXT,
- FILTER BOOL NOT NULL DEFAULT TRUE, -- becomes QP filter if true
- sorter BOOL NOT NULL DEFAULT FALSE, -- becomes QP sort() axis if true
- -- For pre-extracted fields. Takes the first occurance, uses naive subfield ordering
- tag TEXT, -- LIKE format
- sf_list TEXT, -- pile-o-values, like 'abcd' for a and b and c and d
- -- This is used for both tag/sf and xpath entries
- joiner TEXT,
- -- For xpath-extracted attrs
- xpath TEXT,
- format TEXT REFERENCES config.xml_transform (name) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
- start_pos INT,
- string_len INT,
- -- For fixed fields
- fixed_field TEXT, -- should exist in config.marc21_ff_pos_map.fixed_field
- -- For phys-char fields
- phys_char_sf INT REFERENCES config.marc21_physical_characteristic_subfield_map (id)
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement