@ca-plant-list/ca-plant-list 0.1.15 → 0.1.17

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/genera.json CHANGED
@@ -2163,6 +2163,10 @@
2163
2163
  "family": "Caryophyllaceae",
2164
2164
  "id": "10842"
2165
2165
  },
2166
+ "Sabulina": {
2167
+ "family": "Caryophyllaceae",
2168
+ "id": "69193"
2169
+ },
2166
2170
  "Sagina": {
2167
2171
  "family": "Caryophyllaceae",
2168
2172
  "id": "10854"
@@ -25,7 +25,7 @@ class BasePageRenderer {
25
25
  for ( const taxon of Taxa.getTaxa() ) {
26
26
  const row = [];
27
27
  row.push( taxon.getName() );
28
- const cn = taxon.getCommonNames().join( "," );
28
+ const cn = taxon.getCommonNames().join( ", " );
29
29
  if ( cn ) {
30
30
  row.push( cn );
31
31
  }
package/lib/taxon.js CHANGED
@@ -17,9 +17,10 @@ class Taxon {
17
17
  #rpiID;
18
18
  #rankRPI;
19
19
  #cesa;
20
+ #fesa;
20
21
  #synonyms = [];
21
22
 
22
- constructor( name, commonNames, status, jepsonID, calRecNum, iNatID, rpiID, rankRPI, cesa ) {
23
+ constructor( name, commonNames, status, jepsonID, calRecNum, iNatID, rpiID, rankRPI, cesa, fesa ) {
23
24
  this.#name = name;
24
25
  this.#genus = name.split( " " )[ 0 ];
25
26
  this.#commonNames = commonNames ? commonNames.split( "," ).map( t => t.trim() ) : [];
@@ -29,7 +30,8 @@ class Taxon {
29
30
  this.#iNatID = iNatID;
30
31
  this.#rpiID = rpiID;
31
32
  this.#rankRPI = rankRPI;
32
- this.#cesa = cesa;
33
+ this.#cesa = cesa ? cesa : undefined;
34
+ this.#fesa = fesa ? fesa : undefined;
33
35
  Genera.addTaxon( this );
34
36
  }
35
37
 
@@ -68,12 +70,8 @@ class Taxon {
68
70
  if ( !calfloraID ) {
69
71
  return;
70
72
  }
71
- return HTML.getLink(
72
- "https://www.calflora.org/app/taxon?crn=" + calfloraID,
73
- "Calflora",
74
- {},
75
- true
76
- );
73
+ const link = HTML.getLink( "https://www.calflora.org/app/taxon?crn=" + calfloraID, "Calflora", {}, true );
74
+ return this.#cfSyn ? ( link + " (" + this.#cfSyn + ")" ) : link;
77
75
  }
78
76
 
79
77
  getCESA() {
@@ -88,6 +86,10 @@ class Taxon {
88
86
  return Genera.getFamily( this.#genus );
89
87
  }
90
88
 
89
+ getFESA() {
90
+ return this.#fesa;
91
+ }
92
+
91
93
  getFileName( ext = "html" ) {
92
94
  return this.getBaseFileName() + "." + ext;
93
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ca-plant-list/ca-plant-list",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "Tools to create Jekyll files for a website listing plants in an area of California.",
5
5
  "license": "MIT",
6
6
  "repository": {