Schema authority

Table: bib_linking

Columns: 

field name : datatype -- parameters, contraints and notes
id : bigserial -- PRIMARY KEY,
bib : bigint -- NOT NULL, REFERENCES biblio.record_entry.
authority : bigint -- NOT NULL, REFERENCES authority.record_entry.

Indexes: 

authority_bl_bib_idx : bib

Table: full_rec

Columns: 

field name : datatype -- parameters, contraints and notes
id : bigserial -- PRIMARY KEY,
record : bigint -- NOT NULL,
tag : character(3) -- NOT NULL,
ind1 : text --
ind2 : text --
subfield : text --
value : text -- NOT NULL,
index_vector : tsvector -- NOT NULL,

Indexes: 

authority_full_rec_index_vector_idx : index_vector
authority_full_rec_record_idx : record
authority_full_rec_tag_part_idx : "substring"((tag)::text, 2)
authority_full_rec_tag_subfield_idx : tag, subfield
authority_full_rec_value_tpo_index : value text_pattern_ops

Table: rec_descriptor

Columns: 

field name : datatype -- parameters, contraints and notes
id : bigserial -- PRIMARY KEY,
record : bigint --
record_status : text --
char_encoding : text --

Indexes: 

authority_rec_descriptor_record_idx : record

Table: record_entry

Columns: 

field name : datatype -- parameters, contraints and notes
id : bigserial -- PRIMARY KEY,
creator : integer -- NOT NULL, DEFAULT 1,
editor : integer -- NOT NULL, DEFAULT 1,
create_date : timestamp with time zone -- NOT NULL, DEFAULT now(),
edit_date : timestamp with time zone -- NOT NULL, DEFAULT now(),
active : boolean -- NOT NULL, DEFAULT true,
deleted : boolean -- NOT NULL, DEFAULT false,
source : integer --
marc : text -- NOT NULL,
last_xact_id : text -- NOT NULL,
owner : integer --

Indexes: 

authority_record_entry_creator_idx : creator
authority_record_entry_editor_idx : editor
by_heading_and_thesaurus : authority.normalize_heading(marc)) WHERE ((deleted IS FALSE) OR (deleted = false)

Tables referencing authority.bib_linking via Foreign Key Constraints: 

authority.bib_linkingauthority.record_note
vandelay.authority_matchvandelay.queued_authority_record

Table: record_note

Columns: 

field name : datatype -- parameters, contraints and notes
id : bigserial -- PRIMARY KEY,
record : bigint -- NOT NULL, REFERENCES authority.record_entry.
value : text -- NOT NULL,
creator : integer -- NOT NULL, DEFAULT 1,
editor : integer -- NOT NULL, DEFAULT 1,
create_date : timestamp with time zone -- NOT NULL, DEFAULT now(),
edit_date : timestamp with time zone -- NOT NULL, DEFAULT now(),

Indexes: 

authority_record_note_creator_idx : creator
authority_record_note_editor_idx : editor
authority_record_note_record_idx : record

View: tracing_links

Columns: 

field name : datatype -- parameters, contraints and notes
record : bigint --
main_id : bigint --
main_tag : character(3) --
main_value : text --
relationship : text --
use_restriction : text --
deprecation : text --
display_restriction : text --
link_id : bigint --
link_tag : character(3) --
link_value : text --

flatten_marc(rid bigint)

Function Properties
Language: PLPGSQL
Return Type: SET OF full_rec

flatten_marc(text)

Function Properties
Language: PLPERLU
Return Type: SET OF full_rec

generate_overlay_template(bigint)

Function Properties
Language: SQL
Return Type: text

generate_overlay_template(text)

Function Properties
Language: SQL
Return Type: text

generate_overlay_template(text, bigint)

Function Properties
Language: PLPERLU
Return Type: text

indexing_ingest_or_delete()

Function Properties
Language: PLPGSQL
Return Type: trigger

merge_records(source_record bigint, target_record bigint)

Function Properties
Language: PLPGSQL
Return Type: integer

normalize_heading(text)

Extract the authority heading, thesaurus, and NACO-normalized values from an authority record. The primary purpose is to build a unique index to defend against duplicated authority records from the same thesaurus.

Function Properties
Language: PLPERLU
Return Type: text

propagate_changes(aid bigint)

Function Properties
Language: SQL
Return Type: SET OF bigint

propagate_changes(bid bigint, aid bigint)

Function Properties
Language: SQL
Return Type: bigint

reingest_authority_full_rec(auth_id bigint)

Function Properties
Language: PLPGSQL
Return Type: void

reingest_authority_rec_descriptor(auth_id bigint)

Function Properties
Language: PLPGSQL
Return Type: void