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

Add DMP narrative to metadata records #174

Open
briri opened this issue Aug 27, 2024 · 0 comments
Open

Add DMP narrative to metadata records #174

briri opened this issue Aug 27, 2024 · 0 comments

Comments

@briri
Copy link
Collaborator

briri commented Aug 27, 2024

We need to add the DMP narrative elements to the DMP JSON record.

Since we are not currently able to cleanly map questions/answers to the few fields within the current RDA Common Metadata Standard for DMPs schema, we will need to add a new dmphub_narrative array to the record.

The format could be something like:

{ 
  "template_title": "Generic DMP",
  "content": [{
    "section": "Data Preservation",
    "order": 1,
    "questions": [
      {
        "text": "Please describe the data and how you will preserve it.",
        "answer": "Lorem Ipsom ...",
        "order": 1
       },
       {
         "text" : "Will you keep a backup?",
         "answer": "Yes"
         "order": 2
        }
      ]
  }]
}

The API should NOT include these narrative elements when returning data for DMPs with private visibility unless the caller is authorized. We should probably also exclude the description (aka abstract) as well in this scenario.

Once aded, we will need to run a script to resend all DMPs

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

No branches or pull requests

1 participant