@ca-plant-list/ca-plant-list 0.4.14 → 0.4.15

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
@@ -1144,7 +1144,7 @@ Maianthemum racemosum,false Solomon's seal,N,32495,10096,51062,Large False Solom
1144
1144
  Maianthemum stellatum,,N,32497,9629,53268,False Solomon Seal
1145
1145
  Malacothamnus arcuatus var. elmeri,,N,108345,14681,1497404,Eastern Bewildering Bushmallow,perennial,pink,4,5,1065,1B.2,,,S2,G2
1146
1146
  Malacothamnus fremontii var. fremontii,long-haired unfurled bushmallow,N,108341,14689,70398,,perennial,pink,5,6
1147
- Malacothamnus hallii,,N,108345,14681,1497404,,,,,,1065,1B.2,,,S2,G2
1147
+ Malacothamnus hallii,Hall's bushmallow,N,108345,14681,1497404,,perennial,pink,4,5,1065,1B.2,,,S2,G2
1148
1148
  Malacothrix californica,,N,4059,5325,58026,California Desertdandelion
1149
1149
  Malacothrix clevelandii,Cleveland's malacothrix,N,4060,5326,58841,Cleveland's Desertdandelion
1150
1150
  Malacothrix coulteri,snake's-head,N,4061,5327,58027,Snake's Head
@@ -0,0 +1,6 @@
1
+ ## Resources
2
+
3
+ - Gowen, David. “[TWO NEW SPECIES OF ERIASTRUM (POLEMONIACEAE) FROM CALIFORNIA.](http://www.jstor.org/stable/24621044)” Journal of the Botanical Research Institute of Texas, vol. 7, no. 1, 2013, pp. 21–24. JSTOR
4
+ - California Department of Fish and Wildlife (CDFW). 2023. [Report to the Fish and Game
5
+ Commission, status review of Lime Ridge eriastrum (_Eriastrum ertterae_)](https://nrm.dfg.ca.gov/FileHandler.ashx?DocumentID=213638&inline). California Department
6
+ of Fish and Wildlife
@@ -0,0 +1,3 @@
1
+ ## Resources
2
+
3
+ - Morse, Keir (2023). [Malacothamnus Volume 3 - A Revised Treatment of the Genus Malacothamnus (Malvaceae) Based on Morphological and Phylogenetic Evidence](https://doi.org/10.6084/m9.figshare.23937066.v1). figshare. Book.
@@ -0,0 +1,3 @@
1
+ ## Resources
2
+
3
+ - Morse, Keir (2023). [Malacothamnus Volume 3 - A Revised Treatment of the Genus Malacothamnus (Malvaceae) Based on Morphological and Phylogenetic Evidence](https://doi.org/10.6084/m9.figshare.23937066.v1). figshare. Book.
@@ -0,0 +1,3 @@
1
+ ## Resources
2
+
3
+ - Morse, Keir (2023). [Malacothamnus Volume 3 - A Revised Treatment of the Genus Malacothamnus (Malvaceae) Based on Morphological and Phylogenetic Evidence](https://doi.org/10.6084/m9.figshare.23937066.v1). figshare. Book.
package/lib/htmltaxon.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { Config } from "./config.js";
1
2
  import { DateUtils } from "./dateutils.js";
2
3
  import { HTML } from "./html.js";
3
4
  import { Markdown } from "./markdown.js";
@@ -127,6 +128,19 @@ class HTMLTaxon {
127
128
  : HTML.wrap("div", parts.join(""), { class: classNames });
128
129
  }
129
130
 
131
+ /**
132
+ * @param {Taxon} taxon
133
+ * @returns {string}
134
+ */
135
+ static getFooterHTML(taxon) {
136
+ const footerTextPath =
137
+ Config.getPackageDir() +
138
+ "/data/text/" +
139
+ taxon.getBaseFileName() +
140
+ ".footer.md";
141
+ return HTMLTaxon.getMarkdownSection(footerTextPath);
142
+ }
143
+
130
144
  /**
131
145
  * @param {Taxon} taxon
132
146
  */
package/lib/index.d.ts CHANGED
@@ -59,6 +59,7 @@ export class HTML {
59
59
  }
60
60
 
61
61
  export class HTMLTaxon {
62
+ static getFooterHTML(taxon: Taxon): string;
62
63
  static getListSectionHTML(
63
64
  list: string[],
64
65
  header: string,
@@ -4,7 +4,6 @@ import { GenericPage } from "../genericpage.js";
4
4
  import { ExternalSites } from "../externalsites.js";
5
5
  import { HTML } from "../html.js";
6
6
  import { HTMLTaxon } from "../htmltaxon.js";
7
- import { Config } from "../config.js";
8
7
 
9
8
  class PageTaxon extends GenericPage {
10
9
  #config;
@@ -188,12 +187,7 @@ class PageTaxon extends GenericPage {
188
187
  );
189
188
  html += "</div>";
190
189
 
191
- const footerTextPath =
192
- Config.getPackageDir() +
193
- "/data/text/" +
194
- this.getBaseFileName() +
195
- ".footer.md";
196
- html += HTMLTaxon.getMarkdownSection(footerTextPath);
190
+ html += HTMLTaxon.getFooterHTML(this.#taxon);
197
191
 
198
192
  const photos = this.#taxon.getPhotos();
199
193
  if (photos.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ca-plant-list/ca-plant-list",
3
- "version": "0.4.14",
3
+ "version": "0.4.15",
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": {