@piveau/dpi 0.1.0-beta.75 → 0.1.0-beta.77
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.
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import c from "axios";
|
|
2
|
-
const u = async (
|
|
2
|
+
const u = async (s) => {
|
|
3
3
|
try {
|
|
4
|
-
let e = `${
|
|
4
|
+
let e = `${s}vocabularies/hvd-category`;
|
|
5
5
|
return (await c.get(e)).data.result.results;
|
|
6
6
|
} catch (e) {
|
|
7
7
|
throw console.error("Error fetching HVD categories:", e), e;
|
|
8
8
|
}
|
|
9
|
-
}, g = async (
|
|
9
|
+
}, g = async (s) => {
|
|
10
10
|
try {
|
|
11
|
-
let e = `${
|
|
11
|
+
let e = `${s}vocabularies/data-theme`;
|
|
12
12
|
return (await c.get(e)).data.result.results;
|
|
13
13
|
} catch (e) {
|
|
14
14
|
throw console.error("Error fetching Dataset categories:", e), e;
|
|
15
15
|
}
|
|
16
|
-
}, h = async (
|
|
16
|
+
}, h = async (s) => {
|
|
17
17
|
try {
|
|
18
|
-
let e = `${
|
|
18
|
+
let e = `${s}vocabularies/access-right`;
|
|
19
19
|
return (await c.get(e)).data.result.results;
|
|
20
20
|
} catch (e) {
|
|
21
21
|
throw console.error("Error fetching Dataset categories:", e), e;
|
|
22
22
|
}
|
|
23
|
-
}, d = async (
|
|
23
|
+
}, d = async (s) => {
|
|
24
24
|
try {
|
|
25
|
-
let e = `${
|
|
25
|
+
let e = `${s}vocabularies/iana-media-types`;
|
|
26
26
|
return (await c.get(e, {
|
|
27
27
|
headers: { Accept: "application/json" }
|
|
28
28
|
})).data.result;
|
|
29
29
|
} catch (e) {
|
|
30
30
|
throw console.error("Error fetching file types:", e), e;
|
|
31
31
|
}
|
|
32
|
-
}, p = async (
|
|
32
|
+
}, p = async (s) => {
|
|
33
33
|
try {
|
|
34
|
-
let e = `${
|
|
34
|
+
let e = `${s}vocabularies/file-type`;
|
|
35
35
|
return (await c.get(e, {
|
|
36
36
|
headers: { Accept: "application/json" }
|
|
37
37
|
})).data.result;
|
|
38
38
|
} catch (e) {
|
|
39
39
|
throw console.error("Error fetching file types:", e), e;
|
|
40
40
|
}
|
|
41
|
-
}, n = async (
|
|
41
|
+
}, n = async (s) => {
|
|
42
42
|
let e = [
|
|
43
43
|
"district-key",
|
|
44
44
|
"government-district-key",
|
|
@@ -48,27 +48,27 @@ const u = async (a) => {
|
|
|
48
48
|
"state-key"
|
|
49
49
|
], r = [], o = [];
|
|
50
50
|
try {
|
|
51
|
-
let l = `${
|
|
51
|
+
let l = `${s}vocabularies/political-geocoding-level`;
|
|
52
52
|
const t = await c.get(l);
|
|
53
|
-
for (let
|
|
53
|
+
for (let a = 0; a < t.data.result.results.length; a++)
|
|
54
54
|
o.push(
|
|
55
55
|
await c.get(
|
|
56
|
-
`${
|
|
56
|
+
`${s}vocabularies/political-geocoding-` + e[a]
|
|
57
57
|
)
|
|
58
58
|
), r.push({
|
|
59
|
-
headers: e[
|
|
60
|
-
list: o[
|
|
59
|
+
headers: e[a],
|
|
60
|
+
list: o[a].data.result.results
|
|
61
61
|
});
|
|
62
62
|
return r;
|
|
63
63
|
} catch (l) {
|
|
64
64
|
throw console.error("Error fetching Dataset categories:", l), l;
|
|
65
65
|
}
|
|
66
|
-
}, y = async (
|
|
66
|
+
}, y = async (s, e) => (await n(e)).map((l) => {
|
|
67
67
|
const t = l.list.filter(
|
|
68
|
-
(
|
|
68
|
+
(a) => a.alt_label && a.alt_label.de && a.alt_label.de.includes(s)
|
|
69
69
|
);
|
|
70
70
|
return { ...l, list: t };
|
|
71
|
-
}).filter((l) => l.list.length > 0), f = async (
|
|
71
|
+
}).filter((l) => l.list.length > 0), f = async (s, e, r) => {
|
|
72
72
|
let o = [];
|
|
73
73
|
try {
|
|
74
74
|
let l = `${e}vocabularies/${r}`;
|
|
@@ -76,9 +76,9 @@ const u = async (a) => {
|
|
|
76
76
|
} catch (l) {
|
|
77
77
|
throw console.error("Error fetching Dataset categories:", l), l;
|
|
78
78
|
}
|
|
79
|
-
}, b = async (
|
|
79
|
+
}, b = async (s) => {
|
|
80
80
|
try {
|
|
81
|
-
let e = `${
|
|
81
|
+
let e = `${s}vocabularies/planned-availability`;
|
|
82
82
|
return (await c.get(e)).data.result.results.map((o) => ({
|
|
83
83
|
value: o.id,
|
|
84
84
|
label: o.pref_label.de,
|
|
@@ -87,48 +87,48 @@ const u = async (a) => {
|
|
|
87
87
|
} catch (e) {
|
|
88
88
|
throw console.error("Error fetching planned availability:", e), e;
|
|
89
89
|
}
|
|
90
|
-
}, v = async (
|
|
90
|
+
}, v = async (s, e = "de") => {
|
|
91
91
|
try {
|
|
92
|
-
let r = `${
|
|
92
|
+
let r = `${s}vocabularies/language`, l = (await c.get(r)).data.result.results.map((t) => ({
|
|
93
93
|
value: t.id,
|
|
94
94
|
label: `${t.pref_label[e] || t.pref_label.en || t.id} (${t.id})`,
|
|
95
95
|
uri: t.resource
|
|
96
96
|
}));
|
|
97
|
-
return l.sort((t,
|
|
97
|
+
return l.sort((t, a) => t.label.localeCompare(a.label, e)), l;
|
|
98
98
|
} catch (r) {
|
|
99
99
|
throw console.error("Error fetching languages:", r), r;
|
|
100
100
|
}
|
|
101
|
-
}, w = async (
|
|
101
|
+
}, w = async (s, e = "de") => {
|
|
102
102
|
try {
|
|
103
|
-
let r = `${
|
|
103
|
+
let r = `${s}vocabularies/licenses`;
|
|
104
104
|
return (await c.get(r)).data.result.results.map((t) => {
|
|
105
|
-
var
|
|
105
|
+
var a;
|
|
106
106
|
return {
|
|
107
107
|
value: t.id,
|
|
108
108
|
label: t.pref_label[e] || t.pref_label.en || t.id,
|
|
109
|
-
homepage: ((
|
|
109
|
+
homepage: ((a = t.extensions) == null ? void 0 : a.foaf_homepage) || null,
|
|
110
110
|
uri: t.resource
|
|
111
111
|
};
|
|
112
112
|
});
|
|
113
113
|
} catch (r) {
|
|
114
114
|
throw console.error("Error fetching licenses:", r), r;
|
|
115
115
|
}
|
|
116
|
-
}, $ = async (
|
|
116
|
+
}, $ = async (s, e = "de") => {
|
|
117
117
|
try {
|
|
118
|
-
let r = `${
|
|
118
|
+
let r = `${s}vocabularies/adms`;
|
|
119
119
|
return (await c.get(r)).data.result.results.filter(
|
|
120
|
-
(
|
|
121
|
-
).map((
|
|
122
|
-
value:
|
|
123
|
-
label:
|
|
124
|
-
resource:
|
|
120
|
+
(a) => a.in_scheme === "http://purl.org/adms/status/1.0" && a.resource !== "http://purl.org/adms/status/UnderDevelopment"
|
|
121
|
+
).map((a) => ({
|
|
122
|
+
value: a.id,
|
|
123
|
+
label: a.pref_label[e] || a.pref_label.en || a.id,
|
|
124
|
+
resource: a.resource || null
|
|
125
125
|
}));
|
|
126
126
|
} catch (r) {
|
|
127
127
|
throw console.error("Error fetching dataset status:", r), r;
|
|
128
128
|
}
|
|
129
|
-
}, m = async (
|
|
129
|
+
}, m = async (s, e = "en") => {
|
|
130
130
|
try {
|
|
131
|
-
let r = `${
|
|
131
|
+
let r = `${s}vocabularies/spdx-checksum-algorithm`;
|
|
132
132
|
return (await c.get(r)).data.result.results.map((t) => ({
|
|
133
133
|
value: t.id,
|
|
134
134
|
label: t.pref_label[e] || t.pref_label.en || t.id,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "axios";
|
|
2
|
-
import { asSomeArray as
|
|
2
|
+
import { asSomeArray as Ut } from "../../composables/useDpiSimpleLoader.js";
|
|
3
3
|
let d = { distribution: [], dataset: {}, meta: {} };
|
|
4
|
-
function
|
|
4
|
+
function Ct(t) {
|
|
5
5
|
return t.replace(/[^a-z0-9\s]/gi, "").replace(/\s+/g, "-").toLowerCase();
|
|
6
6
|
}
|
|
7
|
-
async function
|
|
8
|
-
var A, f, v, D, k, O, R, j, S, w, I, x, L, B, U, P, C, T, G, M, q, X, z, F, $, N, E, H, W, Y, _, J, K, Q, Z, m, V, tt, it, dt, et, at, nt, ct, ot, st, lt, rt, pt, bt, gt, yt, ut, ht, At, ft, vt, Dt, kt;
|
|
7
|
+
async function zt(t, g, l, b) {
|
|
8
|
+
var A, f, v, D, k, O, R, j, S, w, I, x, L, B, U, P, C, T, G, M, q, X, z, F, $, N, E, H, W, Y, _, J, K, Q, Z, m, V, tt, it, dt, et, at, nt, ct, ot, st, lt, rt, pt, bt, gt, yt, ut, ht, At, ft, vt, Dt, kt, Ot, Rt, jt, St, wt, It, xt, Lt;
|
|
9
9
|
const u = g.specification.prefixes;
|
|
10
10
|
let p = [];
|
|
11
11
|
const o = Object.keys(t);
|
|
@@ -14,7 +14,7 @@ async function Ut(t, g, l, b) {
|
|
|
14
14
|
p.push(crypto.randomUUID()), d.dataset["dcat:distribution"].push({
|
|
15
15
|
"@id": `https://piveau.io/set/distribution/${p[c]}`
|
|
16
16
|
});
|
|
17
|
-
const
|
|
17
|
+
const Pt = new URLSearchParams(window.location.search).get("edit");
|
|
18
18
|
let y = "";
|
|
19
19
|
try {
|
|
20
20
|
for (let c = 0; c < o.length; c++) {
|
|
@@ -33,9 +33,9 @@ async function Ut(t, g, l, b) {
|
|
|
33
33
|
if (o[c] === "BasicInfos") {
|
|
34
34
|
d.dataset["dpi:isDPIv3"] = !0;
|
|
35
35
|
for (let i = 0; i < Object.keys(t.BasicInfos).length; i++)
|
|
36
|
-
Object.keys(t.BasicInfos)[i] === "dct:title" && (d.dataset["dct:title"] = t.BasicInfos["dct:title"][0] || "", y =
|
|
36
|
+
Object.keys(t.BasicInfos)[i] === "dct:title" && (d.dataset["dct:title"] = t.BasicInfos["dct:title"][0] || "", y = Ct(
|
|
37
37
|
t.BasicInfos["dct:title"][0]["@value"]
|
|
38
|
-
),
|
|
38
|
+
), Pt === "true" && (y = t.BasicInfos.datasetID)), Object.keys(t.BasicInfos)[i] === "dct:description" && (d.dataset["dct:description"] = t.BasicInfos["dct:description"][0] || ""), Object.keys(t.BasicInfos)[i] === "dct:modified" && ((v = t.BasicInfos["dct:modified"]) != null && v[0] ? d.dataset["dct:modified"] = { ...(D = t.BasicInfos["dct:modified"]) == null ? void 0 : D[0], "@type": ((O = (k = t.BasicInfos["dct:modified"]) == null ? void 0 : k[0]) == null ? void 0 : O["@type"]) || "http://www.w3.org/2001/XMLSchema#date" } : d.dataset["dct:modified"] = void 0), Object.keys(t.BasicInfos)[i] === "dct:publisher" && ((R = t.BasicInfos["dct:publisher"]) != null && R[0] ? d.dataset["dct:publisher"] = { ...(j = t.BasicInfos["dct:publisher"]) == null ? void 0 : j[0], "@type": ((w = (S = t.BasicInfos["dct:publisher"]) == null ? void 0 : S[0]) == null ? void 0 : w["@type"]) || "foaf:Agent" } : d.dataset["dct:publisher"] = void 0), Object.keys(t.BasicInfos)[i] === "dcat:contactPoint" && ((I = t.BasicInfos["dcat:contactPoint"]) != null && I[0] ? d.dataset["dcat:contactPoint"] = { ...(x = t.BasicInfos["dcat:contactPoint"]) == null ? void 0 : x[0], "@type": ((B = (L = t.BasicInfos["dcat:contactPoint"]) == null ? void 0 : L[0]) == null ? void 0 : B["@type"]) || "vcard:Organization" } : d.dataset["dcat:contactPoint"] = void 0), d.dataset["@type"] = "dcat:Dataset", d.meta["dcat:catalog"] = l.permissions[0].rsname, d.meta["@type"] = "dcat:CatalogRecord";
|
|
39
39
|
}
|
|
40
40
|
if (o[c] === "Covering" && Object.keys(t.Covering).length > 1)
|
|
41
41
|
for (let i = 0; i < Object.keys(t.Covering).length; i++) {
|
|
@@ -110,7 +110,7 @@ async function Ut(t, g, l, b) {
|
|
|
110
110
|
"@id": (e == null ? void 0 : e.uri) || ""
|
|
111
111
|
}), ((Z = (Q = (K = t.DistributionSimple) == null ? void 0 : K["dcat:distribution"]) == null ? void 0 : Q[i]) == null ? void 0 : Z["dcatap:applicableLegislation"]) != null && (d.distribution[i]["dct:format"] = (tt = (V = (m = t.DistributionSimple) == null ? void 0 : m["dcat:distribution"]) == null ? void 0 : V[i]) == null ? void 0 : tt["dcatap:applicableLegislation"]["@id"]);
|
|
112
112
|
const s = ((et = (dt = (it = t.DistributionSimple) == null ? void 0 : it["dcat:distribution"]) == null ? void 0 : dt[i]) == null ? void 0 : et.conformsToItems) || [];
|
|
113
|
-
if (s.length !== 0 && (d.distribution[i]["dct:conformsTo"] =
|
|
113
|
+
if (s.length !== 0 && (d.distribution[i]["dct:conformsTo"] = Ut(
|
|
114
114
|
s
|
|
115
115
|
).filter(
|
|
116
116
|
(a) => a && (a["dcat:downloadURL"] || a["dct:title"])
|
|
@@ -145,15 +145,15 @@ async function Ut(t, g, l, b) {
|
|
|
145
145
|
"@language": "de",
|
|
146
146
|
"@value": t.DistributionSimple["dcat:distribution"][i]["dct:title"]
|
|
147
147
|
}), Object.keys(
|
|
148
|
-
t.DistributionSimple["dcat:distribution"][i]["dct:accessRights"]
|
|
148
|
+
((nt = (at = t.DistributionSimple["dcat:distribution"]) == null ? void 0 : at[i]) == null ? void 0 : nt["dct:accessRights"]) || {}
|
|
149
149
|
).length !== 0 && (d.distribution[i]["dct:accessRights"] = {
|
|
150
150
|
"@id": t.DistributionSimple["dcat:distribution"][i]["dct:accessRights"].uri
|
|
151
151
|
}), t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"] != null && Object.keys(
|
|
152
|
-
t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"]
|
|
152
|
+
((ct = t.DistributionSimple["dcat:distribution"][i]) == null ? void 0 : ct["dcat:compressFormat"]) || {}
|
|
153
153
|
).length !== 0 && t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"].uri !== "" && (d.distribution[i]["dcat:compressFormat"] = {
|
|
154
154
|
"@id": t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"].uri || ""
|
|
155
155
|
}), Object.keys(
|
|
156
|
-
t.DistributionSimple["dcat:distribution"][i]["dcat:packageFormat"]
|
|
156
|
+
((st = (ot = t.DistributionSimple["dcat:distribution"]) == null ? void 0 : ot[i]) == null ? void 0 : st["dcat:packageFormat"]) || {}
|
|
157
157
|
).length !== 0 && t.DistributionSimple["dcat:distribution"][i]["dcat:packageFormat"].uri !== "" && (d.distribution[i]["dcat:packageFormat"] = {
|
|
158
158
|
"@id": t.DistributionSimple["dcat:distribution"][i]["dcat:packageFormat"].uri || ""
|
|
159
159
|
}), t.DistributionSimple["dcat:distribution"][i].checksum.uri !== "" && (d.distribution[i]["spdx:checksum"] = {
|
|
@@ -163,7 +163,7 @@ async function Ut(t, g, l, b) {
|
|
|
163
163
|
"@id": t.DistributionSimple["dcat:distribution"][i].checksum.uri || ""
|
|
164
164
|
}
|
|
165
165
|
}), Object.keys(
|
|
166
|
-
t.DistributionSimple["dcat:distribution"][i]["dct:language"]
|
|
166
|
+
((rt = (lt = t.DistributionSimple["dcat:distribution"]) == null ? void 0 : lt[i]) == null ? void 0 : rt["dct:language"]) || {}
|
|
167
167
|
).length !== 0) {
|
|
168
168
|
d.distribution[i]["dct:language"] = [];
|
|
169
169
|
for (let a = 0; a < t.DistributionSimple["dcat:distribution"][i]["dct:language"].length; a++)
|
|
@@ -172,12 +172,12 @@ async function Ut(t, g, l, b) {
|
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
t.DistributionSimple["dcat:distribution"][i]["adms:status"].uri !== "" && Object.keys(
|
|
175
|
-
t.DistributionSimple["dcat:distribution"][i]["adms:status"]
|
|
175
|
+
((pt = t.DistributionSimple["dcat:distribution"][i]) == null ? void 0 : pt["adms:status"]) || {}
|
|
176
176
|
).length !== 0 && (d.distribution[i]["adms:status"] = {
|
|
177
177
|
"@id": t.DistributionSimple["dcat:distribution"][i]["adms:status"].uri || ""
|
|
178
178
|
});
|
|
179
|
-
const
|
|
180
|
-
if (
|
|
179
|
+
const Bt = ((yt = (gt = (bt = t.DistributionSimple) == null ? void 0 : bt["dcat:distribution"]) == null ? void 0 : gt[i]) == null ? void 0 : yt.accessServices) || [];
|
|
180
|
+
if (Bt.length !== 0 && (d.distribution[i]["dcat:accessService"] = (ut = Ut(Bt)) == null ? void 0 : ut.filter(
|
|
181
181
|
(a) => a && (a["dct:title"] || a["dct:description"] || a["dcat:downloadURL"] || a["dcat:endpointURL"])
|
|
182
182
|
).map((a) => {
|
|
183
183
|
const n = {
|
|
@@ -196,7 +196,7 @@ async function Ut(t, g, l, b) {
|
|
|
196
196
|
"@id": r
|
|
197
197
|
}), n;
|
|
198
198
|
})), d.distribution[i]["foaf:page"] || (d.distribution[i]["foaf:page"] = []), d.distribution[i]["foaf:page"].length !== 0)
|
|
199
|
-
for (let a = 0; a < ((
|
|
199
|
+
for (let a = 0; a < ((ft = (At = (ht = t.DistributionSimple) == null ? void 0 : ht["dcat:distribution"]) == null ? void 0 : At[i]) == null ? void 0 : ft.documentations.length); a++) {
|
|
200
200
|
const n = t.DistributionSimple["dcat:distribution"][i].documentations[a];
|
|
201
201
|
if ((n == null ? void 0 : n["dct:title"]) !== void 0) {
|
|
202
202
|
const r = {
|
|
@@ -238,7 +238,7 @@ async function Ut(t, g, l, b) {
|
|
|
238
238
|
for (let e = 0; e < t.Additionals["dcat:keyword"].length; e++)
|
|
239
239
|
d.dataset["dcat:keyword"] === void 0 && (d.dataset["dcat:keyword"] = []), d.dataset["dcat:keyword"].push({
|
|
240
240
|
"@value": t.Additionals["dcat:keyword"][e]["@value"],
|
|
241
|
-
"@language": ((
|
|
241
|
+
"@language": ((Dt = (vt = t.Additionals["dcat:keyword"]) == null ? void 0 : vt[e]) == null ? void 0 : Dt["@language"]) || "de"
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
if (Object.keys(t.Additionals)[i] === "dct:references") {
|
|
@@ -320,7 +320,7 @@ async function Ut(t, g, l, b) {
|
|
|
320
320
|
for (let e = 0; e < t.Additionals["dcatde:legalBasis"].length; e++)
|
|
321
321
|
d.dataset["dcatde:legalBasis"] === void 0 && (d.dataset["dcatde:legalBasis"] = []), d.dataset["dcatde:legalBasis"].push({
|
|
322
322
|
"@value": t.Additionals["dcatde:legalBasis"][e]["@value"],
|
|
323
|
-
"@language": ((
|
|
323
|
+
"@language": ((Rt = (Ot = (kt = t.Additionals) == null ? void 0 : kt["dcatde:legalBasis"]) == null ? void 0 : Ot[e]) == null ? void 0 : Rt["@language"]) || "de"
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
326
|
if (Object.keys(t.Additionals)[i] === "dct:relation") {
|
|
@@ -458,7 +458,7 @@ async function Ut(t, g, l, b) {
|
|
|
458
458
|
for (let e = 0; e < t.Additionals["foaf:page"].length; e++)
|
|
459
459
|
d.dataset["foaf:page"] === void 0 && (d.dataset["foaf:page"] = []), d.dataset["foaf:page"].push({
|
|
460
460
|
"dct:format": {
|
|
461
|
-
"@id": (
|
|
461
|
+
"@id": (St = (jt = t.Additionals["foaf:page"]) == null ? void 0 : jt[e]) == null ? void 0 : St.uri
|
|
462
462
|
},
|
|
463
463
|
"dct:title": t.Additionals["foaf:page"][e]["dct:title"],
|
|
464
464
|
"dct:description": t.Additionals["foaf:page"][e]["dct:description"],
|
|
@@ -500,7 +500,7 @@ async function Ut(t, g, l, b) {
|
|
|
500
500
|
}), Object.keys(t.Additionals)[i] === "dcatde:politicalGeocodingLevelURI")
|
|
501
501
|
for (let e = 0; e < t.Additionals["dcatde:politicalGeocodingLevelURI"].length; e++)
|
|
502
502
|
d.dataset["dcatde:politicalGeocodingLevelURI"] === void 0 && (d.dataset["dcatde:politicalGeocodingLevelURI"] = []), d.dataset["dcatde:politicalGeocodingLevelURI"].push({
|
|
503
|
-
"@id": ((
|
|
503
|
+
"@id": ((It = (wt = t.Additionals["dcatde:politicalGeocodingLevelURI"]) == null ? void 0 : wt[e]) == null ? void 0 : It.uri) || ((Lt = (xt = t.Additionals["dcatde:politicalGeocodingLevelURI"]) == null ? void 0 : xt[e]) == null ? void 0 : Lt["@id"]) || ""
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
506
|
} catch (i) {
|
|
@@ -508,10 +508,9 @@ async function Ut(t, g, l, b) {
|
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
} catch (c) {
|
|
511
|
-
debugger;
|
|
512
511
|
console.log(c);
|
|
513
512
|
}
|
|
514
|
-
let h =
|
|
513
|
+
let h = Tt(d, u);
|
|
515
514
|
return { actionParams: {
|
|
516
515
|
id: y,
|
|
517
516
|
catalog: l.permissions[0].rsname,
|
|
@@ -520,7 +519,7 @@ async function Ut(t, g, l, b) {
|
|
|
520
519
|
description: d.dataset["dct:description"]["@value"]
|
|
521
520
|
}, body: h };
|
|
522
521
|
}
|
|
523
|
-
function
|
|
522
|
+
function Tt(t, g) {
|
|
524
523
|
const l = {}, b = Object.keys(t);
|
|
525
524
|
for (let o = 0; o < b.length; o++)
|
|
526
525
|
b[o], l[b[o]] = t[b[o]];
|
|
@@ -540,5 +539,5 @@ function wt(t, g) {
|
|
|
540
539
|
return console.log(p), p;
|
|
541
540
|
}
|
|
542
541
|
export {
|
|
543
|
-
|
|
542
|
+
zt as default
|
|
544
543
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@piveau/dpi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.77",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.css",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@headlessui/vue": "^1.7.23",
|
|
56
56
|
"@histoire/plugin-vue": "1.0.0-alpha.2",
|
|
57
57
|
"@phosphor-icons/vue": "^2.2.1",
|
|
58
|
-
"@piveau/jsonld": "file:../../bin/piveau-jsonld-1.0.0-beta.
|
|
58
|
+
"@piveau/jsonld": "file:../../bin/piveau-jsonld-1.0.0-beta.26.tgz",
|
|
59
59
|
"@popperjs/core": "^2.11.8",
|
|
60
60
|
"@types/jsonld": "^1.5.15",
|
|
61
61
|
"@types/node": "^24.1.0",
|