<field reporter:label="String Length" name="string_len" reporter:datatype="int"/>
<field reporter:label="Fixed Field" name="fixed_field" reporter:datatype="text"/>
<field reporter:label="Physical Characteristic" name="phys_char_sf" reporter:datatype="text"/>
+ <field reporter:label="Vocabulary URI" name="vocabulary" reporter:datatype="text"/>
<field reporter:label="Normalizers" name="normalizers" reporter:datatype="link" oils_persist:virtual="true"/>
</fields>
<links>
<field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
<field reporter:label="Search Label" name="search_label" reporter:datatype="text" oils_persist:i18n="true"/>
<field reporter:label="Is Simple Selector" name="is_simple" reporter:datatype="bool"/>
+ <field reporter:label="Concept URI" name="concept_uri" reporter:datatype="text"/>
<field reporter:label="Composite Definition" name="composite_def" oils_persist:virtual="true" reporter:datatype="link"/>
</fields>
<links>
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)
+ phys_char_sf INT REFERENCES config.marc21_physical_characteristic_subfield_map (id),
+
+-- Source of vocabulary terms for this record attribute;
+-- typically will be a URI referring to a SKOS vocabulary
+ vocabulary TEXT
);
CREATE TABLE config.record_attr_index_norm_map (
description TEXT,
opac_visible BOOL NOT NULL DEFAULT TRUE, -- For TPac selectors
search_label TEXT,
- is_simple BOOL NOT NULL DEFAULT FALSE
+ is_simple BOOL NOT NULL DEFAULT FALSE,
+ concept_uri TEXT -- URI expressing the SKOS concept that the
+ -- coded value represents
);
CREATE VIEW config.language_map AS SELECT code, value FROM config.coded_value_map WHERE ctype = 'item_lang';
--- /dev/null
+BEGIN;
+
+ALTER TABLE config.record_attr_definition
+ ADD COLUMN vocabulary TEXT;
+
+ALTER TABLE config.coded_value_map
+ ADD COLUMN concept_uri TEXT;
+
+COMMIT;