Skip to content

Broken DOI links when the DOI field contains a URL or prefix #93

Closed

Description

@tinzog

The DOI link in the frontend is built by prepending https://dx.doi.org/ to the value of the DOI field. Editors often do not enter the bare DOI (e.g. 10.1234/example), but the full resolver URL or a prefixed value, for example:

  • https://doi.org/10.1234/example
  • https://dx.doi.org/10.1234/example
  • DOI:10.1234/example or doi=10.1234/example
  • \url10.1234/example (from BibTeX imports)

This leads to broken links such as https://dx.doi.org/https://doi.org/10.1234/example in the link blocks of the citation styles (LinkBlock.html and LinkBlock-Inline.html).

Expected behavior:

  • Common prefixes are removed from the DOI before it is output
  • A link to the DOI resolver is only generated if the value is a valid DOI (starting with 10.); otherwise the value is output as plain text
  • The backend field shows the expected format as a placeholder
  • https://doi.org/ is used as resolver instead of the no longer preferred https://dx.doi.org/ (see the DOI Resolution Documentation)

#91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions