@ts4nfdi/terminology-service-suite 5.2.0 → 5.3.0
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/esm/index.js +21 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/widgets/EntityInfoWidget/EntityInfoWidget.stories.d.ts +1 -1
- package/dist/esm/types/components/widgets/EntityInfoWidget/EntityInfoWidgetHTML.stories.d.ts +1 -1
- package/dist/esm/types/components/widgets/EntityInfoWidget/EntityInfoWidgetStories.d.ts +7 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -3859,8 +3859,29 @@ function getReifiedJSX(entity, reified, showBadges = DEFAULT_SHOW_BADGES,
|
|
|
3859
3859
|
if (typeof value.value == "string") {
|
|
3860
3860
|
return addLinksToText(entity, value.value.toString(), undefined, showBadges, onNavigates);
|
|
3861
3861
|
}
|
|
3862
|
+
else if (typeof value.value == "object" &&
|
|
3863
|
+
value.value["http://www.w3.org/1999/02/22-rdf-syntax-ns#type"] !=
|
|
3864
|
+
undefined) {
|
|
3865
|
+
// Is converted from Skosmos
|
|
3866
|
+
switch (value.value["http://www.w3.org/1999/02/22-rdf-syntax-ns#type"]) {
|
|
3867
|
+
case "http://www.w3.org/2008/05/skos-xl#Label":
|
|
3868
|
+
const label = value.value["http://www.w3.org/2008/05/skos-xl#literalForm"]["value"];
|
|
3869
|
+
return React.createElement(React.Fragment, null, label);
|
|
3870
|
+
case "http://purl.org/vocab/changeset/schema#ChangeSet":
|
|
3871
|
+
const changeReason = value.value["http://purl.org/vocab/changeset/schema#changeReason"]["value"];
|
|
3872
|
+
const date = value.value["http://purl.org/vocab/changeset/schema#createdDate"]["value"];
|
|
3873
|
+
return (React.createElement(React.Fragment, null,
|
|
3874
|
+
date,
|
|
3875
|
+
": ",
|
|
3876
|
+
changeReason));
|
|
3877
|
+
default:
|
|
3878
|
+
console.error(`Unknown rdf syntax type: ${value.value["http://www.w3.org/1999/02/22-rdf-syntax-ns#type"]}`);
|
|
3879
|
+
return React.createElement(React.Fragment, null, JSON.stringify(value.value));
|
|
3880
|
+
}
|
|
3881
|
+
}
|
|
3862
3882
|
else {
|
|
3863
3883
|
// TODO: should not happen, prove that this is never the case
|
|
3884
|
+
console.error(`Unknown entry information format: ${value}`);
|
|
3864
3885
|
return React.createElement(React.Fragment, null, JSON.stringify(value.value));
|
|
3865
3886
|
}
|
|
3866
3887
|
}
|