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