@ca-plant-list/ca-plant-list 0.3.0 → 0.3.1
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/exceptions.json +83 -68
- package/data/synonyms.csv +4 -2
- package/data/taxa.csv +9 -8
- package/lib/basepagerenderer.js +0 -1
- package/lib/commandandtaxaprocessor.js +3 -0
- package/lib/index.d.ts +1 -0
- package/lib/taxa.js +11 -3
- package/lib/taxaprocessor.js +1 -1
- package/package.json +1 -1
package/data/exceptions.json
CHANGED
@@ -1,73 +1,88 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
},
|
31
|
-
"jepson": {
|
32
|
-
"allowsynonym": true
|
33
|
-
}
|
34
|
-
},
|
35
|
-
"Heterotheca oregona var. rudis": {
|
36
|
-
"inat": {
|
37
|
-
"notintaxondata": true
|
38
|
-
}
|
39
|
-
},
|
40
|
-
"Horkelia californica var. frondosa": {
|
41
|
-
"inat": {
|
42
|
-
"notintaxondata": true
|
43
|
-
}
|
44
|
-
},
|
45
|
-
"Downingia ornatissima var. mirabilis": {
|
46
|
-
"inat": {
|
47
|
-
"notintaxondata": true
|
48
|
-
}
|
49
|
-
},
|
50
|
-
"Myosurus minimus subsp. apus": {
|
51
|
-
"jepson": {
|
52
|
-
"notineflora": "in CNPS Rare Plant Inventory"
|
53
|
-
}
|
2
|
+
"Campanula exigua": {
|
3
|
+
"rpi": {
|
4
|
+
"translation-to-rpi": "Ravenella exigua"
|
5
|
+
}
|
6
|
+
},
|
7
|
+
"Campanula sharsmithiae": {
|
8
|
+
"rpi": {
|
9
|
+
"translation-to-rpi": "Ravenella sharsmithiae"
|
10
|
+
}
|
11
|
+
},
|
12
|
+
"Castilleja ambigua subsp. ambigua": {
|
13
|
+
"rpi": {
|
14
|
+
"translation-to-rpi": "Castilleja ambigua var. ambigua"
|
15
|
+
}
|
16
|
+
},
|
17
|
+
"Castilleja ambigua var. ambigua": {
|
18
|
+
"rpi": {
|
19
|
+
"translation": "Castilleja ambigua subsp. ambigua"
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"Downingia ornatissima var. mirabilis": {
|
23
|
+
"inat": {
|
24
|
+
"notintaxondata": true
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"Erysimum capitatum var. angustatum": {
|
28
|
+
"calflora": {
|
29
|
+
"badjepsonid": true
|
54
30
|
},
|
55
|
-
"
|
56
|
-
|
57
|
-
|
58
|
-
|
31
|
+
"jepson": {
|
32
|
+
"allowsynonym": true
|
33
|
+
}
|
34
|
+
},
|
35
|
+
"Heterotheca oregona var. rudis": {
|
36
|
+
"inat": {
|
37
|
+
"notintaxondata": true
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"Horkelia californica var. frondosa": {
|
41
|
+
"inat": {
|
42
|
+
"notintaxondata": true
|
43
|
+
}
|
44
|
+
},
|
45
|
+
"Lupinus littoralis var. variicolor": {
|
46
|
+
"inat": {
|
47
|
+
"notintaxondata": true
|
48
|
+
}
|
49
|
+
},
|
50
|
+
"Malacothamnus hallii": {
|
51
|
+
"comment": "in CNPS Rare Plant Inventory",
|
52
|
+
"calflora": {
|
53
|
+
"notintaxondata": true
|
59
54
|
},
|
60
|
-
"
|
61
|
-
|
62
|
-
|
63
|
-
|
55
|
+
"jepson": {
|
56
|
+
"allowsynonym": true
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"Malacothamnus arcuatus var. elmeri": {
|
60
|
+
"calflora": {
|
61
|
+
"badjepsonid": true
|
62
|
+
}
|
63
|
+
},
|
64
|
+
"Myosurus minimus subsp. apus": {
|
65
|
+
"comment": "in CNPS Rare Plant Inventory",
|
66
|
+
"jepson": {
|
67
|
+
"notineflora": true
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"Ravenella exigua": {
|
71
|
+
"rpi": {
|
72
|
+
"translation": "Campanula exigua"
|
73
|
+
}
|
74
|
+
},
|
75
|
+
"Ravenella sharsmithiae": {
|
76
|
+
"rpi": {
|
77
|
+
"translation": "Campanula sharsmithiae"
|
78
|
+
}
|
79
|
+
},
|
80
|
+
"Streptanthus albidus subsp. peramoenus": {
|
81
|
+
"calflora": {
|
82
|
+
"notintaxondata": true
|
64
83
|
},
|
65
|
-
"
|
66
|
-
|
67
|
-
"notintaxondata": true
|
68
|
-
},
|
69
|
-
"jepson": {
|
70
|
-
"allowsynonym": true
|
71
|
-
}
|
84
|
+
"jepson": {
|
85
|
+
"allowsynonym": true
|
72
86
|
}
|
73
|
-
}
|
87
|
+
}
|
88
|
+
}
|
package/data/synonyms.csv
CHANGED
@@ -25,7 +25,7 @@ Achnatherum lemmonii subsp. lemmonii,Stipa lemmonii var. lemmonii
|
|
25
25
|
Acmispon strigosus var. hirtellus,Acmispon strigosus
|
26
26
|
Acroptilon repens,Rhaponticum repens
|
27
27
|
Actaea rubra subsp. arguta,Actaea rubra
|
28
|
-
Adelinia
|
28
|
+
Adelinia grandis,Adelinia grandis,INAT
|
29
29
|
Adiantum boreale,Adiantum aleuticum
|
30
30
|
Adiantum pedatum subsp. calderi,Adiantum aleuticum
|
31
31
|
Adiantum pedatum var. aleuticum,Adiantum aleuticum
|
@@ -832,6 +832,8 @@ Heracleum lanatum,Heracleum maximum
|
|
832
832
|
Herniaria cinerea,Herniaria hirsuta var. cinerea,INAT
|
833
833
|
Herniaria hirsuta subsp. cinerea,Herniaria hirsuta var. cinerea
|
834
834
|
Herpestris pilosa,Mimetanthe pilosa
|
835
|
+
Hesperocyparis macrocarpa,Hesperocyparis macrocarpa,INAT
|
836
|
+
Hesperocyparis sargentii,Hesperocyparis sargentii,INAT
|
835
837
|
Hesperomecon filiformis,Hesperomecon linearis
|
836
838
|
Hesperoscordum hyacinthinum,Triteleia hyacinthina
|
837
839
|
Hesperoscordum lacteum,Triteleia hyacinthina
|
@@ -1121,6 +1123,7 @@ Medicago polymorpha var. brevispina,Medicago polymorpha
|
|
1121
1123
|
Medicago sativa subsp. falcata,Medicago sativa
|
1122
1124
|
Medicago sativa subsp. sativa,Medicago sativa
|
1123
1125
|
Mentha arvensis var. canadensis,Mentha canadensis
|
1126
|
+
Mentha arvensis var. villosa,Mentha canadensis
|
1124
1127
|
Mentha citrata,Mentha aquatica
|
1125
1128
|
Mentzelia dispersa var. compacta,Mentzelia dispersa
|
1126
1129
|
Mentzelia dispersa var. dispersa,Mentzelia dispersa
|
@@ -1265,7 +1268,6 @@ Myosurus minimus subsp. major,Myosurus minimus
|
|
1265
1268
|
Myosurus minimus var. filiformis,Myosurus minimus
|
1266
1269
|
Myosurus minimus var. major,Myosurus minimus
|
1267
1270
|
Myosurus minimus var. sessiliflorus,Myosurus sessilis
|
1268
|
-
Myosurus minimus,Myosurus minimus subsp. minimus,INAT
|
1269
1271
|
Myrica californica,Morella californica
|
1270
1272
|
Myriophyllum brasiliense,Myriophyllum aquaticum
|
1271
1273
|
Myriophyllum exalbescens,Myriophyllum sibiricum
|
package/data/taxa.csv
CHANGED
@@ -27,7 +27,7 @@ Acmispon parviflorus,least trefoil,N,91717,11299,57048
|
|
27
27
|
Acmispon strigosus,,N,91722,11305,58152
|
28
28
|
Acmispon wrangelianus,common trefoil,N,82483,11306,57050
|
29
29
|
Actaea rubra,baneberry,N,11894,93,49870
|
30
|
-
Adelinia grandis,hound's tongue,N,101954,14544,
|
30
|
+
Adelinia grandis,hound's tongue,N,101954,14544,1520640,blue
|
31
31
|
Adenocaulon bicolor,American trailplant,N,721,94,56854
|
32
32
|
Adenostoma fasciculatum,chamise,N,11939,97,47146
|
33
33
|
Adiantum aleuticum,five-finger fern,N,11945,100,52667
|
@@ -201,7 +201,7 @@ Balsamorhiza deltoidea,,N,1634,1047,70383
|
|
201
201
|
Balsamorhiza macrolepis,,N,1639,1051,69665,,,,350,1B.2,,,S2,G2
|
202
202
|
Barbarea orthoceras,winter cress,N,15481,1057,52976
|
203
203
|
Bassia hyssopifolia,,X,15511,1060,58125
|
204
|
-
Bellardia trixago var. trixago,,X,8635,
|
204
|
+
Bellardia trixago var. trixago,,X,8635,14706,1115038
|
205
205
|
Bellis perennis,English daisy,X,1652,1065,55563
|
206
206
|
Berberis aquifolium var. aquifolium,,N,71483,1068,126887
|
207
207
|
Berberis aquifolium var. dictyota,,N,76967,1069,775436
|
@@ -846,8 +846,8 @@ Hesperevax acaulis var. ambusticola,fire evax,N,59934,4108,80930
|
|
846
846
|
Hesperevax caulescens,hogwallow starfish,N,28021,4110,60135,,,,1931,4.2,,,S3,G3
|
847
847
|
Hesperevax sparsiflora var. sparsiflora,,N,59937,4113,61172
|
848
848
|
Hesperocnide tenella,black haired nettle,N,28033,4118,59036
|
849
|
-
Hesperocyparis macrocarpa,Monterey cypress,N,89298,11190,
|
850
|
-
Hesperocyparis sargentii,Sargent cypress,N,89302,10803,
|
849
|
+
Hesperocyparis macrocarpa,Monterey cypress,N,89298,11190,77378,,,,536,1B.2,,,S1,G1
|
850
|
+
Hesperocyparis sargentii,Sargent cypress,N,89302,10803,77381
|
851
851
|
Hesperolinon breweri,Brewer's dwarf flax,N,28038,4121,77385,,,,404,1B.2,,,S2,G2
|
852
852
|
Hesperolinon californicum,California dwarf flax,N,28039,4122,77386
|
853
853
|
Hesperolinon clevelandii,,N,28040,4123,77387
|
@@ -1103,8 +1103,9 @@ Madia radiata,showy madia,N,4053,5296,77924,,,,1054,1B.1,,,S3,G3
|
|
1103
1103
|
Madia sativa,coast tarweed,N,4055,5298,53143,yellow
|
1104
1104
|
Maianthemum racemosum,false Solomon's seal,N,32495,10096,51062
|
1105
1105
|
Maianthemum stellatum,,N,32497,9629,53268
|
1106
|
-
Malacothamnus fremontii,white-coat mallow,N,32524,5312,70397
|
1107
1106
|
Malacothamnus arcuatus var. elmeri,,N,108345,14681,1497404
|
1107
|
+
Malacothamnus fremontii,white-coat mallow,N,32524,5312,70397
|
1108
|
+
Malacothamnus hallii,,N,108345,14681,1497404,,,,1065,1B.2,,,S2,G2
|
1108
1109
|
Malacothrix californica,,N,4059,5325,58026
|
1109
1110
|
Malacothrix clevelandii,Cleveland's malacothrix,N,4060,5326,58841
|
1110
1111
|
Malacothrix coulteri,snake's-head,N,4061,5327,58027
|
@@ -1145,7 +1146,7 @@ Mentha spicata,spearmint,X,33209,10111,62652
|
|
1145
1146
|
Mentha suaveolens,pineapple mint,X,33212,5417,77993
|
1146
1147
|
Mentzelia affinis,,N,33219,5418,58194
|
1147
1148
|
Mentzelia dispersa,,N,33236,5423,58196
|
1148
|
-
Mentzelia laevicaulis var. laevicaulis,blazingstar,N,61864,
|
1149
|
+
Mentzelia laevicaulis var. laevicaulis,blazingstar,N,61864,14741,241687
|
1149
1150
|
Mentzelia lindleyi,,N,33255,5432,53923
|
1150
1151
|
Mentzelia micrantha,,N,33259,5433,58933
|
1151
1152
|
Mentzelia pectinata,,N,33274,5439,58198
|
@@ -1377,7 +1378,7 @@ Pogogyne douglasii,,N,38936,6704,63943
|
|
1377
1378
|
Pogogyne serpylloides,,N,38939,6708,57118
|
1378
1379
|
Pogogyne zizyphoroides,,N,78298,6709,60209
|
1379
1380
|
Polemonium carneum,royal sky pilot,N,38971,6712,78665,,,,3345,2B.2,,,S2,G3G4
|
1380
|
-
Polycarpon tetraphyllum subsp. tetraphyllum,four-leaved allseed,X,80560,
|
1381
|
+
Polycarpon tetraphyllum subsp. tetraphyllum,four-leaved allseed,X,80560,14756,81277
|
1381
1382
|
Polygonum argyrocoleon,persian knotweed,X,39158,6738,78676
|
1382
1383
|
Polygonum aviculare subsp. aviculare,,X,80990,10667,80151
|
1383
1384
|
Polygonum aviculare subsp. depressum,,X,80993,11034,63967
|
@@ -1825,7 +1826,7 @@ Woodwardia fimbriata,giant chain fern,N,48619,8355,52685
|
|
1825
1826
|
Wyethia angustifolia,narrowleaf mule-ears,N,5572,8356,56987,yellow
|
1826
1827
|
Wyethia glabra,mules ears,N,5578,8359,56988,yellow
|
1827
1828
|
Wyethia helenioides,woolly mules ears,N,5579,8360,50799,yellow
|
1828
|
-
Xanthium orientale,cocklebur,N,5618,
|
1829
|
+
Xanthium orientale,cocklebur,N,5618,14779,506262
|
1829
1830
|
Xanthium spinosum,spiny cocklebur,X,5590,8366,58045
|
1830
1831
|
Yabea microcarpa,California hedge parsley,N,48745,8373,56847
|
1831
1832
|
Zannichellia palustris,horned-pondweed,N,48827,8379,79546
|
package/lib/basepagerenderer.js
CHANGED
@@ -12,7 +12,6 @@ class BasePageRenderer {
|
|
12
12
|
const siteGenerator = new Jekyll( outputDir );
|
13
13
|
|
14
14
|
// Copy static files
|
15
|
-
Files.rmDir( outputDir );
|
16
15
|
// First copy default Jekyll files from package.
|
17
16
|
Files.copyDir( Config.getPackageDir() + "/jekyll", outputDir );
|
18
17
|
// Then copy Jekyll files from current dir (which may override default files).
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { CommandProcessor } from "./commandprocessor.js";
|
2
|
+
import { Files } from "./files.js";
|
2
3
|
import { TaxaProcessor } from "./taxaprocessor.js";
|
3
4
|
|
4
5
|
class CommandAndTaxaProcessor extends CommandProcessor {
|
@@ -14,6 +15,8 @@ class CommandAndTaxaProcessor extends CommandProcessor {
|
|
14
15
|
if ( this.helpShown() ) {
|
15
16
|
return;
|
16
17
|
}
|
18
|
+
Files.rmDir( this.getOptions().outputdir );
|
19
|
+
|
17
20
|
await this.#taxaProcessor.process( commandRunner );
|
18
21
|
}
|
19
22
|
|
package/lib/index.d.ts
CHANGED
package/lib/taxa.js
CHANGED
@@ -75,6 +75,7 @@ class Taxa {
|
|
75
75
|
#taxa = {};
|
76
76
|
#flower_colors = {};
|
77
77
|
#sortedTaxa;
|
78
|
+
#synonyms = new Set();
|
78
79
|
|
79
80
|
constructor( inclusionList, errorLog, showFlowerErrors, taxaMeta = {}, taxonClass = Taxon, extraTaxa = [], extraSynonyms = [] ) {
|
80
81
|
|
@@ -153,18 +154,25 @@ class Taxa {
|
|
153
154
|
return this.#sortedTaxa;
|
154
155
|
}
|
155
156
|
|
157
|
+
hasSynonym( formerName ) {
|
158
|
+
return this.#synonyms.has( formerName );
|
159
|
+
}
|
160
|
+
|
156
161
|
#loadSyns( synCSV, inclusionList ) {
|
157
162
|
for ( const syn of synCSV ) {
|
158
163
|
const currName = syn[ "Current" ];
|
159
164
|
const taxon = this.getTaxon( currName );
|
160
165
|
if ( !taxon ) {
|
161
|
-
if ( inclusionList === true ) {
|
162
|
-
// If including all taxa, note the error
|
166
|
+
if ( inclusionList === true && !syn.Type ) {
|
167
|
+
// If including all taxa, note the error - the target is not defined, and this is not
|
168
|
+
// a synonym for a non-Jepson system.
|
163
169
|
console.log( "synonym target not found: " + currName );
|
164
170
|
}
|
165
171
|
continue;
|
166
172
|
}
|
167
|
-
|
173
|
+
const formerName = syn[ "Former" ];
|
174
|
+
this.#synonyms.add( formerName );
|
175
|
+
taxon.addSynonym( formerName, syn[ "Type" ] );
|
168
176
|
}
|
169
177
|
}
|
170
178
|
|
package/lib/taxaprocessor.js
CHANGED
@@ -27,8 +27,8 @@ class TaxaProcessor {
|
|
27
27
|
console.log( "loading data" );
|
28
28
|
this.#taxaLoader = new this.#taxaLoaderClass( this.#options );
|
29
29
|
await this.#taxaLoader.load();
|
30
|
-
await commandRunner( this );
|
31
30
|
this.#taxaLoader.writeErrorLog();
|
31
|
+
await commandRunner( this );
|
32
32
|
}
|
33
33
|
|
34
34
|
}
|