@ca-plant-list/ca-plant-list 0.2.10 → 0.2.11

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/taxa.csv CHANGED
@@ -1322,7 +1322,7 @@ Pilularia americana,pillwort,N,38232,6501,57885
1322
1322
  Pinus attenuata,knobcone pine,N,38257,6504,64047
1323
1323
  Pinus coulteri,Coulter pine,N,38266,6512,67330
1324
1324
  Pinus radiata,Monterey pine,N,38300,6523,53421,,,,1378,1B.1,,,S1,G1
1325
- Pinus sabiniana,gray or foothill pine,N,38304,6524,58772
1325
+ Pinus sabiniana,"gray pine,foothill pine",N,38304,6524,58772
1326
1326
  Piperia elegans subsp. elegans,coast piperia,N,74709,8857,840643
1327
1327
  Piperia elongata,wood rein-orchid,N,38354,6532,551466
1328
1328
  Piperia michaelii,Michael's rein-orchid,N,38358,6534,840639,,,,1380,4.2,,,S3,G3
@@ -0,0 +1 @@
1
+ Tissue between anther sacs purple. Ovaries purple.
@@ -69,10 +69,6 @@ span.native {
69
69
  font-weight: bold;
70
70
  }
71
71
 
72
- span.rare {
73
- font-weight: bold;
74
- }
75
-
76
72
  span.rare::before {
77
73
  content: "\2606";
78
74
  }
package/lib/taxon.js CHANGED
@@ -149,12 +149,14 @@ class Taxon {
149
149
  getHTMLLink( href = true, includeRPI = true ) {
150
150
  href = href ? ( "./" + this.getFileName() ) : undefined;
151
151
  let className = this.isNative() ? "native" : "non-native";
152
+ let isRare = false;
152
153
  if ( includeRPI && this.isRare() ) {
153
- className = "rare";
154
+ isRare = true;
155
+ className += " rare";
154
156
  }
155
157
  const attributes = { class: className };
156
158
  const link = HTML.wrap( "span", HTML.getLink( href, this.getName() ), attributes );
157
- if ( className === "rare" ) {
159
+ if ( isRare ) {
158
160
  return HTML.getToolTip( link, this.getRPIRankAndThreatTooltip(), { icon: false } );
159
161
  }
160
162
  return link;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ca-plant-list/ca-plant-list",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
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": {