Problem/Motivation

DOI has a very specific format:

A DOI is a unique number made up of a prefix and a suffix separated by a forward slash. This is an example of one: 10.1000/182. It is resolvable using our proxy server by displaying it as a link: https://doi.org/10.1000/182.

Source: https://www.doi.org/the-identifier/what-is-a-doi/

The module doesn't validate that a proper DOI value is given. It acts as a text field.

Steps to reproduce

- Add DOI field to a content type
- Add content and enter random text in DOI field
- Random text is accepted

Proposed resolution

- Add validation

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork doi_field-3582672

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bserem created an issue. See original summary.

bserem’s picture

Assigned: bserem » Unassigned
Status: Active » Needs review

Added validation, it works nicely in my first tests. Please see MR.

kallado’s picture

@bserem thanks for the help I'll try to fix the #3582673: 2.0.x tags (releases) don't have a 2.0.x branch first and then review and create a new release form that branch

kallado’s picture

Status: Needs review » Fixed

fixe in 2.0.2

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.