glossarist 0.1.4 → 0.1.5
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 +1 -1
- package/src/models/citation.js +4 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/models/citation.js
CHANGED
|
@@ -21,6 +21,10 @@ export class Citation extends GlossaristModel {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
get isStructured() {
|
|
25
|
+
return typeof this.source === 'object' && this.source !== null;
|
|
26
|
+
}
|
|
27
|
+
|
|
24
28
|
toString() {
|
|
25
29
|
if (this.ref) return this.ref;
|
|
26
30
|
if (typeof this.source === 'string') return this.source;
|