@piveau/dpi 0.2.0-alpha.73 → 0.2.0-alpha.74
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/dist/assets/dpi.css +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +155 -155
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +39 -39
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +126 -123
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +55 -40
- package/package.json +1 -1
|
@@ -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,
|
|
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 kt(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++) {
|
|
@@ -25,7 +25,7 @@ async function kt(t, g, l, b) {
|
|
|
25
25
|
"@id": t.Discoverability.discoverabilityPage[e].uri
|
|
26
26
|
});
|
|
27
27
|
d.dataset["dcat:theme"] = i, t.Discoverability.hvdPage && Object.keys(t.Discoverability.hvdPage).length !== 0 && t.Discoverability.hvdPage[0].label !== void 0 && (d.dataset["dcatap:hvdCategory"] = {
|
|
28
|
-
"@id": (
|
|
28
|
+
"@id": (f = (A = t.Discoverability) == null ? void 0 : A.hvdPage) == null ? void 0 : f[0].uri
|
|
29
29
|
}, d.dataset["dcatap:applicableLegislation"] = {
|
|
30
30
|
"@id": "http://data.europa.eu/eli/reg_impl/2023/138/oj"
|
|
31
31
|
});
|
|
@@ -33,13 +33,22 @@ async function kt(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"] = {
|
|
39
|
+
...(D = t.BasicInfos["dct:modified"]) == null ? void 0 : D[0],
|
|
40
|
+
"@type": ((O = (k = t.BasicInfos["dct:modified"]) == null ? void 0 : k[0]) == null ? void 0 : O["@type"]) || "http://www.w3.org/2001/XMLSchema#date"
|
|
41
|
+
} : 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"] = {
|
|
42
|
+
...(j = t.BasicInfos["dct:publisher"]) == null ? void 0 : j[0],
|
|
43
|
+
"@type": ((w = (S = t.BasicInfos["dct:publisher"]) == null ? void 0 : S[0]) == null ? void 0 : w["@type"]) || "foaf:Agent"
|
|
44
|
+
} : 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"] = {
|
|
45
|
+
...(x = t.BasicInfos["dcat:contactPoint"]) == null ? void 0 : x[0],
|
|
46
|
+
"@type": ((B = (L = t.BasicInfos["dcat:contactPoint"]) == null ? void 0 : L[0]) == null ? void 0 : B["@type"]) || "vcard:Organization"
|
|
47
|
+
} : 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
48
|
}
|
|
40
49
|
if (o[c] === "Covering" && Object.keys(t.Covering).length > 1)
|
|
41
50
|
for (let i = 0; i < Object.keys(t.Covering).length; i++) {
|
|
42
|
-
if (Object.keys(t.Covering)[i] === "dcat:temporalResolution" && t.Covering["dcat:temporalResolution"] !== void 0 && Object.keys((
|
|
51
|
+
if (Object.keys(t.Covering)[i] === "dcat:temporalResolution" && t.Covering["dcat:temporalResolution"] !== void 0 && Object.keys((U = t.Covering) == null ? void 0 : U["dcat:temporalResolution"]).length > 0 && ((C = (P = t.Covering) == null ? void 0 : P["dcat:temporalResolution"]) == null ? void 0 : C.type) !== void 0) {
|
|
43
52
|
d.dataset["dct:temporal"] = [];
|
|
44
53
|
for (let e = 0; e < t.Covering["dcat:temporalResolution"]["dct:temporal"].length; e++)
|
|
45
54
|
t.Covering["dcat:temporalResolution"].type != null && t.Covering["dcat:temporalResolution"]["dct:temporal"][e].dataType === "date" && t.Covering["dcat:temporalResolution"]["dct:temporal"][e]["dcat:startDate"] !== "" && (d.dataset["dct:temporal"][e] = {
|
|
@@ -64,15 +73,15 @@ async function kt(t, g, l, b) {
|
|
|
64
73
|
}
|
|
65
74
|
});
|
|
66
75
|
}
|
|
67
|
-
Object.keys(t.Covering)[i] === "dcatde:politicalGeocodingURI" && ((
|
|
68
|
-
"@id": ((
|
|
76
|
+
Object.keys(t.Covering)[i] === "dcatde:politicalGeocodingURI" && ((M = (G = (T = t.Covering) == null ? void 0 : T["dcatde:politicalGeocodingURI"]) == null ? void 0 : G[0]) == null ? void 0 : M.uri) != null && (d.dataset["dcatde:politicalGeocodingURI"] = {
|
|
77
|
+
"@id": ((X = (q = t.Covering["dcatde:politicalGeocodingURI"]) == null ? void 0 : q[0]) == null ? void 0 : X.uri) || ""
|
|
69
78
|
}, d.dataset["dct:spatial"] === void 0 && (d.dataset["dct:spatial"] = []), d.dataset["dct:spatial"].push({
|
|
70
|
-
"@id": ((
|
|
79
|
+
"@id": ((F = (z = t.Covering["dcatde:politicalGeocodingURI"]) == null ? void 0 : z[0]) == null ? void 0 : F.uri) || ""
|
|
71
80
|
}));
|
|
72
81
|
}
|
|
73
82
|
if (o[c] === "DistributionSimple")
|
|
74
83
|
for (let i = 0; i < t.DistributionSimple["dcat:distribution"].length; i++) {
|
|
75
|
-
if (d.distribution[i] = {}, ((
|
|
84
|
+
if (d.distribution[i] = {}, ((N = ($ = t.Discoverability) == null ? void 0 : $.hvdPage[0]) == null ? void 0 : N.uri) != null && (d.distribution[i]["dcatap:applicableLegislation"] = {
|
|
76
85
|
"@id": "http://data.europa.eu/eli/reg_impl/2023/138/oj"
|
|
77
86
|
}), d.distribution[i]["@type"] = "dcat:Distribution", d.distribution[i]["@id"] = `https://piveau.io/set/distribution/${p[i]}`, t.DistributionSimple["dcat:distribution"][i]["dcat:accessURL"] && (d.distribution[i]["dcat:accessURL"] = {
|
|
78
87
|
"@id": t.DistributionSimple["dcat:distribution"][i]["dcat:accessURL"]
|
|
@@ -86,8 +95,8 @@ async function kt(t, g, l, b) {
|
|
|
86
95
|
};
|
|
87
96
|
}
|
|
88
97
|
if (Object.keys(
|
|
89
|
-
(
|
|
90
|
-
).length !== 0 && ((
|
|
98
|
+
(E = t.DistributionSimple["dcat:distribution"][i]) == null ? void 0 : E.policyItems
|
|
99
|
+
).length !== 0 && ((H = t.DistributionSimple["dcat:distribution"][i]) == null ? void 0 : H.policyItems[0]["dcat:downloadURL"]) !== "") {
|
|
91
100
|
d.distribution[i]["odrl:hasPolicy"] = [];
|
|
92
101
|
for (let a = 0; a < t.DistributionSimple["dcat:distribution"][i].policyItems.length; a++)
|
|
93
102
|
d.distribution[i]["odrl:hasPolicy"][a] = {
|
|
@@ -95,7 +104,7 @@ async function kt(t, g, l, b) {
|
|
|
95
104
|
};
|
|
96
105
|
}
|
|
97
106
|
Object.keys(
|
|
98
|
-
(
|
|
107
|
+
(W = t.DistributionSimple["dcat:distribution"][i]) == null ? void 0 : W["dct:license"]
|
|
99
108
|
).length !== 0 && (d.distribution[i]["dct:license"] = {
|
|
100
109
|
"@id": t.DistributionSimple["dcat:distribution"][i]["dct:license"].uri || t.DistributionSimple["dct:license"][0].uri
|
|
101
110
|
}, t.DistributionSimple["dcat:distribution"][i]["dct:license"]["dcterms:license"] === "" && t.DistributionSimple["dct:license"][0].title !== "" && (d.distribution[i]["dcatde:licenseAttributionByText"] = {
|
|
@@ -105,12 +114,12 @@ async function kt(t, g, l, b) {
|
|
|
105
114
|
"@language": "de",
|
|
106
115
|
"@value": t.DistributionSimple["dcat:distribution"][i]["dct:license"].title
|
|
107
116
|
}));
|
|
108
|
-
const e = (
|
|
117
|
+
const e = (J = (_ = (Y = t.DistributionSimple) == null ? void 0 : Y["dcat:distribution"]) == null ? void 0 : _[i]) == null ? void 0 : J["dct:format"];
|
|
109
118
|
e && (d.distribution[i]["dct:format"] = {
|
|
110
119
|
"@id": (e == null ? void 0 : e.uri) || ""
|
|
111
|
-
}), ((
|
|
112
|
-
const s = ((
|
|
113
|
-
if (s.length !== 0 && (d.distribution[i]["dct:conformsTo"] =
|
|
120
|
+
}), ((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"]);
|
|
121
|
+
const s = ((et = (dt = (it = t.DistributionSimple) == null ? void 0 : it["dcat:distribution"]) == null ? void 0 : dt[i]) == null ? void 0 : et.conformsToItems) || [];
|
|
122
|
+
if (s.length !== 0 && (d.distribution[i]["dct:conformsTo"] = Ut(
|
|
114
123
|
s
|
|
115
124
|
).filter(
|
|
116
125
|
(a) => a && (a["dcat:downloadURL"] || a["dct:title"])
|
|
@@ -126,6 +135,7 @@ async function kt(t, g, l, b) {
|
|
|
126
135
|
"@value": t.DistributionSimple["dcat:distribution"][i]["dcat:byteSize"] || "",
|
|
127
136
|
"@type": "http://www.w3.org/2001/XMLSchema#decimal"
|
|
128
137
|
}), t.DistributionSimple["dcat:distribution"][i]["dcatde:licenseAttributionByText"] && (d.distribution[i]["dcatde:licenseAttributionByText"] = {
|
|
138
|
+
"@language": "de",
|
|
129
139
|
"@value": t.DistributionSimple["dcat:distribution"][i]["dcatde:licenseAttributionByText"] || ""
|
|
130
140
|
}), Object.keys(
|
|
131
141
|
t.DistributionSimple["dcat:distribution"][i]["dcatap:availability"]
|
|
@@ -144,15 +154,15 @@ async function kt(t, g, l, b) {
|
|
|
144
154
|
"@language": "de",
|
|
145
155
|
"@value": t.DistributionSimple["dcat:distribution"][i]["dct:title"]
|
|
146
156
|
}), Object.keys(
|
|
147
|
-
t.DistributionSimple["dcat:distribution"][i]["dct:accessRights"]
|
|
157
|
+
((nt = (at = t.DistributionSimple["dcat:distribution"]) == null ? void 0 : at[i]) == null ? void 0 : nt["dct:accessRights"]) || {}
|
|
148
158
|
).length !== 0 && (d.distribution[i]["dct:accessRights"] = {
|
|
149
159
|
"@id": t.DistributionSimple["dcat:distribution"][i]["dct:accessRights"].uri
|
|
150
160
|
}), t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"] != null && Object.keys(
|
|
151
|
-
t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"]
|
|
161
|
+
((ct = t.DistributionSimple["dcat:distribution"][i]) == null ? void 0 : ct["dcat:compressFormat"]) || {}
|
|
152
162
|
).length !== 0 && t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"].uri !== "" && (d.distribution[i]["dcat:compressFormat"] = {
|
|
153
163
|
"@id": t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"].uri || ""
|
|
154
164
|
}), Object.keys(
|
|
155
|
-
t.DistributionSimple["dcat:distribution"][i]["dcat:packageFormat"]
|
|
165
|
+
((st = (ot = t.DistributionSimple["dcat:distribution"]) == null ? void 0 : ot[i]) == null ? void 0 : st["dcat:packageFormat"]) || {}
|
|
156
166
|
).length !== 0 && t.DistributionSimple["dcat:distribution"][i]["dcat:packageFormat"].uri !== "" && (d.distribution[i]["dcat:packageFormat"] = {
|
|
157
167
|
"@id": t.DistributionSimple["dcat:distribution"][i]["dcat:packageFormat"].uri || ""
|
|
158
168
|
}), t.DistributionSimple["dcat:distribution"][i].checksum.uri !== "" && (d.distribution[i]["spdx:checksum"] = {
|
|
@@ -162,7 +172,7 @@ async function kt(t, g, l, b) {
|
|
|
162
172
|
"@id": t.DistributionSimple["dcat:distribution"][i].checksum.uri || ""
|
|
163
173
|
}
|
|
164
174
|
}), Object.keys(
|
|
165
|
-
t.DistributionSimple["dcat:distribution"][i]["dct:language"]
|
|
175
|
+
((rt = (lt = t.DistributionSimple["dcat:distribution"]) == null ? void 0 : lt[i]) == null ? void 0 : rt["dct:language"]) || {}
|
|
166
176
|
).length !== 0) {
|
|
167
177
|
d.distribution[i]["dct:language"] = [];
|
|
168
178
|
for (let a = 0; a < t.DistributionSimple["dcat:distribution"][i]["dct:language"].length; a++)
|
|
@@ -171,12 +181,12 @@ async function kt(t, g, l, b) {
|
|
|
171
181
|
};
|
|
172
182
|
}
|
|
173
183
|
t.DistributionSimple["dcat:distribution"][i]["adms:status"].uri !== "" && Object.keys(
|
|
174
|
-
t.DistributionSimple["dcat:distribution"][i]["adms:status"]
|
|
184
|
+
((pt = t.DistributionSimple["dcat:distribution"][i]) == null ? void 0 : pt["adms:status"]) || {}
|
|
175
185
|
).length !== 0 && (d.distribution[i]["adms:status"] = {
|
|
176
186
|
"@id": t.DistributionSimple["dcat:distribution"][i]["adms:status"].uri || ""
|
|
177
187
|
});
|
|
178
|
-
const
|
|
179
|
-
if (
|
|
188
|
+
const Bt = ((yt = (gt = (bt = t.DistributionSimple) == null ? void 0 : bt["dcat:distribution"]) == null ? void 0 : gt[i]) == null ? void 0 : yt.accessServices) || [];
|
|
189
|
+
if (Bt.length !== 0 && (d.distribution[i]["dcat:accessService"] = (ut = Ut(Bt)) == null ? void 0 : ut.filter(
|
|
180
190
|
(a) => a && (a["dct:title"] || a["dct:description"] || a["dcat:downloadURL"] || a["dcat:endpointURL"])
|
|
181
191
|
).map((a) => {
|
|
182
192
|
const n = {
|
|
@@ -194,8 +204,8 @@ async function kt(t, g, l, b) {
|
|
|
194
204
|
return r !== void 0 && (n["dcat:endpointURL"] = {
|
|
195
205
|
"@id": r
|
|
196
206
|
}), n;
|
|
197
|
-
})), d.distribution[i]["foaf:page"] || (d.distribution[i]["foaf:page"] = []), d.distribution[i]["foaf:page"].length
|
|
198
|
-
for (let a = 0; a < ((
|
|
207
|
+
})), d.distribution[i]["foaf:page"] || (d.distribution[i]["foaf:page"] = []), d.distribution[i]["foaf:page"].length !== 0)
|
|
208
|
+
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++) {
|
|
199
209
|
const n = t.DistributionSimple["dcat:distribution"][i].documentations[a];
|
|
200
210
|
if ((n == null ? void 0 : n["dct:title"]) !== void 0) {
|
|
201
211
|
const r = {
|
|
@@ -237,7 +247,7 @@ async function kt(t, g, l, b) {
|
|
|
237
247
|
for (let e = 0; e < t.Additionals["dcat:keyword"].length; e++)
|
|
238
248
|
d.dataset["dcat:keyword"] === void 0 && (d.dataset["dcat:keyword"] = []), d.dataset["dcat:keyword"].push({
|
|
239
249
|
"@value": t.Additionals["dcat:keyword"][e]["@value"],
|
|
240
|
-
"@language": ((
|
|
250
|
+
"@language": ((Dt = (vt = t.Additionals["dcat:keyword"]) == null ? void 0 : vt[e]) == null ? void 0 : Dt["@language"]) || "de"
|
|
241
251
|
});
|
|
242
252
|
}
|
|
243
253
|
if (Object.keys(t.Additionals)[i] === "dct:references") {
|
|
@@ -288,7 +298,14 @@ async function kt(t, g, l, b) {
|
|
|
288
298
|
);
|
|
289
299
|
for (let e = 0; e < t.Additionals["adms:identifier"].length; e++)
|
|
290
300
|
d.dataset["adms:identifier"] === void 0 && (d.dataset["adms:identifier"] = []), d.dataset["adms:identifier"].push({
|
|
291
|
-
"@id":
|
|
301
|
+
// "@id":
|
|
302
|
+
// formValues.Additionals["adms:identifier"][admsIdentIndex][
|
|
303
|
+
// "@id"
|
|
304
|
+
// ],
|
|
305
|
+
"@type": "adms:Identifier",
|
|
306
|
+
"skos:notation": {
|
|
307
|
+
"@value": t.Additionals["adms:identifier"][e]["@id"]
|
|
308
|
+
}
|
|
292
309
|
});
|
|
293
310
|
}
|
|
294
311
|
if (Object.keys(t.Additionals)[i] === "dct:language") {
|
|
@@ -319,7 +336,7 @@ async function kt(t, g, l, b) {
|
|
|
319
336
|
for (let e = 0; e < t.Additionals["dcatde:legalBasis"].length; e++)
|
|
320
337
|
d.dataset["dcatde:legalBasis"] === void 0 && (d.dataset["dcatde:legalBasis"] = []), d.dataset["dcatde:legalBasis"].push({
|
|
321
338
|
"@value": t.Additionals["dcatde:legalBasis"][e]["@value"],
|
|
322
|
-
"@language": ((
|
|
339
|
+
"@language": ((Rt = (Ot = (kt = t.Additionals) == null ? void 0 : kt["dcatde:legalBasis"]) == null ? void 0 : Ot[e]) == null ? void 0 : Rt["@language"]) || "de"
|
|
323
340
|
});
|
|
324
341
|
}
|
|
325
342
|
if (Object.keys(t.Additionals)[i] === "dct:relation") {
|
|
@@ -456,10 +473,8 @@ async function kt(t, g, l, b) {
|
|
|
456
473
|
);
|
|
457
474
|
for (let e = 0; e < t.Additionals["foaf:page"].length; e++)
|
|
458
475
|
d.dataset["foaf:page"] === void 0 && (d.dataset["foaf:page"] = []), d.dataset["foaf:page"].push({
|
|
459
|
-
|
|
460
|
-
"
|
|
461
|
-
"@id": (ot = (ct = t.Additionals["foaf:page"]) == null ? void 0 : ct[e]) == null ? void 0 : ot.uri
|
|
462
|
-
}
|
|
476
|
+
"dct:format": {
|
|
477
|
+
"@id": (St = (jt = t.Additionals["foaf:page"]) == null ? void 0 : jt[e]) == null ? void 0 : St.uri
|
|
463
478
|
},
|
|
464
479
|
"dct:title": t.Additionals["foaf:page"][e]["dct:title"],
|
|
465
480
|
"dct:description": t.Additionals["foaf:page"][e]["dct:description"],
|
|
@@ -501,7 +516,7 @@ async function kt(t, g, l, b) {
|
|
|
501
516
|
}), Object.keys(t.Additionals)[i] === "dcatde:politicalGeocodingLevelURI")
|
|
502
517
|
for (let e = 0; e < t.Additionals["dcatde:politicalGeocodingLevelURI"].length; e++)
|
|
503
518
|
d.dataset["dcatde:politicalGeocodingLevelURI"] === void 0 && (d.dataset["dcatde:politicalGeocodingLevelURI"] = []), d.dataset["dcatde:politicalGeocodingLevelURI"].push({
|
|
504
|
-
"@id": ((
|
|
519
|
+
"@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"]) || ""
|
|
505
520
|
});
|
|
506
521
|
}
|
|
507
522
|
} catch (i) {
|
|
@@ -511,7 +526,7 @@ async function kt(t, g, l, b) {
|
|
|
511
526
|
} catch (c) {
|
|
512
527
|
console.log(c);
|
|
513
528
|
}
|
|
514
|
-
let h =
|
|
529
|
+
let h = Tt(d, u);
|
|
515
530
|
return { actionParams: {
|
|
516
531
|
id: y,
|
|
517
532
|
catalog: l.permissions[0].rsname,
|
|
@@ -520,7 +535,7 @@ async function kt(t, g, l, b) {
|
|
|
520
535
|
description: d.dataset["dct:description"]["@value"]
|
|
521
536
|
}, body: h };
|
|
522
537
|
}
|
|
523
|
-
function
|
|
538
|
+
function Tt(t, g) {
|
|
524
539
|
const l = {}, b = Object.keys(t);
|
|
525
540
|
for (let o = 0; o < b.length; o++)
|
|
526
541
|
b[o], l[b[o]] = t[b[o]];
|
|
@@ -540,5 +555,5 @@ function ht(t, g) {
|
|
|
540
555
|
return console.log(p), p;
|
|
541
556
|
}
|
|
542
557
|
export {
|
|
543
|
-
|
|
558
|
+
zt as default
|
|
544
559
|
};
|