Skip to content
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

Task/WC-120: Datacite operations and pipeline integration #1037

Open
wants to merge 2 commits into
base: task/digital-rocks
Choose a base branch
from

Conversation

jarosenb
Copy link
Collaborator

Overview

Add Datacite operations for project metadata.

Related

Changes

  • Add a datacite_operations module for generating/uploading Datacite metadata.
  • Add some datacite-specific settings.

Testing

  1. Update settings_custom and settings_secret with the new defaults/examples in the diff.
  2. from portal.apps.projects.workspace_operations.project_publish_operations import _add_values_to_tree
  3. from portal.apps.projects.workspace_operations.datacite_operations import get_datacite_json
  4. tree = _add_values_to_tree("cep.project.CEPV3-DEV-1293") (replace with your personal project)
  5. get_datacite_json(tree)

The resulting JSON should look like:

{'contributors': [{'contributorType': 'HostingInstitution',
   'nameType': 'Organizational',
   'name': ''}],
 'creators': [{'nameType': 'Personal',
   'givenName': 'Jake',
   'familyName': 'Rosenberg'}],
 'titles': [{'title': 'DRP local dev test 01'}],
 'publisher': 'Digital Rocks Portal',
 'publicationYear': 2024,
 'url': '',
 'prefix': ''}

UI

Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant