-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/update doi on submit #338
Conversation
Visit the preview URL for this PR (updated for commit 113bb84): https://cioos-metadata-form--pr338-feature-update-doi-o-6d9ibmb5.web.app (expires Fri, 03 May 2024 23:00:25 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 57eda2a7622dc877ccadb675a0532261c52b09fd |
@@ -254,6 +262,42 @@ class MetadataForm extends FormClassTemplate { | |||
return contactsRef.push(contact).getKey(); | |||
} | |||
|
|||
async handleUpdateDraftDOI() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the same as https://github.com/cioos-siooc/metadata-entry-form/blob/feature/update-doi-on-submit/src/components/Tabs/IdentificationTab.jsx/#L143? Can these be combined to reduce duplicate code?
I've factored the API logic out - have left the UI logic in place for each. Does it make sense to unify the display components calling the DOI logic as well? @fostermh |
it does and I have that going in another pr |
Added a call to update DOI with all record information when submit button is pressed
Feedback
Documentation
admin/hakai/permissions/reviewers
, which are required to interact with DOI APIs