Closed (fixed)
Project:
DOI Field
Version:
2.0.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2026 at 15:05 UTC
Updated:
7 May 2026 at 13:15 UTC
Jump to comment: Most recent
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.
- Add DOI field to a content type
- Add content and enter random text in DOI field
- Random text is accepted
- Add validation
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
Comment #3
bserem commentedAdded validation, it works nicely in my first tests. Please see MR.
Comment #4
kallado commented@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
Comment #6
kallado commentedfixe in 2.0.2