@ca-plant-list/ca-plant-list 0.4.33 → 0.4.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/glossary/peduncle.md +1 -1
- package/data/inatobsphotos.csv +499 -75
- package/data/inattaxonphotos.csv +728 -242
- package/data/synonyms.csv +86 -0
- package/data/taxa.csv +1985 -1905
- package/data/text/Allium-obtusum-var-obtusum.md +1 -0
- package/data/text/Allium-validum.md +1 -0
- package/data/text/Amelanchier-alnifolia-var-pumila.md +1 -0
- package/data/text/Amelanchier-utahensis.md +1 -0
- package/data/text/Angelica-breweri.md +1 -0
- package/data/text/Angelica-capitellata.md +1 -0
- package/data/text/Castilleja-applegatei-subsp-pallida.md +1 -0
- package/data/text/Castilleja-miniata-subsp-miniata.md +1 -0
- package/data/text/Ceanothus-cordulatus.md +1 -0
- package/data/text/Ceanothus-velutinus.md +1 -0
- package/data/text/Collinsia-parviflora.md +1 -0
- package/data/text/Collinsia-torreyi.md +1 -0
- package/data/text/Ericameria-nauseosa-var-speciosa.md +1 -0
- package/data/text/Ericameria-nauseosa.md +1 -0
- package/data/text/Erigeron-algidus.md +1 -0
- package/data/text/Erigeron-coulteri.md +1 -0
- package/data/text/Hackelia-micrantha.md +1 -0
- package/data/text/Hieracium-albiflorum.md +1 -0
- package/data/text/Hieracium-horridum.md +1 -0
- package/data/text/Hieracium-triste.md +1 -0
- package/data/text/Linanthus-pungens-subsp-pulchriflorus.md +1 -0
- package/data/text/Lupinus-argenteus-var-meionanthus.md +1 -0
- package/data/text/Lupinus-latifolius-var-latifolius.md +1 -1
- package/data/text/Lupinus-lepidus-var-lobbii.md +1 -0
- package/data/text/Lupinus-polyphyllus-var-burkei.md +1 -0
- package/data/text/Pedicularis-attollens.md +1 -0
- package/data/text/Pedicularis-groenlandica.md +1 -0
- package/data/text/Penstemon-deustus-var-deustus.md +1 -0
- package/data/text/Penstemon-deustus-var-pedicellatus.md +1 -0
- package/data/text/Penstemon-heterodoxus-var-heterodoxus.md +1 -0
- package/data/text/Penstemon-rydbergii-var-oreocharis.md +1 -0
- package/data/text/Phlox-diffusa.md +1 -0
- package/data/text/Potentilla-flabellifolia.md +1 -0
- package/data/text/Potentilla-gracilis-var-fastigiata.md +1 -0
- package/data/text/Primula-jeffreyi.md +1 -1
- package/data/text/Primula-tetrandra.md +1 -1
- package/data/text/Pseudognaphalium-beneolens.md +1 -0
- package/data/text/Pseudognaphalium-californicum.md +1 -0
- package/data/text/Pseudognaphalium-ramosissimum.md +1 -0
- package/data/text/Pyrola-asarifolia-subsp-asarifolia.md +1 -0
- package/data/text/Pyrola-dentata.md +1 -0
- package/data/text/Pyrola-picta.md +1 -0
- package/data/text/Salix-lemmonii.md +1 -0
- package/data/text/Salix-scouleriana.md +1 -0
- package/data/text/Senecio-integerrimus-var-exaltatus.md +1 -0
- package/data/text/Senecio-integerrimus-var-major.md +1 -0
- package/data/text/Senecio-triangularis.md +1 -0
- package/data/text/Sorbus-californica.md +1 -0
- package/data/text/Sorbus-scopulina.md +1 -0
- package/ebook/css/main.css +20 -13
- package/lib/csv.js +0 -2
- package/lib/ebook/ebook.js +178 -178
- package/lib/ebook/pages/taxonpage.js +19 -9
- package/lib/ebook/plantbook.js +17 -3
- package/lib/externalsites.js +12 -0
- package/lib/htmltaxon.js +13 -2
- package/lib/index.d.ts +3 -0
- package/lib/markdown.js +1 -1
- package/lib/program.js +0 -26
- package/lib/sitegenerator.js +4 -4
- package/lib/taxonomy/taxa.js +26 -5
- package/lib/taxonomy/taxon.js +12 -2
- package/lib/tools/calflora.js +0 -2
- package/lib/tools/calipc.js +111 -0
- package/lib/tools/taxacsv.js +5 -4
- package/lib/utils/eleventyGenerator.js +2 -0
- package/lib/utils/inat-tools.js +8 -4
- package/lib/web/pageTaxon.js +1 -0
- package/package.json +6 -6
- package/scripts/build-ebook.js +21 -6
- package/scripts/build-site.js +1 -1
- package/scripts/cpl-photos.js +1 -1
- package/scripts/cpl-tools.js +15 -1
- package/scripts/inattaxonphotos.js +1 -1
package/scripts/build-site.js
CHANGED
|
@@ -16,7 +16,7 @@ async function build(options) {
|
|
|
16
16
|
Files.rmDir(outputDir);
|
|
17
17
|
const errorLog = new ErrorLog(outputDir + "/errors.tsv");
|
|
18
18
|
const taxa = new Taxa(
|
|
19
|
-
|
|
19
|
+
Taxa.getIncludeList(options.datadir),
|
|
20
20
|
errorLog,
|
|
21
21
|
options.showFlowerErrors,
|
|
22
22
|
);
|
package/scripts/cpl-photos.js
CHANGED
|
@@ -506,7 +506,7 @@ async function getTaxa(options) {
|
|
|
506
506
|
taxa = await taxaLoaderClass.TaxaLoader.loadTaxa(options, errorLog);
|
|
507
507
|
} else {
|
|
508
508
|
taxa = new Taxa(
|
|
509
|
-
|
|
509
|
+
Taxa.getIncludeList(options.datadir),
|
|
510
510
|
errorLog,
|
|
511
511
|
options.showFlowerErrors,
|
|
512
512
|
);
|
package/scripts/cpl-tools.js
CHANGED
|
@@ -15,9 +15,11 @@ import { SupplementalText } from "../lib/tools/supplementaltext.js";
|
|
|
15
15
|
import { JepsonFamilies } from "../lib/tools/jepsonfamilies.js";
|
|
16
16
|
import { CCH2 } from "../lib/tools/cch2.js";
|
|
17
17
|
import { FNA } from "../lib/tools/fna.js";
|
|
18
|
+
import { CalIPC } from "../lib/tools/calipc.js";
|
|
18
19
|
|
|
19
20
|
const TOOLS = {
|
|
20
21
|
CALFLORA: "calflora",
|
|
22
|
+
CAL_IPC: "calipc",
|
|
21
23
|
CALSCAPE: "calscape",
|
|
22
24
|
CCH2: "cch",
|
|
23
25
|
FNA: "fna",
|
|
@@ -30,6 +32,7 @@ const TOOLS = {
|
|
|
30
32
|
|
|
31
33
|
const ALL_TOOLS = [
|
|
32
34
|
TOOLS.CALFLORA,
|
|
35
|
+
TOOLS.CAL_IPC,
|
|
33
36
|
TOOLS.CALSCAPE,
|
|
34
37
|
TOOLS.CCH2,
|
|
35
38
|
TOOLS.FNA,
|
|
@@ -76,6 +79,16 @@ async function build(program, options) {
|
|
|
76
79
|
!!options.update,
|
|
77
80
|
);
|
|
78
81
|
break;
|
|
82
|
+
case TOOLS.CAL_IPC:
|
|
83
|
+
await CalIPC.analyze(
|
|
84
|
+
TOOLS_DATA_DIR,
|
|
85
|
+
options.datadir,
|
|
86
|
+
taxa,
|
|
87
|
+
exceptions,
|
|
88
|
+
errorLog,
|
|
89
|
+
!!options.update,
|
|
90
|
+
);
|
|
91
|
+
break;
|
|
79
92
|
case TOOLS.CALSCAPE:
|
|
80
93
|
await Calscape.analyze(
|
|
81
94
|
TOOLS_DATA_DIR,
|
|
@@ -167,8 +180,9 @@ program.addHelpText(
|
|
|
167
180
|
"after",
|
|
168
181
|
`
|
|
169
182
|
Tools:
|
|
170
|
-
'all' runs the 'calflora', '${TOOLS.CALSCAPE}', '${TOOLS.CCH2}, '${TOOLS.FNA}, 'inat', 'jepson-eflora', 'rpi', and 'text' tools.
|
|
183
|
+
'all' runs the 'calflora', '${TOOLS.CAL_IPC}', '${TOOLS.CALSCAPE}', '${TOOLS.CCH2}, '${TOOLS.FNA}, 'inat', 'jepson-eflora', 'rpi', and 'text' tools.
|
|
171
184
|
'${TOOLS.CALFLORA}' retrieves data from Calflora and compares with local data.
|
|
185
|
+
'${TOOLS.CAL_IPC}' retrieves data from Cal-IPC and compares with local data.
|
|
172
186
|
'${TOOLS.CALSCAPE}' retrieves data from Calscape and compares with local data.
|
|
173
187
|
'${TOOLS.CCH2}' retrieves data from CCH2 and compares with local data.
|
|
174
188
|
'${TOOLS.FNA}' retrieves data from Flora of North America and compares with local data.
|
|
@@ -44,7 +44,7 @@ async function fetchInatTaxa(taxa) {
|
|
|
44
44
|
async function getTaxonPhotos(options) {
|
|
45
45
|
const errorLog = new ErrorLog(options.outputdir + "/errors.tsv");
|
|
46
46
|
const taxa = new Taxa(
|
|
47
|
-
|
|
47
|
+
Taxa.getIncludeList(options.datadir),
|
|
48
48
|
errorLog,
|
|
49
49
|
false,
|
|
50
50
|
);
|