@glossarist/concept-browser 0.7.131 → 0.7.132
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glossarist/concept-browser",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.132",
|
|
4
4
|
"description": "Vue SPA for browsing Glossarist terminology datasets with cross-reference resolution, graph visualization, and multi-language support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/scripts/generate-data.js
CHANGED
|
@@ -699,6 +699,9 @@ function defsToJsonLd(defs) {
|
|
|
699
699
|
}
|
|
700
700
|
function refToJsonLd(ref, typeName = "gl:Ref") {
|
|
701
701
|
if (!ref) return void 0;
|
|
702
|
+
if (ref.ellipsis === true) {
|
|
703
|
+
return { "@type": typeName, "gl:ellipsis": true };
|
|
704
|
+
}
|
|
702
705
|
const refObj = { "@type": typeName };
|
|
703
706
|
if (typeof ref === "string") {
|
|
704
707
|
refObj["gl:source"] = ref;
|
|
@@ -707,6 +710,7 @@ function refToJsonLd(ref, typeName = "gl:Ref") {
|
|
|
707
710
|
if (ref.id) refObj["gl:id"] = ref.id;
|
|
708
711
|
if (ref.version) refObj["gl:version"] = ref.version;
|
|
709
712
|
if (ref.text) refObj["gl:text"] = ref.text;
|
|
713
|
+
if (ref.external === true) refObj["gl:external"] = true;
|
|
710
714
|
}
|
|
711
715
|
return refObj;
|
|
712
716
|
}
|
|
@@ -86,6 +86,9 @@ export function defsToJsonLd(defs: any[]): Record<string, any>[] {
|
|
|
86
86
|
|
|
87
87
|
export function refToJsonLd(ref: any, typeName = 'gl:Ref'): Record<string, any> | undefined {
|
|
88
88
|
if (!ref) return undefined;
|
|
89
|
+
if (ref.ellipsis === true) {
|
|
90
|
+
return { '@type': typeName, 'gl:ellipsis': true };
|
|
91
|
+
}
|
|
89
92
|
const refObj: Record<string, any> = { '@type': typeName };
|
|
90
93
|
if (typeof ref === 'string') {
|
|
91
94
|
refObj['gl:source'] = ref;
|
|
@@ -94,6 +97,7 @@ export function refToJsonLd(ref: any, typeName = 'gl:Ref'): Record<string, any>
|
|
|
94
97
|
if (ref.id) refObj['gl:id'] = ref.id;
|
|
95
98
|
if (ref.version) refObj['gl:version'] = ref.version;
|
|
96
99
|
if (ref.text) refObj['gl:text'] = ref.text;
|
|
100
|
+
if (ref.external === true) refObj['gl:external'] = true;
|
|
97
101
|
}
|
|
98
102
|
return refObj;
|
|
99
103
|
}
|