@manuscripts/transform 4.3.37 → 4.3.38
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/jats/exporter/jats-exporter.js +6 -2
- package/dist/cjs/jats/importer/jats-dom-parser.js +1 -0
- package/dist/cjs/schema/nodes/contributor.js +1 -0
- package/dist/cjs/version.js +1 -1
- package/dist/es/jats/exporter/jats-exporter.js +6 -2
- package/dist/es/jats/importer/jats-dom-parser.js +1 -0
- package/dist/es/schema/nodes/contributor.js +1 -0
- package/dist/es/version.js +1 -1
- package/dist/types/schema/nodes/contributor.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1014,9 +1014,13 @@ class JATSExporter {
|
|
|
1014
1014
|
this.appendElement($contrib, 'role', contributor.attrs.role);
|
|
1015
1015
|
}
|
|
1016
1016
|
if (contributor.attrs.ORCID) {
|
|
1017
|
-
|
|
1017
|
+
const contribIdAttrs = {
|
|
1018
1018
|
'contrib-id-type': 'orcid',
|
|
1019
|
-
}
|
|
1019
|
+
};
|
|
1020
|
+
if (contributor.attrs.isAuthenticated) {
|
|
1021
|
+
contribIdAttrs['authenticated'] = 'true';
|
|
1022
|
+
}
|
|
1023
|
+
this.appendElement($contrib, 'contrib-id', contributor.attrs.ORCID, contribIdAttrs);
|
|
1020
1024
|
}
|
|
1021
1025
|
const $name = this.buildContributorName(contributor);
|
|
1022
1026
|
$contrib.appendChild($name);
|
|
@@ -409,6 +409,7 @@ class JATSDOMParser {
|
|
|
409
409
|
suffix: (0, utils_1.getTrimmedTextContent)(element, 'suffix'),
|
|
410
410
|
degrees: Array.from(element.querySelectorAll('degrees')).map((degree) => (0, utils_1.getTrimmedTextContent)(degree)) || [],
|
|
411
411
|
ORCID: (0, utils_1.getTrimmedTextContent)(element, 'contrib-id[contrib-id-type="orcid"]'),
|
|
412
|
+
isAuthenticated: !!element.querySelector('contrib-id[contrib-id-type="orcid"][authenticated="true"]'),
|
|
412
413
|
creditRoles: (0, utils_1.getCreditRole)(element),
|
|
413
414
|
priority: this.parsePriority(element.getAttribute('priority')),
|
|
414
415
|
email: (0, utils_1.getTrimmedTextContent)(element, 'email') || '',
|
|
@@ -17,6 +17,7 @@ exports.contributor = {
|
|
|
17
17
|
degrees: { default: [] },
|
|
18
18
|
email: { default: undefined },
|
|
19
19
|
ORCID: { default: undefined },
|
|
20
|
+
isAuthenticated: { default: false },
|
|
20
21
|
isCorresponding: { default: false },
|
|
21
22
|
isJointContributor: { default: false },
|
|
22
23
|
priority: { default: undefined },
|
package/dist/cjs/version.js
CHANGED
|
@@ -974,9 +974,13 @@ export class JATSExporter {
|
|
|
974
974
|
this.appendElement($contrib, 'role', contributor.attrs.role);
|
|
975
975
|
}
|
|
976
976
|
if (contributor.attrs.ORCID) {
|
|
977
|
-
|
|
977
|
+
const contribIdAttrs = {
|
|
978
978
|
'contrib-id-type': 'orcid',
|
|
979
|
-
}
|
|
979
|
+
};
|
|
980
|
+
if (contributor.attrs.isAuthenticated) {
|
|
981
|
+
contribIdAttrs['authenticated'] = 'true';
|
|
982
|
+
}
|
|
983
|
+
this.appendElement($contrib, 'contrib-id', contributor.attrs.ORCID, contribIdAttrs);
|
|
980
984
|
}
|
|
981
985
|
const $name = this.buildContributorName(contributor);
|
|
982
986
|
$contrib.appendChild($name);
|
|
@@ -406,6 +406,7 @@ export class JATSDOMParser {
|
|
|
406
406
|
suffix: getTrimmedTextContent(element, 'suffix'),
|
|
407
407
|
degrees: Array.from(element.querySelectorAll('degrees')).map((degree) => getTrimmedTextContent(degree)) || [],
|
|
408
408
|
ORCID: getTrimmedTextContent(element, 'contrib-id[contrib-id-type="orcid"]'),
|
|
409
|
+
isAuthenticated: !!element.querySelector('contrib-id[contrib-id-type="orcid"][authenticated="true"]'),
|
|
409
410
|
creditRoles: getCreditRole(element),
|
|
410
411
|
priority: this.parsePriority(element.getAttribute('priority')),
|
|
411
412
|
email: getTrimmedTextContent(element, 'email') || '',
|
|
@@ -14,6 +14,7 @@ export const contributor = {
|
|
|
14
14
|
degrees: { default: [] },
|
|
15
15
|
email: { default: undefined },
|
|
16
16
|
ORCID: { default: undefined },
|
|
17
|
+
isAuthenticated: { default: false },
|
|
17
18
|
isCorresponding: { default: false },
|
|
18
19
|
isJointContributor: { default: false },
|
|
19
20
|
priority: { default: undefined },
|
package/dist/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "4.3.
|
|
1
|
+
export const VERSION = "4.3.38";
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "4.3.
|
|
1
|
+
export declare const VERSION = "4.3.38";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/transform",
|
|
3
3
|
"description": "ProseMirror transformer for Manuscripts applications",
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.38",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|