@manuscripts/transform 1.5.8 → 2.0.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/cjs/index.js +1 -1
- package/dist/cjs/jats/importer/index.js +1 -3
- package/dist/cjs/jats/importer/jats-body-dom-parser.js +23 -227
- package/dist/cjs/jats/importer/jats-body-transformations.js +110 -201
- package/dist/cjs/jats/importer/jats-comments.js +100 -98
- package/dist/cjs/jats/importer/jats-front-parser.js +87 -81
- package/dist/cjs/jats/importer/jats-journal-meta-parser.js +51 -39
- package/dist/cjs/jats/importer/jats-parser-utils.js +17 -56
- package/dist/cjs/jats/importer/jats-reference-parser.js +24 -79
- package/dist/cjs/jats/importer/jats-references.js +34 -0
- package/dist/cjs/jats/importer/parse-jats-article.js +67 -173
- package/dist/cjs/jats/index.js +1 -3
- package/dist/cjs/jats/jats-exporter.js +34 -55
- package/dist/cjs/lib/section-group-type.js +30 -0
- package/dist/cjs/lib/utils.js +1 -25
- package/dist/cjs/schema/index.js +20 -17
- package/dist/cjs/schema/nodes/abstracts.js +27 -0
- package/dist/cjs/schema/nodes/affiliations.js +27 -0
- package/dist/cjs/schema/nodes/backmatter.js +27 -0
- package/dist/cjs/schema/nodes/body.js +27 -0
- package/dist/cjs/schema/nodes/citation.js +10 -15
- package/dist/cjs/schema/nodes/{comment_list.js → comments.js} +4 -4
- package/dist/cjs/schema/nodes/contributors.js +27 -0
- package/dist/cjs/schema/nodes/{meta_section.js → core_section.js} +6 -5
- package/dist/cjs/schema/nodes/cross_reference.js +4 -3
- package/dist/cjs/schema/nodes/inline_footnote.js +6 -5
- package/dist/cjs/schema/nodes/keyword.js +0 -1
- package/dist/cjs/schema/nodes/{keywords_group.js → keyword_group.js} +6 -6
- package/dist/cjs/schema/nodes/{keywords_section.js → keywords.js} +7 -7
- package/dist/cjs/schema/nodes/keywords_element.js +1 -1
- package/dist/cjs/schema/nodes/manuscript.js +5 -2
- package/dist/cjs/transformer/builders.js +9 -86
- package/dist/cjs/transformer/decode.js +147 -176
- package/dist/cjs/transformer/encode.js +66 -67
- package/dist/cjs/transformer/highlight-markers.js +48 -36
- package/dist/cjs/transformer/html.js +7 -23
- package/dist/cjs/transformer/labels.js +3 -17
- package/dist/cjs/transformer/node-names.js +1 -1
- package/dist/cjs/transformer/node-title.js +1 -1
- package/dist/cjs/transformer/node-types.js +7 -6
- package/dist/cjs/transformer/object-types.js +1 -2
- package/dist/cjs/transformer/section-category.js +31 -31
- package/dist/es/index.js +1 -1
- package/dist/es/jats/importer/index.js +1 -1
- package/dist/es/jats/importer/jats-body-dom-parser.js +23 -227
- package/dist/es/jats/importer/jats-body-transformations.js +111 -202
- package/dist/es/jats/importer/jats-comments.js +97 -96
- package/dist/es/jats/importer/jats-front-parser.js +88 -82
- package/dist/es/jats/importer/jats-journal-meta-parser.js +51 -39
- package/dist/es/jats/importer/jats-parser-utils.js +16 -54
- package/dist/es/jats/importer/jats-reference-parser.js +27 -82
- package/dist/es/jats/importer/jats-references.js +30 -0
- package/dist/es/jats/importer/parse-jats-article.js +70 -174
- package/dist/es/jats/index.js +1 -1
- package/dist/es/jats/jats-exporter.js +34 -55
- package/dist/es/lib/section-group-type.js +27 -0
- package/dist/es/lib/utils.js +0 -22
- package/dist/es/schema/index.js +21 -18
- package/dist/es/schema/nodes/abstracts.js +24 -0
- package/dist/es/schema/nodes/affiliations.js +24 -0
- package/dist/es/schema/nodes/backmatter.js +24 -0
- package/dist/es/schema/nodes/body.js +24 -0
- package/dist/es/schema/nodes/citation.js +10 -15
- package/dist/es/schema/nodes/{comment_list.js → comments.js} +3 -3
- package/dist/es/schema/nodes/contributors.js +24 -0
- package/dist/es/schema/nodes/{meta_section.js → core_section.js} +5 -4
- package/dist/es/schema/nodes/cross_reference.js +4 -3
- package/dist/es/schema/nodes/inline_footnote.js +6 -5
- package/dist/es/schema/nodes/keyword.js +0 -1
- package/dist/es/schema/nodes/{keywords_group.js → keyword_group.js} +4 -4
- package/dist/es/schema/nodes/{keywords_section.js → keywords.js} +5 -5
- package/dist/es/schema/nodes/keywords_element.js +1 -1
- package/dist/es/schema/nodes/manuscript.js +3 -1
- package/dist/es/transformer/builders.js +6 -73
- package/dist/es/transformer/decode.js +147 -175
- package/dist/es/transformer/encode.js +70 -71
- package/dist/es/transformer/highlight-markers.js +44 -32
- package/dist/es/transformer/html.js +7 -23
- package/dist/es/transformer/labels.js +3 -17
- package/dist/es/transformer/node-names.js +1 -1
- package/dist/es/transformer/node-title.js +1 -1
- package/dist/es/transformer/node-types.js +7 -6
- package/dist/es/transformer/object-types.js +0 -1
- package/dist/es/transformer/section-category.js +29 -29
- package/dist/types/index.d.ts +1 -1
- package/dist/types/jats/importer/index.d.ts +1 -1
- package/dist/types/jats/importer/jats-body-transformations.d.ts +16 -19
- package/dist/types/jats/importer/jats-comments.d.ts +13 -9
- package/dist/types/jats/importer/jats-front-parser.d.ts +35 -12
- package/dist/types/jats/importer/jats-journal-meta-parser.d.ts +4 -4
- package/dist/types/jats/importer/jats-parser-utils.d.ts +1 -6
- package/dist/types/jats/importer/jats-reference-parser.d.ts +2 -6
- package/dist/types/jats/importer/jats-references.d.ts +12 -0
- package/dist/types/jats/importer/parse-jats-article.d.ts +5 -17
- package/dist/types/jats/index.d.ts +1 -1
- package/dist/types/lib/section-group-type.d.ts +23 -0
- package/dist/types/lib/utils.d.ts +1 -4
- package/dist/types/schema/index.d.ts +4 -5
- package/dist/types/schema/nodes/{meta_section.d.ts → abstracts.d.ts} +1 -9
- package/dist/types/schema/nodes/affiliations.d.ts +17 -0
- package/dist/types/schema/nodes/backmatter.d.ts +17 -0
- package/dist/types/schema/nodes/body.d.ts +17 -0
- package/dist/types/schema/nodes/citation.d.ts +3 -5
- package/dist/types/schema/nodes/comments.d.ts +17 -0
- package/dist/types/schema/nodes/contributors.d.ts +17 -0
- package/dist/types/schema/nodes/core_section.d.ts +17 -0
- package/dist/types/schema/nodes/cross_reference.d.ts +1 -1
- package/dist/types/schema/nodes/inline_footnote.d.ts +1 -1
- package/dist/types/schema/nodes/keyword.d.ts +0 -1
- package/dist/types/schema/nodes/{contributors_element.d.ts → keyword_group.d.ts} +3 -4
- package/dist/types/schema/nodes/{comment_list.d.ts → keywords.d.ts} +3 -2
- package/dist/types/schema/nodes/manuscript.d.ts +1 -0
- package/dist/types/schema/types.d.ts +1 -1
- package/dist/types/transformer/builders.d.ts +2 -14
- package/dist/types/transformer/decode.d.ts +5 -9
- package/dist/types/transformer/encode.d.ts +4 -4
- package/dist/types/transformer/highlight-markers.d.ts +7 -2
- package/dist/types/transformer/object-types.d.ts +1 -2
- package/dist/types/transformer/section-category.d.ts +4 -3
- package/package.json +1 -6
- package/dist/cjs/lib/core-section-categories.js +0 -29
- package/dist/cjs/schema/nodes/affiliations_section.js +0 -36
- package/dist/cjs/schema/nodes/contributors_element.js +0 -49
- package/dist/cjs/schema/nodes/contributors_section.js +0 -36
- package/dist/es/lib/core-section-categories.js +0 -26
- package/dist/es/schema/nodes/affiliations_section.js +0 -32
- package/dist/es/schema/nodes/contributors_element.js +0 -46
- package/dist/es/schema/nodes/contributors_section.js +0 -32
- package/dist/types/lib/core-section-categories.d.ts +0 -8
- package/dist/types/schema/nodes/affiliations_section.d.ts +0 -11
- package/dist/types/schema/nodes/contributors_section.d.ts +0 -12
- package/dist/types/schema/nodes/keywords_group.d.ts +0 -26
- package/dist/types/schema/nodes/keywords_section.d.ts +0 -26
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
18
|
+
exports.isKeywordGroupNode = exports.keywordGroup = void 0;
|
|
19
|
+
exports.keywordGroup = {
|
|
20
20
|
content: 'keyword*',
|
|
21
21
|
attrs: {
|
|
22
22
|
id: { default: '' },
|
|
@@ -31,11 +31,11 @@ exports.keywordsGroup = {
|
|
|
31
31
|
},
|
|
32
32
|
],
|
|
33
33
|
toDOM: (node) => {
|
|
34
|
-
const
|
|
34
|
+
const keywordGroupNode = node;
|
|
35
35
|
return [
|
|
36
36
|
'div',
|
|
37
37
|
{
|
|
38
|
-
id:
|
|
38
|
+
id: keywordGroupNode.attrs.id,
|
|
39
39
|
class: 'keywords',
|
|
40
40
|
spellcheck: 'false',
|
|
41
41
|
contenteditable: false,
|
|
@@ -44,5 +44,5 @@ exports.keywordsGroup = {
|
|
|
44
44
|
];
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
|
-
const
|
|
48
|
-
exports.
|
|
47
|
+
const isKeywordGroupNode = (node) => node.type === node.type.schema.nodes.keywords_group;
|
|
48
|
+
exports.isKeywordGroupNode = isKeywordGroupNode;
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
18
|
+
exports.isKeywordsNode = exports.keywords = void 0;
|
|
19
|
+
exports.keywords = {
|
|
20
20
|
content: 'section_title (keywords_element | placeholder_element)',
|
|
21
21
|
attrs: {
|
|
22
22
|
id: { default: '' },
|
|
23
23
|
dataTracked: { default: null },
|
|
24
24
|
},
|
|
25
|
-
group: 'block
|
|
25
|
+
group: 'block',
|
|
26
26
|
selectable: false,
|
|
27
27
|
parseDOM: [
|
|
28
28
|
{
|
|
@@ -30,11 +30,11 @@ exports.keywordsSection = {
|
|
|
30
30
|
},
|
|
31
31
|
],
|
|
32
32
|
toDOM: (node) => {
|
|
33
|
-
const
|
|
33
|
+
const keywords = node;
|
|
34
34
|
return [
|
|
35
35
|
'div',
|
|
36
36
|
{
|
|
37
|
-
id:
|
|
37
|
+
id: keywords.attrs.id,
|
|
38
38
|
class: 'keywords',
|
|
39
39
|
spellcheck: 'false',
|
|
40
40
|
contenteditable: false,
|
|
@@ -43,5 +43,5 @@ exports.keywordsSection = {
|
|
|
43
43
|
];
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
|
-
const
|
|
47
|
-
exports.
|
|
46
|
+
const isKeywordsNode = (node) => node.type === node.type.schema.nodes.keywords;
|
|
47
|
+
exports.isKeywordsNode = isKeywordsNode;
|
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.keywordsElement = void 0;
|
|
19
19
|
exports.keywordsElement = {
|
|
20
20
|
atom: true,
|
|
21
|
-
content: '
|
|
21
|
+
content: 'keyword_group*',
|
|
22
22
|
attrs: {
|
|
23
23
|
id: { default: '' },
|
|
24
24
|
contents: { default: '' },
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.manuscript = void 0;
|
|
18
|
+
exports.isManuscriptNode = exports.manuscript = void 0;
|
|
19
|
+
const index_1 = require("../index");
|
|
19
20
|
exports.manuscript = {
|
|
20
|
-
content: 'title
|
|
21
|
+
content: 'title? contributors? affiliations? keywords? abstracts body backmatter comments',
|
|
21
22
|
attrs: {
|
|
22
23
|
id: { default: '' },
|
|
23
24
|
},
|
|
@@ -44,3 +45,5 @@ exports.manuscript = {
|
|
|
44
45
|
];
|
|
45
46
|
},
|
|
46
47
|
};
|
|
48
|
+
const isManuscriptNode = (node) => node.type === index_1.schema.nodes.manuscript;
|
|
49
|
+
exports.isManuscriptNode = isManuscriptNode;
|
|
@@ -18,14 +18,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.buildTitles = exports.buildElementsOrder = exports.auxiliaryObjectTypes = exports.
|
|
21
|
+
exports.buildTitles = exports.buildElementsOrder = exports.auxiliaryObjectTypes = exports.buildJournal = exports.buildAttribution = exports.buildContributorRole = exports.buildContribution = exports.buildColor = exports.buildParagraph = exports.buildSection = exports.buildCorresp = exports.buildFootnotesOrder = exports.buildFootnote = exports.buildInlineMathFragment = exports.buildNote = exports.buildComment = exports.buildSupplementaryMaterial = exports.buildAffiliation = exports.buildFigure = exports.buildKeywordGroup = exports.buildKeyword = exports.buildBibliographyElement = exports.buildBibliographicDate = exports.buildBibliographicName = exports.buildBibliographyItem = exports.buildContributor = exports.buildManuscript = exports.buildProject = void 0;
|
|
22
22
|
const json_schema_1 = require("@manuscripts/json-schema");
|
|
23
23
|
const w3c_xmlserializer_1 = __importDefault(require("w3c-xmlserializer"));
|
|
24
24
|
const schema_1 = require("../schema");
|
|
25
25
|
const id_1 = require("./id");
|
|
26
26
|
const timestamp_1 = require("./timestamp");
|
|
27
|
-
exports.DEFAULT_BUNDLE = 'MPBundle:www-zotero-org-styles-nature';
|
|
28
|
-
exports.DEFAULT_PAGE_LAYOUT = 'MPPageLayout:defaultA4';
|
|
29
27
|
const buildProject = (owner) => ({
|
|
30
28
|
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.Project),
|
|
31
29
|
objectType: json_schema_1.ObjectTypes.Project,
|
|
@@ -57,34 +55,14 @@ const buildBibliographicName = (data) => (Object.assign(Object.assign({}, data),
|
|
|
57
55
|
exports.buildBibliographicName = buildBibliographicName;
|
|
58
56
|
const buildBibliographicDate = (data) => (Object.assign(Object.assign({}, data), { _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.BibliographicDate), objectType: json_schema_1.ObjectTypes.BibliographicDate }));
|
|
59
57
|
exports.buildBibliographicDate = buildBibliographicDate;
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
Object.assign(auxiliaryObjectReference, { referencedObjects: rids });
|
|
71
|
-
}
|
|
72
|
-
return auxiliaryObjectReference;
|
|
73
|
-
};
|
|
74
|
-
exports.buildAuxiliaryObjectReference = buildAuxiliaryObjectReference;
|
|
75
|
-
const buildEmbeddedCitationItem = (bibliographyItem) => ({
|
|
76
|
-
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.CitationItem),
|
|
77
|
-
objectType: json_schema_1.ObjectTypes.CitationItem,
|
|
78
|
-
bibliographyItem,
|
|
79
|
-
});
|
|
80
|
-
exports.buildEmbeddedCitationItem = buildEmbeddedCitationItem;
|
|
81
|
-
const buildCitation = (containingObject, embeddedCitationItems) => ({
|
|
82
|
-
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.Citation),
|
|
83
|
-
objectType: json_schema_1.ObjectTypes.Citation,
|
|
84
|
-
containingObject: containingObject || undefined,
|
|
85
|
-
embeddedCitationItems: embeddedCitationItems.map(exports.buildEmbeddedCitationItem),
|
|
86
|
-
});
|
|
87
|
-
exports.buildCitation = buildCitation;
|
|
58
|
+
const buildBibliographyElement = (bibliographyItems) => ({
|
|
59
|
+
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.BibliographyElement),
|
|
60
|
+
objectType: json_schema_1.ObjectTypes.BibliographyElement,
|
|
61
|
+
contents: '',
|
|
62
|
+
elementType: 'div',
|
|
63
|
+
containedObjectIDs: bibliographyItems.map((b) => b._id),
|
|
64
|
+
});
|
|
65
|
+
exports.buildBibliographyElement = buildBibliographyElement;
|
|
88
66
|
const buildKeyword = (name) => ({
|
|
89
67
|
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.Keyword),
|
|
90
68
|
objectType: json_schema_1.ObjectTypes.Keyword,
|
|
@@ -93,21 +71,6 @@ const buildKeyword = (name) => ({
|
|
|
93
71
|
exports.buildKeyword = buildKeyword;
|
|
94
72
|
const buildKeywordGroup = (attributes) => (Object.assign(Object.assign(Object.assign({ _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.KeywordGroup), objectType: json_schema_1.ObjectTypes.KeywordGroup }, (attributes.type && { type: attributes.type })), (attributes.title && { title: attributes.title })), (attributes.label && { label: attributes.label })));
|
|
95
73
|
exports.buildKeywordGroup = buildKeywordGroup;
|
|
96
|
-
const buildManuscriptKeyword = (name) => ({
|
|
97
|
-
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.ManuscriptKeyword),
|
|
98
|
-
objectType: json_schema_1.ObjectTypes.ManuscriptKeyword,
|
|
99
|
-
name,
|
|
100
|
-
});
|
|
101
|
-
exports.buildManuscriptKeyword = buildManuscriptKeyword;
|
|
102
|
-
const buildLibraryCollection = (owner, name) => ({
|
|
103
|
-
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.LibraryCollection),
|
|
104
|
-
objectType: json_schema_1.ObjectTypes.LibraryCollection,
|
|
105
|
-
owners: [owner],
|
|
106
|
-
writers: [],
|
|
107
|
-
viewers: [],
|
|
108
|
-
name,
|
|
109
|
-
});
|
|
110
|
-
exports.buildLibraryCollection = buildLibraryCollection;
|
|
111
74
|
const buildFigure = (blob) => ({
|
|
112
75
|
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.Figure),
|
|
113
76
|
objectType: json_schema_1.ObjectTypes.Figure,
|
|
@@ -134,13 +97,6 @@ const buildSupplementaryMaterial = (title, href) => ({
|
|
|
134
97
|
href,
|
|
135
98
|
});
|
|
136
99
|
exports.buildSupplementaryMaterial = buildSupplementaryMaterial;
|
|
137
|
-
const buildUserProfileAffiliation = (institution, priority = 0) => ({
|
|
138
|
-
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.UserProfileAffiliation),
|
|
139
|
-
objectType: json_schema_1.ObjectTypes.UserProfileAffiliation,
|
|
140
|
-
institution,
|
|
141
|
-
priority,
|
|
142
|
-
});
|
|
143
|
-
exports.buildUserProfileAffiliation = buildUserProfileAffiliation;
|
|
144
100
|
const buildComment = (target, contents = '', selector, contributions, annotationColor) => ({
|
|
145
101
|
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.CommentAnnotation),
|
|
146
102
|
objectType: json_schema_1.ObjectTypes.CommentAnnotation,
|
|
@@ -159,12 +115,6 @@ const buildNote = (target, source, contents = '') => ({
|
|
|
159
115
|
contents,
|
|
160
116
|
});
|
|
161
117
|
exports.buildNote = buildNote;
|
|
162
|
-
const buildValidation = (results) => ({
|
|
163
|
-
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.RequirementsValidation),
|
|
164
|
-
objectType: json_schema_1.ObjectTypes.RequirementsValidation,
|
|
165
|
-
results,
|
|
166
|
-
});
|
|
167
|
-
exports.buildValidation = buildValidation;
|
|
168
118
|
const buildInlineMathFragment = (containingObject, TeXRepresentation) => ({
|
|
169
119
|
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.InlineMathFragment),
|
|
170
120
|
objectType: json_schema_1.ObjectTypes.InlineMathFragment,
|
|
@@ -227,20 +177,6 @@ const buildColor = (value, priority) => ({
|
|
|
227
177
|
value,
|
|
228
178
|
});
|
|
229
179
|
exports.buildColor = buildColor;
|
|
230
|
-
const buildHighlight = () => ({
|
|
231
|
-
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.Highlight),
|
|
232
|
-
objectType: json_schema_1.ObjectTypes.Highlight,
|
|
233
|
-
});
|
|
234
|
-
exports.buildHighlight = buildHighlight;
|
|
235
|
-
const buildHighlightMarker = (highlightID, start, offset, field) => ({
|
|
236
|
-
highlightID,
|
|
237
|
-
objectType: json_schema_1.ObjectTypes.HighlightMarker,
|
|
238
|
-
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.HighlightMarker),
|
|
239
|
-
start,
|
|
240
|
-
offset,
|
|
241
|
-
field,
|
|
242
|
-
});
|
|
243
|
-
exports.buildHighlightMarker = buildHighlightMarker;
|
|
244
180
|
const buildContribution = (profileID) => ({
|
|
245
181
|
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.Contribution),
|
|
246
182
|
objectType: json_schema_1.ObjectTypes.Contribution,
|
|
@@ -254,13 +190,6 @@ const buildContributorRole = (name) => ({
|
|
|
254
190
|
name,
|
|
255
191
|
});
|
|
256
192
|
exports.buildContributorRole = buildContributorRole;
|
|
257
|
-
const buildInlineStyle = (priority, title) => ({
|
|
258
|
-
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.InlineStyle),
|
|
259
|
-
objectType: json_schema_1.ObjectTypes.InlineStyle,
|
|
260
|
-
priority,
|
|
261
|
-
title,
|
|
262
|
-
});
|
|
263
|
-
exports.buildInlineStyle = buildInlineStyle;
|
|
264
193
|
const buildAttribution = () => ({
|
|
265
194
|
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.Attribution),
|
|
266
195
|
objectType: json_schema_1.ObjectTypes.Attribution,
|
|
@@ -271,12 +200,6 @@ const buildJournal = () => ({
|
|
|
271
200
|
objectType: json_schema_1.ObjectTypes.Journal,
|
|
272
201
|
});
|
|
273
202
|
exports.buildJournal = buildJournal;
|
|
274
|
-
const buildStatusLabel = (name) => ({
|
|
275
|
-
_id: (0, id_1.generateID)(json_schema_1.ObjectTypes.StatusLabel),
|
|
276
|
-
objectType: json_schema_1.ObjectTypes.StatusLabel,
|
|
277
|
-
name,
|
|
278
|
-
});
|
|
279
|
-
exports.buildStatusLabel = buildStatusLabel;
|
|
280
203
|
exports.auxiliaryObjectTypes = new Set([
|
|
281
204
|
schema_1.schema.nodes.figure_element,
|
|
282
205
|
schema_1.schema.nodes.table_element,
|