col-browser 2.6.0 → 2.6.2
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/es/chunks/{Distributions-Czffme5Y.js → Distributions-Byhvu1wv.js} +7 -8
- package/es/chunks/{Distributions-Czffme5Y.js.map → Distributions-Byhvu1wv.js.map} +1 -1
- package/es/chunks/ErrorMsg-D5nALHuK.js +103 -0
- package/es/chunks/ErrorMsg-D5nALHuK.js.map +1 -0
- package/es/chunks/{XrGutter-COJhHpia.js → XrGutter-nBDDl_Lq.js} +2 -2
- package/es/chunks/{XrGutter-COJhHpia.js.map → XrGutter-nBDDl_Lq.js.map} +1 -1
- package/es/chunks/dataset-BZpjo3Yq.js.map +1 -1
- package/es/chunks/enumeration-CsrJrIIR.js +24 -0
- package/es/chunks/{enumeration-CV8i_q_O.js.map → enumeration-CsrJrIIR.js.map} +1 -1
- package/es/search.js +3 -3
- package/es/sourceDataset.js +195 -183
- package/es/sourceDataset.js.map +1 -1
- package/es/sourceDatasetList.js +9 -10
- package/es/sourceDatasetList.js.map +1 -1
- package/es/taxon.js +733 -704
- package/es/taxon.js.map +1 -1
- package/es/taxonDistribution.js +1 -1
- package/es/tree.js +3 -4
- package/es/tree.js.map +1 -1
- package/package.json +1 -1
- package/umd/col-browser.js +116 -40
- package/umd/col-browser.js.map +1 -1
- package/umd/col-browser.min.js +4 -4
- package/umd/col-browser.min.js.map +1 -1
- package/es/chunks/ErrorMsg-K8k5PPTp.js +0 -26
- package/es/chunks/ErrorMsg-K8k5PPTp.js.map +0 -1
- package/es/chunks/MergedDataBadge-DK53L3R8.js +0 -82
- package/es/chunks/MergedDataBadge-DK53L3R8.js.map +0 -1
- package/es/chunks/enumeration-CV8i_q_O.js +0 -12
package/es/sourceDataset.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { a as
|
|
5
|
-
import { w as
|
|
6
|
-
import { j as
|
|
7
|
-
import
|
|
8
|
-
import { c as
|
|
9
|
-
import { c as
|
|
10
|
-
import { Skeleton as E, Alert as
|
|
11
|
-
import { E as N } from "./chunks/ErrorMsg-
|
|
12
|
-
import { D as
|
|
13
|
-
import { M as
|
|
14
|
-
import { get as
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var C = (a, l, s) => l in a ? v(a, l, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[l] = s;
|
|
3
|
+
var d = (a, l, s) => C(a, typeof l != "symbol" ? l + "" : l, s);
|
|
4
|
+
import { a as T } from "./chunks/withDatasetKey-BgMY05XE.js";
|
|
5
|
+
import { w as _ } from "./chunks/withTheme-Dh6PRuII.js";
|
|
6
|
+
import { j as e } from "./chunks/jsx-runtime-BzflLqGi.js";
|
|
7
|
+
import m from "react";
|
|
8
|
+
import { c as g } from "./chunks/config--bs_09I6.js";
|
|
9
|
+
import { c as j, L as A, s as I, R as K, b as R } from "./chunks/router-CssZk5qZ.js";
|
|
10
|
+
import { Skeleton as E, Alert as M, Row as w, Col as y, Tooltip as P, Button as L, Rate as O } from "antd";
|
|
11
|
+
import { M as F, E as N } from "./chunks/ErrorMsg-D5nALHuK.js";
|
|
12
|
+
import { D as B } from "./chunks/DatasetlogoWithFallback-Bb-kmHts.js";
|
|
13
|
+
import { M as z } from "./chunks/MetricsPresentation-DKCJQOtf.js";
|
|
14
|
+
import { get as u, isEmpty as $, isArray as H } from "lodash-es";
|
|
15
15
|
import { P as o } from "./chunks/PresentationItem-C4yZ555-.js";
|
|
16
|
-
import { g as W } from "./chunks/enumeration-
|
|
17
|
-
import { B as
|
|
18
|
-
import { marked as
|
|
19
|
-
import
|
|
20
|
-
import { R as
|
|
21
|
-
class X extends
|
|
16
|
+
import { g as W } from "./chunks/enumeration-CsrJrIIR.js";
|
|
17
|
+
import { B as U } from "./chunks/BibTex-DRE71Hg-.js";
|
|
18
|
+
import { marked as q } from "marked";
|
|
19
|
+
import G from "dompurify";
|
|
20
|
+
import { R as V } from "./chunks/LinkOutlined-2IkQWTV7.js";
|
|
21
|
+
class X extends m.Component {
|
|
22
22
|
constructor(s) {
|
|
23
23
|
super(s);
|
|
24
|
-
|
|
25
|
-
const { dataset: s, datasetKey:
|
|
26
|
-
|
|
27
|
-
`${
|
|
24
|
+
d(this, "getData", () => {
|
|
25
|
+
const { dataset: s, datasetKey: t } = this.props;
|
|
26
|
+
j(
|
|
27
|
+
`${g.dataApi}dataset/${t}/source/${s.key}/metrics`
|
|
28
28
|
).then((r) => {
|
|
29
29
|
this.setState({ metrics: r.data });
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
(s) => this.setState({ rank: s.data.map((
|
|
32
|
+
d(this, "getRank", () => {
|
|
33
|
+
j(`${g.dataApi}vocab/rank`).then(
|
|
34
|
+
(s) => this.setState({ rank: s.data.map((t) => t.name) })
|
|
35
35
|
);
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
d(this, "render", () => /* @__PURE__ */ e.jsx(z, { ...this.state, dataset: this.props.dataset }));
|
|
38
38
|
this.state = {
|
|
39
39
|
metrics: null,
|
|
40
40
|
rank: null,
|
|
@@ -45,49 +45,61 @@ class X extends h.Component {
|
|
|
45
45
|
this.getData(), this.getRank();
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
const Y = (a, l) => {
|
|
49
|
+
const { id: s, mode: t, subject: r, target: n } = l, i = t === "merge" || t === "union", c = new URLSearchParams({ TAXON_ID: n.id });
|
|
50
|
+
return i ? c.set("q", n.name) : (c.set("SECTOR_KEY", s), r.rank && c.set("rank", r.rank), c.set("q", r.name)), c.set("type", "EXACT"), j(
|
|
51
|
+
`${g.dataApi}dataset/${a}/nameusage/search?${c}`
|
|
52
|
+
).then((x) => {
|
|
53
|
+
const p = u(x, "data.result") || [];
|
|
54
|
+
if (i)
|
|
55
|
+
return p.find((h) => {
|
|
56
|
+
var f;
|
|
57
|
+
return ((f = h.usage) == null ? void 0 : f.id) === n.id;
|
|
58
|
+
});
|
|
59
|
+
const k = (h) => {
|
|
60
|
+
var f, S;
|
|
61
|
+
return (S = (f = h.classification) == null ? void 0 : f[h.classification.length - 2]) == null ? void 0 : S.id;
|
|
62
|
+
};
|
|
63
|
+
return p.find((h) => k(h) === n.id) || p[0];
|
|
64
|
+
});
|
|
65
|
+
}, J = (a) => {
|
|
66
|
+
var l, s;
|
|
67
|
+
return !!((l = a == null ? void 0 : a.target) != null && l.id) && (a.mode === "merge" || a.mode === "union" ? !!a.target.name : !!((s = a.subject) != null && s.name));
|
|
68
|
+
};
|
|
69
|
+
class Q extends m.Component {
|
|
49
70
|
constructor(s) {
|
|
50
71
|
super(s);
|
|
51
|
-
|
|
52
|
-
const { dataset: s, datasetKey:
|
|
53
|
-
|
|
54
|
-
`${
|
|
72
|
+
d(this, "getData", () => {
|
|
73
|
+
const { dataset: s, datasetKey: t } = this.props, r = {};
|
|
74
|
+
j(
|
|
75
|
+
`${g.dataApi}dataset/${t}/sector?limit=1000&subjectDatasetKey=${s.key}`
|
|
55
76
|
).then((n) => Promise.allSettled(
|
|
56
|
-
n.data.result.filter(
|
|
57
|
-
(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
r[y] ? r[y].push(
|
|
66
|
-
d.classification[d.classification.length - 1]
|
|
67
|
-
) : r[y] = [
|
|
68
|
-
d.classification[d.classification.length - 1]
|
|
69
|
-
];
|
|
70
|
-
}
|
|
71
|
-
}).catch((f) => {
|
|
72
|
-
console.log(a), console.log(f);
|
|
73
|
-
});
|
|
74
|
-
}
|
|
77
|
+
n.data.result.filter(J).map(
|
|
78
|
+
(i) => Y(t, i).then((c) => {
|
|
79
|
+
if (c) {
|
|
80
|
+
const x = c.classification, p = x.slice(1, x.length - 1).map((h) => h.name).join(" > "), k = { taxon: x[x.length - 1], merged: i.mode === "merge" };
|
|
81
|
+
r[p] ? r[p].push(k) : r[p] = [k];
|
|
82
|
+
}
|
|
83
|
+
}).catch((c) => {
|
|
84
|
+
console.log(i), console.log(c);
|
|
85
|
+
})
|
|
75
86
|
)
|
|
76
87
|
).then(() => this.setState({ taxonMap: r, loading: !1 })));
|
|
77
88
|
});
|
|
78
|
-
|
|
79
|
-
const { taxonMap: s } = this.state, { style:
|
|
80
|
-
return s ? Object.keys(s).length > 0 ? Object.keys(s).sort((r, n) => r.length - n.length).map((r) => /* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
89
|
+
d(this, "render", () => {
|
|
90
|
+
const { taxonMap: s } = this.state, { style: t } = this.props;
|
|
91
|
+
return s ? Object.keys(s).length > 0 ? Object.keys(s).sort((r, n) => r.length - n.length).map((r) => /* @__PURE__ */ e.jsxs("div", { style: t, children: [
|
|
92
|
+
/* @__PURE__ */ e.jsxs("span", { children: [
|
|
82
93
|
r,
|
|
83
94
|
r !== "" ? ":" : ""
|
|
84
95
|
] }),
|
|
85
96
|
" ",
|
|
86
|
-
s[r].map((n,
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
97
|
+
s[r].map(({ taxon: n, merged: i }, c) => /* @__PURE__ */ e.jsxs(m.Fragment, { children: [
|
|
98
|
+
i && /* @__PURE__ */ e.jsx(F, {}),
|
|
99
|
+
/* @__PURE__ */ e.jsx(A, { to: "tree", args: { taxonKey: n.id }, children: n.name }),
|
|
100
|
+
c !== s[r].length - 1 ? ", " : ""
|
|
101
|
+
] }, c))
|
|
102
|
+
] }, r)) : "N/A" : /* @__PURE__ */ e.jsx(E, { active: !0, paragraph: { rows: 4 } });
|
|
91
103
|
});
|
|
92
104
|
this.state = {
|
|
93
105
|
loading: !0,
|
|
@@ -98,16 +110,16 @@ class Y extends h.Component {
|
|
|
98
110
|
this.getData();
|
|
99
111
|
}
|
|
100
112
|
}
|
|
101
|
-
const
|
|
102
|
-
const r =
|
|
113
|
+
const b = ({ agent: a, countryAlpha2: l, style: s, noLinks: t }) => {
|
|
114
|
+
const r = u(a, "country") ? u(
|
|
103
115
|
l,
|
|
104
|
-
`[${
|
|
105
|
-
|
|
116
|
+
`[${u(a, "country")}].title`,
|
|
117
|
+
u(a, "country")
|
|
106
118
|
) : null;
|
|
107
|
-
return
|
|
108
|
-
(
|
|
109
|
-
|
|
110
|
-
/* @__PURE__ */
|
|
119
|
+
return a ? /* @__PURE__ */ e.jsxs("span", { style: s, children: [
|
|
120
|
+
(a.given || a.family) && /* @__PURE__ */ e.jsx("span", { style: { display: "block" }, children: [a.family, a.given].filter((n) => !!n).join(", ") }),
|
|
121
|
+
a.orcid && (t ? /* @__PURE__ */ e.jsxs("div", { children: [
|
|
122
|
+
/* @__PURE__ */ e.jsx(
|
|
111
123
|
"img",
|
|
112
124
|
{
|
|
113
125
|
src: "https://www.checklistbank.org/images/orcid_16x16.png",
|
|
@@ -116,14 +128,14 @@ const g = ({ agent: i, countryAlpha2: l, style: s, noLinks: e }) => {
|
|
|
116
128
|
}
|
|
117
129
|
),
|
|
118
130
|
" ",
|
|
119
|
-
|
|
120
|
-
] }) : /* @__PURE__ */
|
|
131
|
+
a.orcid
|
|
132
|
+
] }) : /* @__PURE__ */ e.jsxs(
|
|
121
133
|
"a",
|
|
122
134
|
{
|
|
123
135
|
style: { display: "block" },
|
|
124
|
-
href: `https://orcid.org/${
|
|
136
|
+
href: `https://orcid.org/${a.orcid}`,
|
|
125
137
|
children: [
|
|
126
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ e.jsx(
|
|
127
139
|
"img",
|
|
128
140
|
{
|
|
129
141
|
src: "https://www.checklistbank.org/images/orcid_16x16.png",
|
|
@@ -132,13 +144,13 @@ const g = ({ agent: i, countryAlpha2: l, style: s, noLinks: e }) => {
|
|
|
132
144
|
}
|
|
133
145
|
),
|
|
134
146
|
" ",
|
|
135
|
-
|
|
147
|
+
a.orcid
|
|
136
148
|
]
|
|
137
149
|
}
|
|
138
150
|
)),
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
/* @__PURE__ */
|
|
151
|
+
a.organisation && /* @__PURE__ */ e.jsx("span", { style: { display: "block" }, children: a.organisation }),
|
|
152
|
+
a.rorid && (t ? /* @__PURE__ */ e.jsxs("div", { children: [
|
|
153
|
+
/* @__PURE__ */ e.jsx(
|
|
142
154
|
"img",
|
|
143
155
|
{
|
|
144
156
|
src: "https://www.checklistbank.org/images/ror-logo-small.png",
|
|
@@ -147,14 +159,14 @@ const g = ({ agent: i, countryAlpha2: l, style: s, noLinks: e }) => {
|
|
|
147
159
|
}
|
|
148
160
|
),
|
|
149
161
|
" ",
|
|
150
|
-
|
|
151
|
-
] }) : /* @__PURE__ */
|
|
162
|
+
a.rorid
|
|
163
|
+
] }) : /* @__PURE__ */ e.jsxs(
|
|
152
164
|
"a",
|
|
153
165
|
{
|
|
154
166
|
style: { display: "block" },
|
|
155
|
-
href: `https://ror.org/${
|
|
167
|
+
href: `https://ror.org/${a.rorid}`,
|
|
156
168
|
children: [
|
|
157
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ e.jsx(
|
|
158
170
|
"img",
|
|
159
171
|
{
|
|
160
172
|
src: "https://www.checklistbank.org/images/ror-logo-small.png",
|
|
@@ -163,12 +175,12 @@ const g = ({ agent: i, countryAlpha2: l, style: s, noLinks: e }) => {
|
|
|
163
175
|
}
|
|
164
176
|
),
|
|
165
177
|
" ",
|
|
166
|
-
|
|
178
|
+
a.rorid
|
|
167
179
|
]
|
|
168
180
|
}
|
|
169
181
|
)),
|
|
170
|
-
|
|
171
|
-
(
|
|
182
|
+
a.department && /* @__PURE__ */ e.jsx("span", { style: { display: "block" }, children: a.department }),
|
|
183
|
+
(a.city || a.state || r) && /* @__PURE__ */ e.jsx("span", { style: { display: "block" }, children: [a.city, a.state, r].filter((n) => !!n).join(", ") })
|
|
172
184
|
] }) : null;
|
|
173
185
|
}, D = {
|
|
174
186
|
col: "https://www.checklistbank.org/dataset/",
|
|
@@ -176,32 +188,32 @@ const g = ({ agent: i, countryAlpha2: l, style: s, noLinks: e }) => {
|
|
|
176
188
|
plazi: "http://publication.plazi.org/id/",
|
|
177
189
|
doi: "https://doi.org/"
|
|
178
190
|
};
|
|
179
|
-
class
|
|
191
|
+
class Z extends m.Component {
|
|
180
192
|
constructor(s) {
|
|
181
193
|
super(s);
|
|
182
|
-
|
|
194
|
+
d(this, "componentDidMount", () => {
|
|
183
195
|
this.getData(), W().then((s) => {
|
|
184
|
-
const
|
|
196
|
+
const t = {};
|
|
185
197
|
s.forEach((r) => {
|
|
186
|
-
|
|
187
|
-
}), this.setState({ countryAlpha2:
|
|
198
|
+
t[r.alpha2] = r;
|
|
199
|
+
}), this.setState({ countryAlpha2: t });
|
|
188
200
|
});
|
|
189
201
|
});
|
|
190
|
-
|
|
191
|
-
const { datasetKey: s, sourceDatasetKey:
|
|
192
|
-
|
|
193
|
-
r &&
|
|
202
|
+
d(this, "getData", () => {
|
|
203
|
+
const { datasetKey: s, sourceDatasetKey: t, pageTitleTemplate: r } = this.props;
|
|
204
|
+
t && j(`${g.dataApi}dataset/${s}/source/${t}`).then((n) => {
|
|
205
|
+
r && u(n, "data.title") && (document.title = r.replace(
|
|
194
206
|
"__dataset__",
|
|
195
207
|
n.data.title
|
|
196
208
|
)), this.setState({ data: n.data, datasetError: null });
|
|
197
209
|
}).catch((n) => this.setState({ datasetError: n, data: null }));
|
|
198
210
|
});
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
(s) => this.setState({ rank: s.data.map((
|
|
211
|
+
d(this, "getRank", () => {
|
|
212
|
+
j(`${g.dataApi}vocab/rank`).then(
|
|
213
|
+
(s) => this.setState({ rank: s.data.map((t) => t.name) })
|
|
202
214
|
);
|
|
203
215
|
});
|
|
204
|
-
|
|
216
|
+
I(this.props.auth), this.state = {
|
|
205
217
|
datasetLoading: !0,
|
|
206
218
|
data: null,
|
|
207
219
|
rank: null,
|
|
@@ -212,8 +224,8 @@ class J extends h.Component {
|
|
|
212
224
|
(s.sourceDatasetKey !== this.props.sourceDatasetKey || s.datasetKey !== this.props.datasetKey) && this.getData();
|
|
213
225
|
}
|
|
214
226
|
render() {
|
|
215
|
-
const { datasetKey: s } = this.props, { data:
|
|
216
|
-
return /* @__PURE__ */
|
|
227
|
+
const { datasetKey: s } = this.props, { data: t, countryAlpha2: r, datasetError: n } = this.state;
|
|
228
|
+
return /* @__PURE__ */ e.jsx(m.Fragment, { children: /* @__PURE__ */ e.jsxs(
|
|
217
229
|
"div",
|
|
218
230
|
{
|
|
219
231
|
className: "catalogue-of-life",
|
|
@@ -225,10 +237,10 @@ class J extends h.Component {
|
|
|
225
237
|
fontSize: "12px"
|
|
226
238
|
},
|
|
227
239
|
children: [
|
|
228
|
-
n && /* @__PURE__ */
|
|
229
|
-
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
/* @__PURE__ */
|
|
240
|
+
n && /* @__PURE__ */ e.jsx(M, { message: /* @__PURE__ */ e.jsx(N, { error: n }), type: "error" }),
|
|
241
|
+
t && /* @__PURE__ */ e.jsxs(w, { children: [
|
|
242
|
+
/* @__PURE__ */ e.jsxs(y, { flex: "auto", children: [
|
|
243
|
+
/* @__PURE__ */ e.jsx(
|
|
232
244
|
"h1",
|
|
233
245
|
{
|
|
234
246
|
style: {
|
|
@@ -238,23 +250,23 @@ class J extends h.Component {
|
|
|
238
250
|
display: "inline-block",
|
|
239
251
|
textTransform: "none"
|
|
240
252
|
},
|
|
241
|
-
children:
|
|
253
|
+
children: t.title
|
|
242
254
|
}
|
|
243
255
|
),
|
|
244
|
-
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
|
|
256
|
+
t && /* @__PURE__ */ e.jsxs(m.Fragment, { children: [
|
|
257
|
+
/* @__PURE__ */ e.jsx("br", {}),
|
|
258
|
+
/* @__PURE__ */ e.jsx(
|
|
259
|
+
U,
|
|
248
260
|
{
|
|
249
261
|
style: { marginLeft: "8px", height: "32px" },
|
|
250
262
|
datasetKey: s,
|
|
251
|
-
sourceDatasetKey: s !==
|
|
263
|
+
sourceDatasetKey: s !== t.key ? t.key : void 0
|
|
252
264
|
}
|
|
253
265
|
)
|
|
254
266
|
] })
|
|
255
267
|
] }),
|
|
256
|
-
/* @__PURE__ */
|
|
257
|
-
|
|
268
|
+
/* @__PURE__ */ e.jsx(y, { style: { textAlign: "right" }, children: /* @__PURE__ */ e.jsx(
|
|
269
|
+
B,
|
|
258
270
|
{
|
|
259
271
|
auth: this.props.auth,
|
|
260
272
|
style: {
|
|
@@ -263,25 +275,25 @@ class J extends h.Component {
|
|
|
263
275
|
marginRight: "8px"
|
|
264
276
|
},
|
|
265
277
|
datasetKey: s,
|
|
266
|
-
sourceDatasetKey:
|
|
278
|
+
sourceDatasetKey: t.key
|
|
267
279
|
}
|
|
268
280
|
) })
|
|
269
281
|
] }),
|
|
270
|
-
|
|
271
|
-
/* @__PURE__ */
|
|
272
|
-
|
|
273
|
-
/* @__PURE__ */
|
|
274
|
-
|
|
282
|
+
t && /* @__PURE__ */ e.jsxs(m.Fragment, { children: [
|
|
283
|
+
/* @__PURE__ */ e.jsxs(o, { label: "Short name", children: [
|
|
284
|
+
t.alias,
|
|
285
|
+
/* @__PURE__ */ e.jsx(
|
|
286
|
+
P,
|
|
275
287
|
{
|
|
276
288
|
title: "Visit in COL Checklistbank",
|
|
277
289
|
getPopupContainer: () => document.getElementsByClassName("catalogue-of-life")[0],
|
|
278
|
-
children: /* @__PURE__ */
|
|
279
|
-
|
|
290
|
+
children: /* @__PURE__ */ e.jsxs(
|
|
291
|
+
L,
|
|
280
292
|
{
|
|
281
293
|
type: "link",
|
|
282
|
-
href: `https://www.checklistbank.org/dataset/${
|
|
294
|
+
href: `https://www.checklistbank.org/dataset/${t.key}`,
|
|
283
295
|
children: [
|
|
284
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ e.jsx(V, {}),
|
|
285
297
|
" "
|
|
286
298
|
]
|
|
287
299
|
}
|
|
@@ -289,16 +301,16 @@ class J extends h.Component {
|
|
|
289
301
|
}
|
|
290
302
|
)
|
|
291
303
|
] }),
|
|
292
|
-
/* @__PURE__ */
|
|
293
|
-
(
|
|
304
|
+
/* @__PURE__ */ e.jsx(o, { label: "Full name", children: t.title }),
|
|
305
|
+
(t.version || t.issued) && /* @__PURE__ */ e.jsx(
|
|
294
306
|
o,
|
|
295
307
|
{
|
|
296
|
-
label: `${
|
|
297
|
-
children: (
|
|
308
|
+
label: `${t.version ? "Version" : ""}${t.version && t.issued ? " / " : ""}${t.issued ? "Issued" : ""}`,
|
|
309
|
+
children: (t.version || t.issued) && `${t.version ? t.version : ""}${t.issued ? " / " + t.issued : ""}`
|
|
298
310
|
}
|
|
299
311
|
),
|
|
300
|
-
/* @__PURE__ */
|
|
301
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ e.jsx(o, { label: "DOI", children: t.doi ? /* @__PURE__ */ e.jsxs("a", { href: `https://doi.org/${t.doi}`, children: [
|
|
313
|
+
/* @__PURE__ */ e.jsx(
|
|
302
314
|
"img",
|
|
303
315
|
{
|
|
304
316
|
src: "https://www.checklistbank.org/images/DOI_logo.png",
|
|
@@ -306,89 +318,89 @@ class J extends h.Component {
|
|
|
306
318
|
alt: ""
|
|
307
319
|
}
|
|
308
320
|
),
|
|
309
|
-
|
|
321
|
+
t.doi
|
|
310
322
|
] }) : "-" }),
|
|
311
|
-
|
|
312
|
-
|
|
323
|
+
t.contact && !$(t.contact) && /* @__PURE__ */ e.jsx(o, { label: "Contact", children: /* @__PURE__ */ e.jsx(
|
|
324
|
+
b,
|
|
313
325
|
{
|
|
314
326
|
countryAlpha2: r,
|
|
315
|
-
agent:
|
|
327
|
+
agent: t.contact
|
|
316
328
|
}
|
|
317
329
|
) }),
|
|
318
|
-
|
|
319
|
-
|
|
330
|
+
t.publisher && !$(t.publisher) && /* @__PURE__ */ e.jsx(o, { label: "Publisher", children: /* @__PURE__ */ e.jsx(
|
|
331
|
+
b,
|
|
320
332
|
{
|
|
321
333
|
countryAlpha2: r,
|
|
322
|
-
agent:
|
|
334
|
+
agent: t.publisher
|
|
323
335
|
}
|
|
324
336
|
) }),
|
|
325
|
-
|
|
326
|
-
|
|
337
|
+
t.creator && /* @__PURE__ */ e.jsx(o, { label: "Creator", children: /* @__PURE__ */ e.jsx(w, { gutter: [8, 8], children: t.creator.map((i) => /* @__PURE__ */ e.jsx(y, { span: 8, children: /* @__PURE__ */ e.jsx(
|
|
338
|
+
b,
|
|
327
339
|
{
|
|
328
340
|
countryAlpha2: r,
|
|
329
|
-
agent:
|
|
341
|
+
agent: i
|
|
330
342
|
}
|
|
331
343
|
) })) }) }),
|
|
332
|
-
|
|
333
|
-
|
|
344
|
+
t.editor && /* @__PURE__ */ e.jsx(o, { label: "Editor", children: /* @__PURE__ */ e.jsx(w, { gutter: [8, 8], children: t.editor.map((i) => /* @__PURE__ */ e.jsx(y, { span: 8, children: /* @__PURE__ */ e.jsx(
|
|
345
|
+
b,
|
|
334
346
|
{
|
|
335
347
|
countryAlpha2: r,
|
|
336
|
-
agent:
|
|
348
|
+
agent: i
|
|
337
349
|
}
|
|
338
350
|
) })) }) }),
|
|
339
|
-
|
|
340
|
-
|
|
351
|
+
t.contributor && /* @__PURE__ */ e.jsx(o, { label: "Contributor", children: /* @__PURE__ */ e.jsx(w, { gutter: [8, 8], children: t.contributor.map((i) => /* @__PURE__ */ e.jsx(y, { span: 8, children: /* @__PURE__ */ e.jsx(
|
|
352
|
+
b,
|
|
341
353
|
{
|
|
342
354
|
countryAlpha2: r,
|
|
343
|
-
agent:
|
|
355
|
+
agent: i
|
|
344
356
|
}
|
|
345
357
|
) })) }) }),
|
|
346
|
-
/* @__PURE__ */
|
|
347
|
-
|
|
358
|
+
/* @__PURE__ */ e.jsx(o, { label: "Taxonomic coverage", children: /* @__PURE__ */ e.jsx(
|
|
359
|
+
Q,
|
|
348
360
|
{
|
|
349
|
-
dataset:
|
|
361
|
+
dataset: t,
|
|
350
362
|
datasetKey: s
|
|
351
363
|
}
|
|
352
364
|
) }),
|
|
353
|
-
/* @__PURE__ */
|
|
365
|
+
/* @__PURE__ */ e.jsx(
|
|
354
366
|
X,
|
|
355
367
|
{
|
|
356
368
|
datasetKey: s,
|
|
357
|
-
dataset:
|
|
369
|
+
dataset: t
|
|
358
370
|
}
|
|
359
371
|
),
|
|
360
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ e.jsx(o, { label: "Abstract", children: t.description ? /* @__PURE__ */ e.jsx(
|
|
361
373
|
"span",
|
|
362
374
|
{
|
|
363
375
|
dangerouslySetInnerHTML: {
|
|
364
|
-
__html:
|
|
376
|
+
__html: G.sanitize(q.parse(t.description))
|
|
365
377
|
}
|
|
366
378
|
}
|
|
367
379
|
) : "" }),
|
|
368
|
-
/* @__PURE__ */
|
|
369
|
-
/* @__PURE__ */
|
|
370
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ e.jsx(o, { label: "Taxonomic scope", children: t.taxonomicScope || "-" }),
|
|
381
|
+
/* @__PURE__ */ e.jsx(o, { label: "Geographic scope", children: t.geographicScope || "-" }),
|
|
382
|
+
/* @__PURE__ */ e.jsx(o, { label: "Temporal scope", children: t.temporalScope || "-" }),
|
|
371
383
|
" ",
|
|
372
|
-
/* @__PURE__ */
|
|
373
|
-
/* @__PURE__ */
|
|
374
|
-
/* @__PURE__ */
|
|
375
|
-
/* @__PURE__ */
|
|
376
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ e.jsx(o, { label: "License", children: t.license || "-" }),
|
|
385
|
+
/* @__PURE__ */ e.jsx(o, { label: "Checklist Confidence", children: /* @__PURE__ */ e.jsx(O, { value: t.confidence, disabled: !0 }) }),
|
|
386
|
+
/* @__PURE__ */ e.jsx(o, { label: "Completeness", children: t.completeness }),
|
|
387
|
+
/* @__PURE__ */ e.jsx(o, { label: "Website", children: t.url ? /* @__PURE__ */ e.jsx("a", { href: t.url, target: "_blank", children: t.url }) : "-" }),
|
|
388
|
+
/* @__PURE__ */ e.jsx(o, { label: "ISSN", children: t.issn ? /* @__PURE__ */ e.jsx(
|
|
377
389
|
"a",
|
|
378
390
|
{
|
|
379
|
-
href: `https://portal.issn.org/resource/ISSN/${
|
|
380
|
-
children:
|
|
391
|
+
href: `https://portal.issn.org/resource/ISSN/${t.issn}`,
|
|
392
|
+
children: t.issn
|
|
381
393
|
}
|
|
382
394
|
) : "-" }),
|
|
383
|
-
/* @__PURE__ */
|
|
384
|
-
/* @__PURE__ */
|
|
395
|
+
/* @__PURE__ */ e.jsx(o, { label: "GBIF key", children: t.gbifKey ? /* @__PURE__ */ e.jsx("a", { href: `https://www.gbif.org/dataset/${t.gbifKey}`, children: t.gbifKey }) : "-" }),
|
|
396
|
+
/* @__PURE__ */ e.jsx(o, { label: "Identifiers", children: t.identifier ? /* @__PURE__ */ e.jsx(
|
|
385
397
|
"ol",
|
|
386
398
|
{
|
|
387
399
|
style: {
|
|
388
400
|
listStyle: "none",
|
|
389
401
|
paddingInlineStart: "0px"
|
|
390
402
|
},
|
|
391
|
-
children: Object.keys(
|
|
403
|
+
children: Object.keys(t.identifier).map((i) => /* @__PURE__ */ e.jsxs(
|
|
392
404
|
"li",
|
|
393
405
|
{
|
|
394
406
|
style: {
|
|
@@ -396,34 +408,34 @@ class J extends h.Component {
|
|
|
396
408
|
marginRight: "8px"
|
|
397
409
|
},
|
|
398
410
|
children: [
|
|
399
|
-
`${
|
|
400
|
-
D[
|
|
411
|
+
`${i.toUpperCase()}: `,
|
|
412
|
+
D[i] ? /* @__PURE__ */ e.jsx(
|
|
401
413
|
"a",
|
|
402
414
|
{
|
|
403
|
-
href: `${D[
|
|
415
|
+
href: `${D[i]}${t.identifier[i]}`,
|
|
404
416
|
target: "_blank",
|
|
405
|
-
children:
|
|
417
|
+
children: t.identifier[i]
|
|
406
418
|
}
|
|
407
|
-
) :
|
|
419
|
+
) : t.identifier[i]
|
|
408
420
|
]
|
|
409
421
|
}
|
|
410
422
|
))
|
|
411
423
|
}
|
|
412
424
|
) : "-" }),
|
|
413
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ e.jsx(o, { label: "Citation", children: t.citation && /* @__PURE__ */ e.jsx(
|
|
414
426
|
"span",
|
|
415
427
|
{
|
|
416
|
-
dangerouslySetInnerHTML: { __html:
|
|
428
|
+
dangerouslySetInnerHTML: { __html: t.citation }
|
|
417
429
|
}
|
|
418
430
|
) }),
|
|
419
|
-
/* @__PURE__ */
|
|
420
|
-
(
|
|
431
|
+
/* @__PURE__ */ e.jsx(o, { label: "Source", children: t.source && H(t.source) ? t.source.map(
|
|
432
|
+
(i) => !!i && (i.citation ? /* @__PURE__ */ e.jsx(
|
|
421
433
|
"div",
|
|
422
434
|
{
|
|
423
435
|
style: { display: "inline-block" },
|
|
424
|
-
dangerouslySetInnerHTML: { __html:
|
|
436
|
+
dangerouslySetInnerHTML: { __html: i.citation }
|
|
425
437
|
}
|
|
426
|
-
) :
|
|
438
|
+
) : i.title)
|
|
427
439
|
) : "-" })
|
|
428
440
|
] })
|
|
429
441
|
]
|
|
@@ -431,25 +443,25 @@ class J extends h.Component {
|
|
|
431
443
|
) });
|
|
432
444
|
}
|
|
433
445
|
}
|
|
434
|
-
function
|
|
435
|
-
sourceDatasetKey:
|
|
446
|
+
function tt({
|
|
447
|
+
sourceDatasetKey: a,
|
|
436
448
|
datasetKey: l,
|
|
437
449
|
pageTitleTemplate: s,
|
|
438
|
-
auth:
|
|
450
|
+
auth: t,
|
|
439
451
|
...r
|
|
440
452
|
}) {
|
|
441
|
-
return /* @__PURE__ */
|
|
442
|
-
|
|
453
|
+
return /* @__PURE__ */ e.jsx(K.Provider, { value: R(r), children: /* @__PURE__ */ e.jsx(
|
|
454
|
+
Z,
|
|
443
455
|
{
|
|
444
|
-
sourceDatasetKey:
|
|
456
|
+
sourceDatasetKey: a,
|
|
445
457
|
datasetKey: l,
|
|
446
458
|
pageTitleTemplate: s,
|
|
447
|
-
auth:
|
|
459
|
+
auth: t
|
|
448
460
|
}
|
|
449
461
|
) });
|
|
450
462
|
}
|
|
451
|
-
const
|
|
463
|
+
const yt = _(T(tt));
|
|
452
464
|
export {
|
|
453
|
-
|
|
465
|
+
yt as SourceDataset
|
|
454
466
|
};
|
|
455
467
|
//# sourceMappingURL=sourceDataset.js.map
|