reporter.old_super_simple_record (view)
|
This is a database view, not a base table. It has no triggers, indexes, or FK constraints of its own. Querying this view may be more efficient than joining the underlying tables directly. |
Columns
| Column | Type | Nullable | Notes |
|---|---|---|---|
id |
|
Yes |
|
fingerprint |
|
Yes |
|
quality |
|
Yes |
|
tcn_source |
|
Yes |
|
tcn_value |
|
Yes |
|
title |
|
Yes |
|
author |
|
Yes |
|
publisher |
|
Yes |
|
pubdate |
|
Yes |
|
isbn |
|
Yes |
|
issn |
|
Yes |
View Definition
SELECT r.id,
r.fingerprint,
r.quality,
r.tcn_source,
r.tcn_value,
oils_json_to_text(d.title) AS title,
oils_json_to_text(d.author) AS author,
oils_json_to_text(d.publisher) AS publisher,
oils_json_to_text(d.pubdate) AS pubdate,
CASE
WHEN d.isbn = 'null'::text THEN NULL::text[]
ELSE ( SELECT ARRAY( SELECT json_array_elements_text(d.isbn::json) AS json_array_elements_text) AS "array")
END AS isbn,
CASE
WHEN d.issn = 'null'::text THEN NULL::text[]
ELSE ( SELECT ARRAY( SELECT json_array_elements_text(d.issn::json) AS json_array_elements_text) AS "array")
END AS issn
FROM biblio.record_entry r
JOIN metabib.wide_display_entry d ON r.id = d.source;