+
+
+
+
+
+
diff --git a/src/components/Form/mocks/field-orcid.js b/src/components/Form/mocks/field-orcid.js
new file mode 100644
index 000000000..a08ab562b
--- /dev/null
+++ b/src/components/Form/mocks/field-orcid.js
@@ -0,0 +1,9 @@
+export default {
+ name: 'orcid',
+ component: 'field-orcid',
+ label: 'ORCID',
+ orcid: '',
+ authorId: 1,
+ tooltip:
+ 'ORCID is an independent non-profit organization that provides a persistent identifier – an ORCID iD – that distinguishes you from other researchers and a mechanism for linking your research outputs and activities to your iD. ORCID is integrated into many systems used by publishers, funders, institutions, and other research-related services. Learn more at https://orcid.org.',
+};
diff --git a/src/components/ListPanel/contributors/ContributorsListPanel.vue b/src/components/ListPanel/contributors/ContributorsListPanel.vue
index 32cbe1ab2..782c8159b 100644
--- a/src/components/ListPanel/contributors/ContributorsListPanel.vue
+++ b/src/components/ListPanel/contributors/ContributorsListPanel.vue
@@ -436,7 +436,7 @@ export default {
},
);
this.$emit('updated:contributors', newContributors);
-
+
this.getAndUpdatePublication();
},
complete(r) {
@@ -475,7 +475,11 @@ export default {
activeForm.action = apiUrl;
activeForm.method = 'PUT';
activeForm.fields = activeForm.fields.map((field) => {
- if (Object.keys(author).includes(field.name)) {
+ if (field.name === 'orcid') {
+ field.orcid = author['orcid'] ?? '';
+ field.authorId = author['id'];
+ field.isVerified = author['orcidIsVerified'] ?? false;
+ } else if (Object.keys(author).includes(field.name)) {
field.value = author[field.name];
}
return field;
@@ -654,7 +658,6 @@ export default {
},
});
},
-
},
};
diff --git a/src/styles/_global.less b/src/styles/_global.less
index abf2cb657..f52ecf8b1 100644
--- a/src/styles/_global.less
+++ b/src/styles/_global.less
@@ -2,8 +2,8 @@
@tailwind base;
-/*
- Apply some styles for backward-compatibility as tailwind by
+/*
+ Apply some styles for backward-compatibility as tailwind by
default resets styling of headers
This is just temporary until styling is migrated to taildwind classes
*/
@@ -31,3 +31,5 @@
@import 'variables';
@import 'helpers';
@import 'elements/screen-reader';
+
+@import '../../../pkp/styles/orcid.less';