Skip to content
Snippets Groups Projects
Commit b0affd5b authored by mic29226's avatar mic29226
Browse files

fix(dataproviderInterface): fixed the error that lead to the missing accessurl properties

parent 2ae71ea1
Branches
Tags
No related merge requests found
...@@ -108,8 +108,8 @@ function convertProperties(property, state, id, data, propertyKeys, dpiConfig) { ...@@ -108,8 +108,8 @@ function convertProperties(property, state, id, data, propertyKeys, dpiConfig) {
if (formatType.singularString[property].includes(key)) { if (formatType.singularString[property].includes(key)) {
convertSingularStrings(subData, state, key); convertSingularStrings(subData, state, key);
} else if (formatType.singularURI[property].includes(key)) { } else if (formatType.multipleURI[property].includes(key)) {
convertSingularURI(subData, state, key, dpiConfig); convertMultipleURI(subData, state, key, property, dpiConfig);
} else if (formatType.singularURI[property].includes(key)) { } else if (formatType.singularURI[property].includes(key)) {
convertSingularURI(subData, state, key, dpiConfig); convertSingularURI(subData, state, key, dpiConfig);
} else if (formatType.typedStrings[property].includes(key)) { } else if (formatType.typedStrings[property].includes(key)) {
...@@ -419,14 +419,13 @@ function convertTypedString(data, state, key, property) { ...@@ -419,14 +419,13 @@ function convertTypedString(data, state, key, property) {
state["pv:distributionType"].lead = el.object.value; state["pv:distributionType"].lead = el.object.value;
} else { } else {
let dateType; let dateType;
if (el.object.value.includes("T")) { if (el.object.value.includes("T")) {
dateType = "dateTime"; dateType = "dateTime";
} else { } else {
if (property === "distributions") { if (property === "distributions") {
dateType = "dateTime"; dateType = "dateTime";
let newDateString = el.object.value + "T00:00:00"; let newDateString = el.object.value + "T00:00:00";
console.log(newDateString); // console.log(newDateString);
state[key] = { "@type": dateType, "@value": newDateString }; state[key] = { "@type": dateType, "@value": newDateString };
break; break;
} else dateType = "date"; } else dateType = "date";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment