BibTeX, biblatex and biberbiblatex, biber and doi

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
ales_cepek
Posts: 3
Joined: Sat Oct 08, 2016 3:22 pm

biblatex, biber and doi

Post by ales_cepek »

According to https://www.doi.org/doi_handbook the new and prefered URL syntax for doi:10.123/456 is http://doi.org/10.123/456 (while an earlier syntax http://dx.doi.org/10.123.456 is fully supported but no longer preferred).

I work on Ubuntu 16.04 and use pdflatex (pdfTeX 3.14159265-2.6-1.40.16 TeX Live 2015/Debian) with biblatex package and biber 2.4. After three days of fruitles searching on the Internet I simply edited dx.doi.org to doi.org in files

/usr/share/texlive/texmf-dist/tex/latex/doi/doi.sty
/usr/share/texlive/texmf-dist/tex/latex/biblatex/biblatex_.def

It works, but I do not like it because it is a dirty hack. There must be a better way how to solve it but I cannot see how (well, I can redefine the \doi command from doi.sty, which is simple). I think it would be nice if the new syntax of doi URL is the implicit, one day. I am an editor of a university journal and I was asked by our publisher, Central Library, to fix the problem thus I cannot ignore it.

Thanks to everybody who takes the effort to answer.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

biblatex, biber and doi

Post by Johannes_B »

Please give a specific reference to the statement.

Code: Select all

\documentclass{article}
\usepackage[style=authoryear,backend=biber]{biblatex}
\addbibresource{biblatex-examples.bib}
\DeclareFieldFormat{doi}{%
  \mkbibacro{DOI}\addcolon\space
  \ifhyperref
    {\href{http://doi.org/#1}{\nolinkurl{#1}}}
    {\nolinkurl{#1}}}
\begin{document}
\cite{kastenholz}
\printbibliography
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ales_cepek
Posts: 3
Joined: Sat Oct 08, 2016 3:22 pm

Re: biblatex, biber and doi

Post by ales_cepek »

Simple as that, I am ashamed :-) Thank you! It works, you made my day. ač
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: biblatex, biber and doi

Post by Johannes_B »

Can you please share the specific reference that specifies the new url? It is needed in order to update the package.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ales_cepek
Posts: 3
Joined: Sat Oct 08, 2016 3:22 pm

biblatex, biber and doi

Post by ales_cepek »

See chapter 3 of DOI handbook https://www.doi.org/doi_handbook/3_Resolution.html section 3.7.3

Alternatively, without the need to extend their web browsers' capability, users may resolve DOI names that are structured to use the DOI system Proxy Server (http://doi.org (preferred) or http://dx.doi.org). The resolution of the DOI name in this case depends on the use of URL syntax: the example DOI name we have been using (doi:10.10.123/456) would be resolved from the address: "http://doi.org/10.123/456". Any standard browser encountering a DOI name in this form will be able to resolve it. The proxy service (both doi.org and dx.doi.org) is accessible over IPv6, and supports DNSSEC.

... it is mentioned there on several other places. I believe I may also quote from the email sent from Crossref to our university central library (not to me, I got it forwarded), where the situation is explained in detail:

I am writing to announce that Crossref is changing its DOI display guidelines.

We very rarely change Crossref DOI display guidelines, in part because we understand that a change on our end likely means more work on your end as you update the way DOI links are displayed in your publications. Here is a brief explanation of why, what, and when it will happen:

Why: We believe these changes are necessary in order to respond to the need for more secure browsing with “https:”, and to harmonize our guidelines with those of the International DOI Foundation.

What: The changes are to drop “dx” from DOI links and to use “https:” rather than “http:”. An example of the new best practice in displaying a Crossref DOI is:MailScanner has detected a possible fraud attempt from "outreach.crossref.org" claiming to be https://doi.org/10.1629/22161. As always, the DOI should be written as a hyperlink.

When: We are asking that you adopt the new guidelines by March 2017.

Lenka, I explained the reasons in detail for the change in guidelines in a recent post on the Crossref blog. If you have any feedback about the new guidelines, I would like to hear it. Please reply to this email and tell me what you think, or leave me a comment on the blog.


Aleš
Post Reply