@ca-plant-list/ca-plant-list 0.2.7 → 0.2.8
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/synonyms.csv +12 -0
- package/data/taxa.csv +10 -8
- package/data/text/Erythranthe-arvensis.md +1 -0
- package/data/text/Erythranthe-grandis.md +1 -0
- package/data/text/Erythranthe-guttata.md +1 -0
- package/jekyll/assets/css/main.css +9 -0
- package/lib/dateutils.js +24 -0
- package/lib/genericpage.js +11 -9
- package/lib/index.d.ts +6 -0
- package/lib/taxon.js +14 -0
- package/lib/web/pagetaxon.js +28 -1
- package/package.json +1 -1
package/data/synonyms.csv
CHANGED
@@ -1146,6 +1146,7 @@ Milla laxa,Triteleia laxa
|
|
1146
1146
|
Milla maritima,Muilla maritima
|
1147
1147
|
Milla peduncularis,Triteleia peduncularis
|
1148
1148
|
Mimulus androsaceus,Erythranthe androsacea
|
1149
|
+
Mimulus arvensis,Erythranthe arvensis
|
1149
1150
|
Mimulus aurantiacus,Diplacus aurantiacus
|
1150
1151
|
Mimulus bakeri,Erythranthe nasuta
|
1151
1152
|
Mimulus bolanderi,Diplacus bolanderi
|
@@ -1164,9 +1165,15 @@ Mimulus glabratus var. adscendens,Erythranthe guttata
|
|
1164
1165
|
Mimulus glareosus,Erythranthe microphylla
|
1165
1166
|
Mimulus glutinosus,Diplacus aurantiacus
|
1166
1167
|
Mimulus grandiflorus,Erythranthe guttata
|
1168
|
+
Mimulus grandis,Erythranthe grandis
|
1169
|
+
Mimulus guttatus subsp. arvensis,Erythranthe arvensis
|
1167
1170
|
Mimulus guttatus subsp. haidensis,Erythranthe guttata
|
1171
|
+
Mimulus guttatus subsp. litoralis,Erythranthe grandis
|
1172
|
+
Mimulus guttatus subsp. micranthus,Erythranthe arvensis
|
1173
|
+
Mimulus guttatus var. arvensis,Erythranthe arvensis
|
1168
1174
|
Mimulus guttatus var. depauperatus,Erythranthe microphylla
|
1169
1175
|
Mimulus guttatus var. gracilis,Erythranthe nasuta
|
1176
|
+
Mimulus guttatus var. grandis,Erythranthe grandis
|
1170
1177
|
Mimulus guttatus var. insignis,Erythranthe microphylla
|
1171
1178
|
Mimulus guttatus var. microphyllus,Erythranthe microphylla
|
1172
1179
|
Mimulus guttatus var. nasutus,Erythranthe nasuta
|
@@ -1178,7 +1185,9 @@ Mimulus inconspicuus,Erythranthe inconspicua
|
|
1178
1185
|
Mimulus kelloggii,Diplacus kelloggii
|
1179
1186
|
Mimulus laciniatus,Erythranthe laciniata
|
1180
1187
|
Mimulus langsdorffii var. argutus,Erythranthe guttata
|
1188
|
+
Mimulus langsdorffii var. arvensis,Erythranthe arvensis
|
1181
1189
|
Mimulus langsdorffii var. californicus,Erythranthe guttata
|
1190
|
+
Mimulus langsdorffii var. grandis,Erythranthe grandis
|
1182
1191
|
Mimulus langsdorffii var. guttatus,Erythranthe guttata
|
1183
1192
|
Mimulus langsdorffii var. insignis,Erythranthe microphylla
|
1184
1193
|
Mimulus langsdorffii var. microphyllus,Erythranthe microphylla
|
@@ -1188,10 +1197,12 @@ Mimulus langsdorffii var. platyphyllus,Erythranthe guttata
|
|
1188
1197
|
Mimulus langsdorffii,Erythranthe guttata
|
1189
1198
|
Mimulus latidens,Erythranthe latidens
|
1190
1199
|
Mimulus laxus,Erythranthe microphylla
|
1200
|
+
Mimulus longulus,Erythranthe arvensis
|
1191
1201
|
Mimulus luteus var. depauperatus,Erythranthe microphylla
|
1192
1202
|
Mimulus luteus var. gracilis,Erythranthe nasuta
|
1193
1203
|
Mimulus lyratus,Erythranthe guttata
|
1194
1204
|
Mimulus membranaceus,Erythranthe floribunda
|
1205
|
+
Mimulus micranthus,Erythranthe arvensis
|
1195
1206
|
Mimulus microphyllus,Erythranthe microphylla
|
1196
1207
|
Mimulus nasutus var. insignis,Erythranthe microphylla
|
1197
1208
|
Mimulus nasutus,Erythranthe nasuta
|
@@ -1203,6 +1214,7 @@ Mimulus pilosus,Mimetanthe pilosa
|
|
1203
1214
|
Mimulus platycalyx,Erythranthe microphylla
|
1204
1215
|
Mimulus platylaemus,Diplacus bolanderi
|
1205
1216
|
Mimulus prionophyllus,Erythranthe guttata
|
1217
|
+
Mimulus procerus,Erythranthe grandis
|
1206
1218
|
Mimulus puberulus,Erythranthe guttata
|
1207
1219
|
Mimulus puncticalyx,Erythranthe nasuta
|
1208
1220
|
Mimulus rattanii subsp. decurtatus,Diplacus rattanii
|
package/data/taxa.csv
CHANGED
@@ -412,7 +412,7 @@ Citrullus lanatus var. citroides,watermelon,X,56575,9813,841204
|
|
412
412
|
Clarkia affinis,chaparral clarkia,N,19563,2159,58943
|
413
413
|
Clarkia biloba subsp. biloba,twolobe clarkia,N,49891,2168,51857
|
414
414
|
Clarkia breweri,Brewer's clarkia,N,19571,2174,56067,,,,159,4.2,,,S4,G4
|
415
|
-
Clarkia concinna subsp. automixa,Santa Clara red ribbons,N,49895,2176,51856,,,,1629,4.3,,,S3,G5
|
415
|
+
Clarkia concinna subsp. automixa,Santa Clara red ribbons,N,49895,2176,51856,,,,1629,4.3,,,S3,G5?T3
|
416
416
|
Clarkia concinna subsp. concinna,red ribbons,N,49896,2177,51855
|
417
417
|
Clarkia epilobioides,,N,19577,2185,58945
|
418
418
|
Clarkia franciscana,Presidio clarkia,N,19579,2187,61899,,,,162,1B.1,CE,FE,S1,G1
|
@@ -710,14 +710,16 @@ Eryngium vaseyi var. vallicola,,N,58851,11675,80888
|
|
710
710
|
Erysimum capitatum var. angustatum,Contra Costa wallflower,N,58866,9942,119564,,,,790,1B.1,CE,FE,S1,G5T1
|
711
711
|
Erysimum capitatum var. capitatum,western wallflower,N,58866,9943,50627
|
712
712
|
Erythranthe androsacea,,N,99088,13487,771845
|
713
|
-
Erythranthe
|
714
|
-
Erythranthe
|
715
|
-
Erythranthe
|
716
|
-
Erythranthe
|
713
|
+
Erythranthe arvensis,"villous-bracted monkeyflower,field monkeyflower",N,99091,13552,771848,yellow,4,7
|
714
|
+
Erythranthe cardinalis,scarlet monkeyflower,N,25147,13490,319974,red,5,9
|
715
|
+
Erythranthe floribunda,many-flowered monkeyflower,N,99122,13492,701582,yellow,4,8
|
716
|
+
Erythranthe grandis,magnificent seep monkeyflower,N,99129,13560,771876,yellow,5,7
|
717
|
+
Erythranthe guttata,seep monkeyflower,N,99131,13493,470643,yellow,4,9
|
718
|
+
Erythranthe inconspicua,small-flowered monkeyflower,N,99135,13416,771882,pink,4,7,1092,4.3,,,S4,G4
|
717
719
|
Erythranthe laciniata,,N,99142,13417,546557,,,,1093,4.3,,,S4,G4
|
718
|
-
Erythranthe latidens
|
720
|
+
Erythranthe latidens,broad-tooth monkeyflower,N,99144,13495,771886,"white,pink",4,6
|
719
721
|
Erythranthe microphylla,small leaved monkeyflower,N,99152,13498,453717
|
720
|
-
Erythranthe nasuta,shy monkeyflower,N,99158,13637,545973
|
722
|
+
Erythranthe nasuta,shy monkeyflower,N,99158,13637,545973,yellow,3,7
|
721
723
|
Eschscholzia caespitosa,tufted poppy,N,25205,3511,58954
|
722
724
|
Eschscholzia californica,California poppy,N,25206,3512,48225
|
723
725
|
Eschscholzia rhombipetala,,N,25218,3527,77087,,,,806,1B.1,,,S1,G1
|
@@ -1048,7 +1050,7 @@ Lomatium macrocarpum,,N,31433,4974,56826
|
|
1048
1050
|
Lomatium nudicaule,,N,31441,4983,77818
|
1049
1051
|
Lomatium utriculatum,,N,31473,4999,56827
|
1050
1052
|
Lonicera hispidula,California honeysuckle,N,31505,10075,53416,pink,5,6
|
1051
|
-
Lonicera interrupta,chaparral honeysuckle,N,31506
|
1053
|
+
Lonicera interrupta,chaparral honeysuckle,N,31506,5009,60878,"yellow,white",4,5
|
1052
1054
|
Lonicera involucrata var. ledebourii,black twinberry,N,61081,5012,60990
|
1053
1055
|
Lonicera japonica,Japanese honeysuckle,X,31508,5013,77835
|
1054
1056
|
Lonicera subspicata var. denudata,moronel,N,61089,5015,58872,yellow,6,7
|
@@ -0,0 +1 @@
|
|
1
|
+
Stems not hairy.
|
@@ -0,0 +1 @@
|
|
1
|
+
Corolla tube extends 10-15 mm beyond calyx.
|
@@ -0,0 +1 @@
|
|
1
|
+
Corolla tube extends 3–5 mm beyond calyx.
|
@@ -20,6 +20,10 @@
|
|
20
20
|
background-color: var(--pl-navbar-bg);
|
21
21
|
}
|
22
22
|
|
23
|
+
p {
|
24
|
+
margin-bottom: .5rem;
|
25
|
+
}
|
26
|
+
|
23
27
|
span.label {
|
24
28
|
font-weight: 600;
|
25
29
|
padding-right: .5rem;
|
@@ -126,6 +130,11 @@ div.section ul.indent {
|
|
126
130
|
padding-left: 1rem;
|
127
131
|
}
|
128
132
|
|
133
|
+
img.flower-color {
|
134
|
+
margin-bottom: .2rem;
|
135
|
+
margin-right: .5rem;
|
136
|
+
}
|
137
|
+
|
129
138
|
/* Forms */
|
130
139
|
input {
|
131
140
|
margin-right: .5em;
|
package/lib/dateutils.js
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
const MONTH_NAMES = [
|
2
|
+
"January",
|
3
|
+
"February",
|
4
|
+
"March",
|
5
|
+
"April",
|
6
|
+
"May",
|
7
|
+
"June",
|
8
|
+
"July",
|
9
|
+
"August",
|
10
|
+
"September",
|
11
|
+
"October",
|
12
|
+
"November",
|
13
|
+
"December",
|
14
|
+
];
|
15
|
+
|
16
|
+
class DateUtils {
|
17
|
+
|
18
|
+
static getMonthName( monthNum ) {
|
19
|
+
return MONTH_NAMES[ monthNum ];
|
20
|
+
}
|
21
|
+
|
22
|
+
}
|
23
|
+
|
24
|
+
export { DateUtils };
|
package/lib/genericpage.js
CHANGED
@@ -20,11 +20,20 @@ class GenericPage {
|
|
20
20
|
}
|
21
21
|
|
22
22
|
getDefaultIntro() {
|
23
|
+
let html = this.getFrontMatter();
|
24
|
+
return html + this.getMarkdown();
|
25
|
+
}
|
23
26
|
|
24
|
-
|
27
|
+
getFrontMatter() {
|
28
|
+
return "---\n"
|
29
|
+
+ "title: \"" + this.#title + "\"\n"
|
30
|
+
+ ( this.#js ? ( "js: " + this.#js + "\n" ) : "" )
|
31
|
+
+ "---\n";
|
32
|
+
}
|
25
33
|
|
34
|
+
getMarkdown() {
|
26
35
|
// Include site-specific markdown.
|
27
|
-
html
|
36
|
+
let html = this.#getMarkdown( "intros" );
|
28
37
|
|
29
38
|
// Include package markdown.
|
30
39
|
const mdPath = Config.getPackageDir() + "/data/text/" + this.#baseFileName + ".md";
|
@@ -35,13 +44,6 @@ class GenericPage {
|
|
35
44
|
return html;
|
36
45
|
}
|
37
46
|
|
38
|
-
#getFrontMatter() {
|
39
|
-
return "---\n"
|
40
|
-
+ "title: \"" + this.#title + "\"\n"
|
41
|
-
+ ( this.#js ? ( "js: " + this.#js + "\n" ) : "" )
|
42
|
-
+ "---\n";
|
43
|
-
}
|
44
|
-
|
45
47
|
#getMarkdown( path ) {
|
46
48
|
const textPath = path + "/" + this.#baseFileName + ".md";
|
47
49
|
if ( !Jekyll.hasInclude( this.#outputDir, textPath ) ) {
|
package/lib/index.d.ts
CHANGED
@@ -83,6 +83,8 @@ export class GenericPage {
|
|
83
83
|
constructor(outputDir: any, title: any, baseFileName: any, js: any);
|
84
84
|
getBaseFileName(): any;
|
85
85
|
getDefaultIntro(): string;
|
86
|
+
getFrontMatter(): string;
|
87
|
+
getMarkdown(): any;
|
86
88
|
getOutputDir(): any;
|
87
89
|
getTitle(): any;
|
88
90
|
writeFile(html: any): void;
|
@@ -216,6 +218,8 @@ export namespace TAXA_LIST_COLS {
|
|
216
218
|
}
|
217
219
|
import { Taxon } from "./taxon.js";
|
218
220
|
export namespace TAXA_COLNAMES {
|
221
|
+
const BLOOM_START: string;
|
222
|
+
const BLOOM_END: string;
|
219
223
|
const COMMON_NAME: string;
|
220
224
|
const FLOWER_COLOR: string;
|
221
225
|
}
|
@@ -223,6 +227,8 @@ export class Taxon {
|
|
223
227
|
constructor(data: any);
|
224
228
|
addSynonym(syn: any, type: any): void;
|
225
229
|
getBaseFileName(): any;
|
230
|
+
getBloomEnd(): any;
|
231
|
+
getBloomStart(): any;
|
226
232
|
getCalfloraName(): any;
|
227
233
|
getCalfloraID(): any;
|
228
234
|
getCalfloraTaxonLink(): string;
|
package/lib/taxon.js
CHANGED
@@ -4,6 +4,8 @@ import { HTML } from "./html.js";
|
|
4
4
|
import { RarePlants } from "./rareplants.js";
|
5
5
|
|
6
6
|
const TAXA_COLNAMES = {
|
7
|
+
BLOOM_START: "bloom_start",
|
8
|
+
BLOOM_END: "bloom_end",
|
7
9
|
COMMON_NAME: "common name",
|
8
10
|
FLOWER_COLOR: "flower_color",
|
9
11
|
};
|
@@ -20,6 +22,8 @@ class Taxon {
|
|
20
22
|
#iNatID;
|
21
23
|
#iNatSyn;
|
22
24
|
#flowerColors;
|
25
|
+
#bloomStart;
|
26
|
+
#bloomEnd;
|
23
27
|
#rpiID;
|
24
28
|
#rankRPI;
|
25
29
|
#cesa;
|
@@ -44,6 +48,8 @@ class Taxon {
|
|
44
48
|
this.#iNatID = data[ "inat id" ];
|
45
49
|
const colors = data[ TAXA_COLNAMES.FLOWER_COLOR ];
|
46
50
|
this.#flowerColors = colors ? colors.split( "," ) : undefined;
|
51
|
+
this.#bloomStart = data[ TAXA_COLNAMES.BLOOM_START ];
|
52
|
+
this.#bloomEnd = data[ TAXA_COLNAMES.BLOOM_END ];
|
47
53
|
this.#rpiID = data[ "RPI ID" ];
|
48
54
|
this.#rankRPI = data[ "CRPR" ];
|
49
55
|
this.#cesa = cesa ? cesa : undefined;
|
@@ -72,6 +78,14 @@ class Taxon {
|
|
72
78
|
return this.#name.replaceAll( " ", "-" ).replaceAll( ".", "" );
|
73
79
|
}
|
74
80
|
|
81
|
+
getBloomEnd() {
|
82
|
+
return this.#bloomEnd;
|
83
|
+
}
|
84
|
+
|
85
|
+
getBloomStart() {
|
86
|
+
return this.#bloomStart;
|
87
|
+
}
|
88
|
+
|
75
89
|
getCalfloraName() {
|
76
90
|
if ( this.#cfSyn ) {
|
77
91
|
return this.#cfSyn;
|
package/lib/web/pagetaxon.js
CHANGED
@@ -4,6 +4,7 @@ import { Config } from "../config.js";
|
|
4
4
|
import { RarePlants } from "../rareplants.js";
|
5
5
|
import { GenericPage } from "../genericpage.js";
|
6
6
|
import { ExternalSites } from "../externalsites.js";
|
7
|
+
import { DateUtils } from "../dateutils.js";
|
7
8
|
|
8
9
|
class PageTaxon extends GenericPage {
|
9
10
|
|
@@ -14,6 +15,28 @@ class PageTaxon extends GenericPage {
|
|
14
15
|
this.#taxon = taxon;
|
15
16
|
}
|
16
17
|
|
18
|
+
getFlowerInfo() {
|
19
|
+
|
20
|
+
const colors = this.#taxon.getFlowerColors();
|
21
|
+
const monthStart = this.#taxon.getBloomStart();
|
22
|
+
const monthEnd = this.#taxon.getBloomEnd();
|
23
|
+
|
24
|
+
if ( !colors && !monthStart ) {
|
25
|
+
return "";
|
26
|
+
}
|
27
|
+
|
28
|
+
let html = "Flowers: ";
|
29
|
+
if ( colors ) {
|
30
|
+
for ( const color of colors ) {
|
31
|
+
html += HTML.textElement( "img", "", { src: "/i/f-" + color + ".svg", alt: color + " flowers", title: color, class: "flower-color" } );
|
32
|
+
}
|
33
|
+
}
|
34
|
+
if ( monthStart ) {
|
35
|
+
html += DateUtils.getMonthName( monthStart ) + "-" + DateUtils.getMonthName( monthEnd );
|
36
|
+
}
|
37
|
+
return HTML.wrap( "div", html, { class: "section" } );
|
38
|
+
}
|
39
|
+
|
17
40
|
#getInfoLinks() {
|
18
41
|
const links = [];
|
19
42
|
const jepsonID = this.#taxon.getJepsonID();
|
@@ -131,7 +154,7 @@ class PageTaxon extends GenericPage {
|
|
131
154
|
|
132
155
|
render() {
|
133
156
|
|
134
|
-
let html = this.
|
157
|
+
let html = this.getFrontMatter();
|
135
158
|
|
136
159
|
html += "<div class=\"wrapper\">";
|
137
160
|
|
@@ -153,6 +176,10 @@ class PageTaxon extends GenericPage {
|
|
153
176
|
|
154
177
|
html += "</div>";
|
155
178
|
|
179
|
+
html += this.getFlowerInfo();
|
180
|
+
|
181
|
+
html += this.getMarkdown();
|
182
|
+
|
156
183
|
html += "<div class=\"grid borders\">";
|
157
184
|
html += this.#getListSectionHTML( this.#getInfoLinks(), "References", "info" );
|
158
185
|
html += this.#getListSectionHTML( this.#getObsLinks(), "Observations", "obs" );
|