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

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.
@@ -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
 
@@ -88,6 +90,10 @@ class Taxon {
88
90
  return Genera.getFamily( this.#genus );
89
91
  }
90
92
 
93
+ getFESA() {
94
+ return this.#fesa;
95
+ }
96
+
91
97
  getFileName( ext = "html" ) {
92
98
  return this.getBaseFileName() + "." + ext;
93
99
  }
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.16",
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": {