From 512178d08b5ceeaa3c30be086936ba7bcff76e47 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc kop@karlpinc.com" Date: Tue, 9 Sep 2025 23:15:32 +0000 Subject: [PATCH] Add SPECIES table --- db/schemas/codes/tables/Makefile | 1 + db/schemas/codes/tables/create/species.m4 | 29 +++++++++++++++ doc/src/code_tables.m4 | 44 +++++++++++++++++++++++ doc/src/epilog.inc.m4 | 4 +++ 4 files changed, 78 insertions(+) create mode 100644 db/schemas/codes/tables/create/species.m4 diff --git a/db/schemas/codes/tables/Makefile b/db/schemas/codes/tables/Makefile index 7629d04..2523c44 100644 --- a/db/schemas/codes/tables/Makefile +++ b/db/schemas/codes/tables/Makefile @@ -27,6 +27,7 @@ ORDER := certainties \ entrytypes \ people \ obs_periods \ + species \ studies ## diff --git a/db/schemas/codes/tables/create/species.m4 b/db/schemas/codes/tables/create/species.m4 new file mode 100644 index 0000000..ac693f1 --- /dev/null +++ b/db/schemas/codes/tables/create/species.m4 @@ -0,0 +1,29 @@ +dnl Copyright (C) 2025 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 +dnl + +support_table(`SPECIES', `Species', `TEXT', ` + emptytext_check(`Species') + uppercase_check(`Species')' +) diff --git a/doc/src/code_tables.m4 b/doc/src/code_tables.m4 index 3705ac8..577c399 100644 --- a/doc/src/code_tables.m4 +++ b/doc/src/code_tables.m4 @@ -488,6 +488,50 @@ existing data to be cleaned while preventing undesirable values from appearing in new data. +.. _SPECIES: + +SPECIES +------- + +.. |SPECIES_summary| replace:: + Contains one row for each species that might be recorded present, + whether recorded during a follow or otherwise. + + +|SPECIES_summary| + + +Special Values +`````````````` + +None. + + +Column Descriptions +``````````````````` + +.. _SPECIES.Species: + +Species +''''''' + +.. |SPECIES.Species_summary| replace:: + A textual code identifying a particular specie. + +|SPECIES.Species_summary| |emptytext| |keycol| |uppercase| + + +.. _SPECIES.Description: + +Description +''''''''''' + +.. |SPECIES.Description_summary| replace:: + A description of the code. + +|SPECIES.Description_summary| |emptytext| + + .. _STUDIES: STUDIES (Studies that follows are part of) diff --git a/doc/src/epilog.inc.m4 b/doc/src/epilog.inc.m4 index 2a64b52..8fbcc13 100644 --- a/doc/src/epilog.inc.m4 +++ b/doc/src/epilog.inc.m4 @@ -250,6 +250,10 @@ sdb_generated_rst()dnl .. |PEOPLE.Description| replace:: :ref:`Description ` .. |PEOPLE.Active| replace:: :ref:`Active ` +.. |SPECIES| replace:: :ref:`SPECIES ` +.. |SPECIES.Species| replace:: + :ref:`Species ` + .. |STUDIES| replace:: :ref:`STUDIES ` .. |STUDIES.Study| replace:: :ref:`Study ` -- 2.34.1