From 1c142d4bc66c54e37dc32660c5ec798c55096fc6 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc kop@karlpinc.com" Date: Mon, 8 Jun 2026 16:30:35 +0000 Subject: [PATCH] Create LOCATION_ORIGINS support table --- db/schemas/codes/tables/Makefile | 1 + .../codes/tables/create/location_origins.m4 | 28 +++++++++++++ doc/src/code_tables.m4 | 42 +++++++++++++++++++ doc/src/epilog.inc.m4 | 5 +++ 4 files changed, 76 insertions(+) create mode 100644 db/schemas/codes/tables/create/location_origins.m4 diff --git a/db/schemas/codes/tables/Makefile b/db/schemas/codes/tables/Makefile index 42e9909..eb06cbf 100644 --- a/db/schemas/codes/tables/Makefile +++ b/db/schemas/codes/tables/Makefile @@ -33,6 +33,7 @@ ORDER := agg_severities \ food_names \ food_parts \ le_certainties \ + location_origins \ parities \ people \ obs_periods \ diff --git a/db/schemas/codes/tables/create/location_origins.m4 b/db/schemas/codes/tables/create/location_origins.m4 new file mode 100644 index 0000000..b3193d0 --- /dev/null +++ b/db/schemas/codes/tables/create/location_origins.m4 @@ -0,0 +1,28 @@ +dnl Copyright (C) 2026 The Meme Factory, Inc., http://www.karlpinc.com/ +dnl +dnl This program is free software: you can redistribute it and/or modify +dnl it under the terms of the GNU Affero General Public License as published +dnl by the Free Software Foundation, either version 3 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU Affero General Public License for more details. +dnl +dnl You should have received a copy of the GNU Affero General Public License +dnl along with this program. If not, see . +dnl +dnl Karl O. Pinc +dnl +dnl +dnl m4 includes +include(`copyright.m4')dnl +include(`constants.m4')dnl +include(`tablemacros.m4')dnl +include(`grants.m4')dnl + +support_table(`LOCATION_ORIGINS', `Code', `TEXT', ` + emptytext_check(`Code') + uppercase_check(`Code')' +) diff --git a/doc/src/code_tables.m4 b/doc/src/code_tables.m4 index 10687f6..841332b 100644 --- a/doc/src/code_tables.m4 +++ b/doc/src/code_tables.m4 @@ -730,6 +730,48 @@ Description |FOOD_PARTS.Description_summary| |uniquenocase| |emptytext| |notnull| +.. _LOCATION_ORIGINS: + +LOCATION_ORIGINS +---------------- + +.. |LOCATION_ORIGINS_summary| replace:: + Contains one row for each source of spatial location information. + +|LOCATION_ORIGINS_summary| + + +Special Values +`````````````` + +None. + + +Column Descriptions +``````````````````` + +.. _LOCATION_ORIGINS.Code: + +Code +'''' + +.. |LOCATION_ORIGINS.Code_summary| replace:: + A code identifying a source of data for spatial location information. + +|LOCATION_ORIGINS.Code_summary| |caseuniquekeycol| |uppercase| + + +.. _LOCATION_ORIGINS.Description: + +Description +''''''''''' + +.. |LOCATION_ORIGINS.Description_summary| replace:: + A description of the source of spatial data. + +|LOCATION_ORIGINS.Description_summary| |emptytext| |notnull| + + .. _OBS_PERIODS: OBS_PERIODS (Obsevervation Periods) diff --git a/doc/src/epilog.inc.m4 b/doc/src/epilog.inc.m4 index f19c2cd..0156e3d 100644 --- a/doc/src/epilog.inc.m4 +++ b/doc/src/epilog.inc.m4 @@ -427,6 +427,11 @@ sdb_generated_rst()dnl .. |HUMANS.NonResearchers| replace:: :ref:`NonResearchers ` +.. |LOCATION_ORIGINS| replace:: + :ref:`LOCATION_ORIGINS ` +.. |LOCATION_ORIGINS.Code| replace:: + :ref:`ID ` + .. |NON_BREC_SIGHTING_SOURCES| replace:: :ref:`NON_BREC_SIGHTING_SOURCES ` .. |NON_BREC_SIGHTING_SOURCES.ID| replace:: -- 2.34.1