Skip to content

Conversation

@carona898
Copy link
Contributor


name: DATS Editor Primary Publication Update
about: Making primary publication required if the field is open in the DATS editor
title: 'Primary publication is required if open'
labels: enhancement
assignees: ''


Related Issues

Previously, no values were required for the primary publication, which caused requests to crash.

Checklist

  • Ensure that the DATS editor does not break with these modifications.
  • Verify that a primary publication is not required if the field is closed.

Purpose

To update the requirement for primary publications in the DATS editor.

Current Behavior

A primary publication can be added without specifying an author name, title, year of publication, or DOI.

New Behavior

If a primary publication is added, the author name, title, year of publication, and DOI are required.

Does this introduce a major change?

  • Yes
  • No

Implementation Details

  • Change the validation schema to adapt to the new requirements.
  • Update error checks to accommodate additional levels in the primary publication.
  • Only ask for the year of publication, not the full date; reformat to year if the date is given in the DATS.
  • Redirect to the field if it is not filled.
  • A DOI or ARK is required as a URL.

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